Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit dffba5d

Browse files
committed
Fixed Timer Unittest: tested for past christma
1 parent 395bc79 commit dffba5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Tests/Timer/TimerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ public function testIsTimerActive(Timer $timer)
7676
*/
7777
public function testIsHoliday(Timer $timer)
7878
{
79+
$currentYear = date('Y');
80+
7981
$this->assertFalse($timer->isHoliday('2014-03-03 00:00:00'), 'failed to check non-holiday date');
80-
$this->assertTrue($timer->isHoliday('2014-12-24 12:30:01'), 'failed to validate christmas');
82+
$this->assertTrue($timer->isHoliday($currentYear . '-12-24 12:30:01'), 'failed to validate christmas');
8183
$this->assertTrue(is_bool($timer->isHoliday()), 'failed to validate bool return');
8284
}
8385
}

0 commit comments

Comments
 (0)