Merge pull request #2639 from arnested/feature/php-test-fix

[PHP] Fix class name in test cases
This commit is contained in:
wing328
2016-04-19 10:55:27 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -343,7 +343,7 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
$config = new Swagger\Client\Configuration();
$config->setHost('http://petstore.swagger.io/v2');
$api_client = new Swagger\Client\APIClient($config);
$store_api = new Swagger\Client\Api\StoreAPI($api_client);
$store_api = new Swagger\Client\Api\StoreApi($api_client);
// get inventory
$get_response = $store_api->getInventory();

View File

@@ -39,7 +39,7 @@ class StoreApiTest extends \PHPUnit_Framework_TestCase
// initialize the API client
$config = (new Swagger\Client\Configuration())->setHost('http://petstore.swagger.io/v2');
$api_client = new Swagger\Client\ApiClient($config);
$store_api = new Swagger\Client\Api\StoreAPI($api_client);
$store_api = new Swagger\Client\Api\StoreApi($api_client);
// get inventory
$get_response = $store_api->getInventory();
@@ -57,7 +57,7 @@ class StoreApiTest extends \PHPUnit_Framework_TestCase
// initialize the API client
//$config = (new Swagger\Client\Configuration())->setHost('http://petstore.swagger.io/v2');
$api_client = new Swagger\Client\ApiClient();
$store_api = new Swagger\Client\Api\StoreAPI($api_client);
$store_api = new Swagger\Client\Api\StoreApi($api_client);
// get inventory
$get_response = $store_api->getInventoryInObject();