better reserved word handling for php

This commit is contained in:
wing328
2016-02-25 13:16:54 +08:00
parent 6bbd691913
commit 4e034d3dc5
7 changed files with 19 additions and 18 deletions

View File

@@ -329,7 +329,7 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
$pet_api = new Swagger\Client\Api\PetAPI($api_client);
// test getPetByIdWithByteArray
$pet_id = 10005;
$bytes = $pet_api->getPetByIdWithByteArray($pet_id);
$bytes = $pet_api->petPetIdtestingByteArraytrueGet($pet_id);
$json = json_decode(call_user_func_array('pack', array_merge(array('C*'), $bytes )), true);
$this->assertInternalType("array", $bytes);