Business\Tests\HolidaysTest::testIsHoliday PHP Метод

testIsHoliday() публичный Метод

public testIsHoliday ( )
    public function testIsHoliday()
    {
        $holidays = new Holidays([$holiday = new \DateTime('2015-05-11'), new DateRange(new \DateTime('2015-07-08'), new \DateTime('2015-07-21'))]);
        $this->assertTrue($holidays->isHoliday($holiday));
        $this->assertTrue($holidays->isHoliday(new \DateTime('2015-07-09 10:00')));
    }