Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getYearTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Date_getYearTest extends Common_TestCase 
    28 { 
     27class SC_Date_getYearTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objDate = new SC_Date_Ex(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239   
    43     public function testGetYear_要素の数が4の配列を返す() 
    44     { 
     40    public function testGetYear_要素の数が4の配列を返す() { 
    4541        $this->expected = 4; 
    4642        $this->actual = count($this->objDate->getYear()); 
     
    4945    } 
    5046     
    51     public function testGetYear_最小値が今年の配列を返す() 
    52     { 
     47    public function testGetYear_最小値が今年の配列を返す() { 
    5348        $this->expected = DATE('Y'); 
    5449        $this->actual = min($this->objDate->getYear()); 
     
    5752    } 
    5853     
    59     public function testGetYear_最低値が引数の年の配列を返す() 
    60     { 
     54    public function testGetYear_最低値が引数の年の配列を返す() { 
    6155        $this->expected = '2007'; 
    6256        $this->actual = min($this->objDate->getYear('2007')); 
     
    6559    } 
    6660     
    67     public function testGetYear_最低値がメンバー変数の年の配列を返す() 
    68     { 
     61    public function testGetYear_最低値がメンバー変数の年の配列を返す() { 
    6962        $this->expected = '2004'; 
    7063        $this->objDate->setStartYear('2004'); 
     
    7467    } 
    7568     
    76     public function testGetYear_最大値が3年後の配列を返す() 
    77     { 
     69    public function testGetYear_最大値が3年後の配列を返す() { 
    7870        $this->expected = DATE('Y')+3; 
    7971        $this->actual = max($this->objDate->getYear()); 
     
    8274    } 
    8375     
    84     public function testGetYear_最大値がメンバ変数の配列を返す() 
    85     { 
     76    public function testGetYear_最大値がメンバ変数の配列を返す() { 
    8677        $this->expected = '2020'; 
    8778        $this->objDate->setEndYear('2020'); 
     
    9182    } 
    9283     
    93     public function testGetYear_デフォルト値が含まれる配列を返す() 
    94     { 
     84    public function testGetYear_デフォルト値が含まれる配列を返す() { 
    9585        $result = in_array('----', $this->objDate->getYear(DATE('Y'), TRUE)); 
    9686        $this->assertTrue($result, "デフォルト値"); 
    9787    } 
    9888     
    99     public function testGetYear_デフォルト値の引数に年を指定した配列を返す() 
    100     { 
     89    public function testGetYear_デフォルト値の引数に年を指定した配列を返す() { 
    10190        $year = date('Y'); 
    10291        $this->expected = array( $year => $year, $year+1 => $year+1 
     
    10796    } 
    10897 
    109     public function testGetYear_引数に指定したキーがデフォルト値となる配列を返す() 
    110     { 
     98    public function testGetYear_引数に指定したキーがデフォルト値となる配列を返す() { 
    11199        $this->expected = 'default'; 
    112100        $return = $this->objDate->getYear(DATE('Y'), TRUE, 'default'); 
Note: See TracChangeset for help on using the changeset viewer.