public function testJsonSerialize() { $day = new Day(Days::MONDAY, [['12:00', '2 pm'], ['14:30', '18:30'], ['09:00', '10 AM']]); $this->assertJsonStringEqualsJsonFile(__DIR__ . '/Expected/Day/testJsonSerialize.json', json_encode($day)); }