Fix class name in test cases

This commit is contained in:
Arne Jørgensen 2016-04-18 22:10:35 +02:00
parent a069ea1435
commit dcccfa4b99
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 = new Swagger\Client\Configuration();
$config->setHost('http://petstore.swagger.io/v2'); $config->setHost('http://petstore.swagger.io/v2');
$api_client = new Swagger\Client\APIClient($config); $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 inventory
$get_response = $store_api->getInventory(); $get_response = $store_api->getInventory();

View File

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