- Timestamp:
- 2013/02/18 19:09:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMonthTest.php
r22206 r22567 25 25 require_once($HOME . "/tests/class/Common_TestCase.php"); 26 26 27 class SC_Date_getMonthTest extends Common_TestCase { 27 class SC_Date_getMonthTest extends Common_TestCase 28 { 28 29 29 protected function setUp() { 30 protected function setUp() 31 { 30 32 parent::setUp(); 31 33 $this->objDate = new SC_Date_Ex(); 32 34 } 33 35 34 protected function tearDown() { 36 protected function tearDown() 37 { 35 38 parent::tearDown(); 36 39 } … … 38 41 ///////////////////////////////////////// 39 42 40 public function testGetMonth_要素の数が12の配列を返す() { 43 public function testGetMonth_要素の数が12の配列を返す() 44 { 41 45 $this->expected = 12; 42 46 $this->actual = count($this->objDate->getMonth()); … … 45 49 } 46 50 47 public function testGetMonth_要素の最低値が1の配列を返す() { 51 public function testGetMonth_要素の最低値が1の配列を返す() 52 { 48 53 $this->expected = 1; 49 54 $this->actual = min($this->objDate->getMonth()); … … 52 57 } 53 58 54 public function testGetMonth_要素の最大値が12の配列を返す() { 59 public function testGetMonth_要素の最大値が12の配列を返す() 60 { 55 61 $this->expected = 12; 56 62 $this->actual = max($this->objDate->getMonth()); … … 59 65 } 60 66 61 public function testGetMonth_TRUEを与えた場合要素の数が13の配列を返す() { 67 public function testGetMonth_TRUEを与えた場合要素の数が13の配列を返す() 68 { 62 69 $this->expected = 13; 63 70 $this->actual = count($this->objDate->getMonth(true)); … … 66 73 } 67 74 68 public function testGetMonth_TRUEを与えた場合ーー含まれるの配列を返す() { 75 public function testGetMonth_TRUEを与えた場合ーー含まれるの配列を返す() 76 { 69 77 $result = in_array('--', $this->objDate->getMonth(true)); 70 78
Note: See TracChangeset
for help on using the changeset viewer.
