Ignore:
Timestamp:
2013/02/18 19:09:54 (11 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

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

    r22206 r22567  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Date_getYearTest extends Common_TestCase { 
     27class SC_Date_getYearTest extends Common_TestCase 
     28{ 
    2829 
    29     protected function setUp() { 
     30    protected function setUp() 
     31    { 
    3032        parent::setUp(); 
    3133        $this->objDate = new SC_Date_Ex(); 
    3234    } 
    3335 
    34     protected function tearDown() { 
     36    protected function tearDown() 
     37    { 
    3538        parent::tearDown(); 
    3639    } 
     
    3841    ///////////////////////////////////////// 
    3942   
    40     public function testGetYear_要素の数が4の配列を返す() { 
     43    public function testGetYear_要素の数が4の配列を返す() 
     44    { 
    4145        $this->expected = 4; 
    4246        $this->actual = count($this->objDate->getYear()); 
     
    4549    } 
    4650     
    47     public function testGetYear_最小値が今年の配列を返す() { 
     51    public function testGetYear_最小値が今年の配列を返す() 
     52    { 
    4853        $this->expected = DATE('Y'); 
    4954        $this->actual = min($this->objDate->getYear()); 
     
    5257    } 
    5358     
    54     public function testGetYear_最低値が引数の年の配列を返す() { 
     59    public function testGetYear_最低値が引数の年の配列を返す() 
     60    { 
    5561        $this->expected = '2007'; 
    5662        $this->actual = min($this->objDate->getYear('2007')); 
     
    5965    } 
    6066     
    61     public function testGetYear_最低値がメンバー変数の年の配列を返す() { 
     67    public function testGetYear_最低値がメンバー変数の年の配列を返す() 
     68    { 
    6269        $this->expected = '2004'; 
    6370        $this->objDate->setStartYear('2004'); 
     
    6774    } 
    6875     
    69     public function testGetYear_最大値が3年後の配列を返す() { 
     76    public function testGetYear_最大値が3年後の配列を返す() 
     77    { 
    7078        $this->expected = DATE('Y')+3; 
    7179        $this->actual = max($this->objDate->getYear()); 
     
    7482    } 
    7583     
    76     public function testGetYear_最大値がメンバ変数の配列を返す() { 
     84    public function testGetYear_最大値がメンバ変数の配列を返す() 
     85    { 
    7786        $this->expected = '2020'; 
    7887        $this->objDate->setEndYear('2020'); 
     
    8291    } 
    8392     
    84     public function testGetYear_デフォルト値が含まれる配列を返す() { 
     93    public function testGetYear_デフォルト値が含まれる配列を返す() 
     94    { 
    8595        $result = in_array('----', $this->objDate->getYear(DATE('Y'), TRUE)); 
    8696        $this->assertTrue($result, "デフォルト値"); 
    8797    } 
    8898     
    89     public function testGetYear_デフォルト値の引数に年を指定した配列を返す() { 
     99    public function testGetYear_デフォルト値の引数に年を指定した配列を返す() 
     100    { 
    90101        $year = date('Y'); 
    91102        $this->expected = array( $year => $year, $year+1 => $year+1 
     
    96107    } 
    97108 
    98     public function testGetYear_引数に指定したキーがデフォルト値となる配列を返す() { 
     109    public function testGetYear_引数に指定したキーがデフォルト値となる配列を返す() 
     110    { 
    99111        $this->expected = 'default'; 
    100112        $return = $this->objDate->getYear(DATE('Y'), TRUE, 'default'); 
Note: See TracChangeset for help on using the changeset viewer.