public function testGetDeeds() { $json = file_get_contents(__DIR__ . '/result/deed-list.json'); $body = \GuzzleHttp\Stream\Stream::factory($json); $mock = new \GuzzleHttp\Subscriber\Mock([new \GuzzleHttp\Message\Response(200, [], $body)]); $client = new \Picturae\Genealogy\Client($this->key); $client->getClient()->getEmitter()->attach($mock); $deeds = $client->getDeeds(); $this->assertEquals(count($deeds->deed), 1); }