Changeset 22796 for branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCalcIncTaxTest.php
- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCalcIncTaxTest.php
r22567 r22796 32 32 * @version $Id$ 33 33 */ 34 class SC_Utils_sfCalcIncTaxTest extends Common_TestCase 35 { 34 class SC_Utils_sfCalcIncTaxTest extends Common_TestCase { 36 35 37 protected function setUp() 38 { 36 protected function setUp() { 39 37 parent::setUp(); 40 38 } 41 39 42 protected function tearDown() 43 { 40 protected function tearDown() { 44 41 parent::tearDown(); 45 42 } 46 43 47 44 ///////////////////////////////////////// 48 public function testSfCalcIncTax_四捨五入の場合_四捨五入の結果になる() 49 { 45 public function testSfCalcIncTax_四捨五入の場合_四捨五入の結果になる() { 50 46 $this->expected = array(141, 152); 51 47 $this->actual[0] = SC_Utils::sfCalcIncTax(140, 1, 1); // 1:四捨五入 … … 55 51 } 56 52 57 public function testSfCalcIncTax_切り捨ての場合_切り捨ての結果になる() 58 { 53 public function testSfCalcIncTax_切り捨ての場合_切り捨ての結果になる() { 59 54 $this->expected = array(142, 153); 60 55 $this->actual[0] = SC_Utils::sfCalcIncTax(140, 2, 2); // 2:切り捨て … … 64 59 } 65 60 66 public function testSfCalcIncTax_切り上げの場合_切り上げの結果になる() 67 { 61 public function testSfCalcIncTax_切り上げの場合_切り上げの結果になる() { 68 62 $this->expected = array(142, 152); 69 63 $this->actual[0] = SC_Utils::sfCalcIncTax(140, 1, 3); // 3:切り上げ … … 73 67 } 74 68 75 public function testSfCalcIncTax_それ以外の場合_切り上げの結果になる() 76 { 69 public function testSfCalcIncTax_それ以外の場合_切り上げの結果になる() { 77 70 $this->expected = array(142, 152); 78 71 $this->actual[0] = SC_Utils::sfCalcIncTax(140, 1, 4);
Note: See TracChangeset
for help on using the changeset viewer.