/** * Tests toArray. */ public function testToArray() { $data = array("bar" => "test"); $json = new Json($data); $this->assertSame($data, $json->toArray()); }