Business\Tests\SpecialDayTest::testJsonSerializeWithoutOpeningIntervalsCache PHP Method

testJsonSerializeWithoutOpeningIntervalsCache() public method

    public function testJsonSerializeWithoutOpeningIntervalsCache()
    {
        $day = new SpecialDay(Days::MONDAY, function (\DateTime $date) {
            return [['12:00', '18:00']];
        });
        $this->assertJsonStringEqualsJsonFile(__DIR__ . '/Expected/SpecialDay/testJsonSerializeWithoutOpeningIntervalsCache.json', json_encode($day));
    }