/** * Tests a simple model * @depends testClientConstruct * @depends testFindPetsByStatus */ public function testGetPetById(Client $client, $petId) { $petId = 3; // <- bug in petstore definition disallows pidId>100 $pet = $client->getPetById(compact('petId')); $this->assertInstanceOf('\\Guzzle\\Service\\Resource\\Model', $pet); $this->assertEquals($petId, $pet['id']); $this->assertInternalType('string', $pet['name']); }