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