Changeset 22567 for branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTermMonthTest.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_sfTermMonthTest.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class SC_Utils_sfTermMonthTest extends Common_TestCase { 34 class SC_Utils_sfTermMonthTest extends Common_TestCase 35 { 35 36 36 37 37 protected function setUp() { 38 protected function setUp() 39 { 38 40 // parent::setUp(); 39 41 } 40 42 41 protected function tearDown() { 43 protected function tearDown() 44 { 42 45 // parent::tearDown(); 43 46 } 44 47 45 48 ///////////////////////////////////////// 46 public function testSfTermMonth_締め日が月末より早い場合_設定した締め日の通りになる() { 49 public function testSfTermMonth_締め日が月末より早い場合_設定した締め日の通りになる() 50 { 47 51 $this->expected = array('2012/9/16', '2012/10/15 23:59:59'); 48 52 $this->actual = SC_Utils::sfTermMonth(2012, 10, 15); … … 51 55 } 52 56 53 public function testSfTermMonth_該当月の末日が締め日より早い場合_末日に合わせられる() { 57 public function testSfTermMonth_該当月の末日が締め日より早い場合_末日に合わせられる() 58 { 54 59 $this->expected = array('2012/9/1', '2012/9/30 23:59:59'); 55 60 $this->actual = SC_Utils::sfTermMonth(2012, 9, 31); … … 58 63 } 59 64 60 public function testSfTermMonth_前月の末日が締め日より早い場合_末日に合わせられる() { 65 public function testSfTermMonth_前月の末日が締め日より早い場合_末日に合わせられる() 66 { 61 67 $this->expected = array('2012/10/1', '2012/10/31 23:59:59'); 62 68 $this->actual = SC_Utils::sfTermMonth(2012, 10, 31); … … 65 71 } 66 72 67 public function testSfTermMonth_年をまたぐ場合_前月が前年十二月になる() { 73 public function testSfTermMonth_年をまたぐ場合_前月が前年十二月になる() 74 { 68 75 $this->expected = array('2012/12/16', '2013/1/15 23:59:59'); 69 76 $this->actual = SC_Utils::sfTermMonth(2013, 1, 15);
Note: See TracChangeset
for help on using the changeset viewer.