Business\Tests\HolidaysTest::testJsonSerialize PHP Method

testJsonSerialize() public method

public testJsonSerialize ( )
    public function testJsonSerialize()
    {
        $holidays = new Holidays([$holiday = new \DateTime('2015-05-11'), new DateRange(new \DateTime('2015-07-08'), new \DateTime('2015-07-21'))]);
        $this->assertJsonStringEqualsJsonFile(__DIR__ . '/Expected/Holidays/testJsonSerialize.json', json_encode($holidays));
    }