Skip to content

Commit

Permalink
Merge pull request #433 from nanasess/fix-sc_date_testcase
Browse files Browse the repository at this point in the history
start_year > end_year になっていたのを修正
  • Loading branch information
okazy authored Feb 16, 2021
2 parents 3695516 + 12dae5f commit 9622f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/class/SC_Date/SC_Date_getYearTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function testGetYear_最大値が3年後の配列を返す()
public function testGetYear_最大値がメンバ変数の配列を返す()
{
$this->expected = '2020';
$this->objDate->setStartYear('2018');
$this->objDate->setEndYear('2020');
$this->actual = max($this->objDate->getYear());

Expand Down
1 change: 1 addition & 0 deletions tests/class/SC_Date/SC_Date_getZeroYearTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function testGetZeroYear_最大値が3年後の2桁表記の配列を返
public function testGetZeroYear_最大値がメンバ変数の2桁表記の配列を返す()
{
$this->expected = '20';
$this->objDate->setStartYear('2018');
$this->objDate->setEndYear('2020');
$this->actual = max($this->objDate->getZeroYear());

Expand Down

0 comments on commit 9622f28

Please sign in to comment.