/** * Test the json conversion * * @return void * @author Dan Cox */ public function test_json() { $collection = new Collection($this->collectable); $json = $collection->json(); $this->assertEquals(json_encode($this->collectable), $json); }