public function testGetPetByIdWithByteArray()
 {
     // initialize the API client
     $config = new Swagger\Client\Configuration();
     $config->setHost('http://petstore.swagger.io/v2');
     $api_client = new Swagger\Client\APIClient($config);
     $pet_api = new Swagger\Client\Api\PetApi($api_client);
     // test getPetByIdWithByteArray
     $pet_id = 10005;
     $bytes = $pet_api->petPetIdtestingByteArraytrueGet($pet_id);
     $json = json_decode($bytes, true);
     $this->assertInternalType("string", $bytes);
     $this->assertSame($json['id'], $pet_id);
     // not testing name as it's tested by addPetUsingByteArray
     //$this->assertSame($json['name'], 'PHP Unit Test');
     $this->assertSame($json['category']['id'], $pet_id);
     $this->assertSame($json['category']['name'], 'test php category');
     $this->assertSame($json['tags'][0]['id'], $pet_id);
     $this->assertSame($json['tags'][0]['name'], 'test php tag');
 }