public function testASuccessfulJsonResponseWillBeDecodedToAGraphList() { $graphResponseJson = '{"data":[{"id":"123","name":"Foo"},{"id":"1337","name":"Bar"}]}'; $response = new FacebookResponse($this->request, $graphResponseJson, 200); $graphObjectList = $response->getGraphList(); $this->assertFalse($response->isError(), 'Did not expect Response to return an error.'); $this->assertInstanceOf('Facebook\\GraphNodes\\GraphObject', $graphObjectList[0]); $this->assertInstanceOf('Facebook\\GraphNodes\\GraphObject', $graphObjectList[1]); }