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