/** * @test */ public function it_should_be_possible_to_build_an_event_from_json_without_params() { $jsonEvent = json_encode(array('name' => 'eventName')); $event = Event::fromJson($jsonEvent); $this->assertEquals(new Event('eventName'), $event); }