/** @test */ public function it_can_get_the_items_as_a_json_object() { $collection = new Collection(['foo' => 'Foo', 'bar' => 'Bar']); $this->assertEquals('{"foo":"Foo","bar":"Bar"}', $collection->toJson()); }