diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php index 4d2611db6de..372bf5935e4 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php index c1ba9f2e8d6..06aefbc78d2 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php @@ -5,31 +5,19 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ /** - * Swagger Petstore =end + * Swagger Petstore * - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ =end + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 =end - * Contact: apiteam@swagger.io =end + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -41,7 +29,6 @@ namespace Swagger\Client; use \Swagger\Client\Configuration; -use \Swagger\Client\ApiClient; use \Swagger\Client\ApiException; use \Swagger\Client\ObjectSerializer; @@ -50,8 +37,7 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class FakeApiTest extends \PHPUnit_Framework_TestCase @@ -62,7 +48,6 @@ class FakeApiTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -70,7 +55,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -78,7 +62,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -86,7 +69,56 @@ public function tearDown() */ public static function tearDownAfterClass() { + } + /** + * Test case for fakeOuterBooleanSerialize + * + * . + * + */ + public function testFakeOuterBooleanSerialize() + { + } + + /** + * Test case for fakeOuterCompositeSerialize + * + * . + * + */ + public function testFakeOuterCompositeSerialize() + { + } + + /** + * Test case for fakeOuterNumberSerialize + * + * . + * + */ + public function testFakeOuterNumberSerialize() + { + } + + /** + * Test case for fakeOuterStringSerialize + * + * . + * + */ + public function testFakeOuterStringSerialize() + { + } + + /** + * Test case for testClientModel + * + * To test \"client\" model. + * + */ + public function testTestClientModel() + { } /** @@ -97,18 +129,35 @@ public static function tearDownAfterClass() */ public function testTestEndpointParameters() { - } /** - * Test case for testEnumQueryParameters + * Test case for testEnumParameters * - * To test enum query parameters. + * To test enum parameters. * */ - public function testTestEnumQueryParameters() + public function testTestEnumParameters() { + } + /** + * Test case for testInlineAdditionalProperties + * + * test inline additionalProperties. + * + */ + public function testTestInlineAdditionalProperties() + { } + /** + * Test case for testJsonFormData + * + * test json serialization of form data. + * + */ + public function testTestJsonFormData() + { + } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php index ccb4ee71dde..564df7c6ea0 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/Fake_classname_tags123ApiTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Api/Fake_classname_tags123ApiTest.php deleted file mode 100644 index b9b64aeca97..00000000000 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/Fake_classname_tags123ApiTest.php +++ /dev/null @@ -1,83 +0,0 @@ -setId($new_pet_id); - $new_pet->setName("PHP Unit Test"); - $new_pet->setPhotoUrls(array("http://test_php_unit_test.com")); - // new tag - $tag= new Model\Tag; - $tag->setId($new_pet_id); // use the same id as pet - $tag->setName("test php tag"); - // new category - $category = new Model\Category; - $category->setId($new_pet_id); // use the same id as pet - $category->setName("test php category"); - - $new_pet->setTags(array($tag)); - $new_pet->setCategory($category); - - $pet_api = new Api\PetApi(); - // add a new pet (model) - $add_response = $pet_api->addPet($new_pet); } /** @@ -109,10 +62,13 @@ public function setUp() */ public function tearDown() { - $new_pet_id = 10005; - $pet_api = new Api\PetApi(); - // delete the pet (model) - $pet_api->deletePet($new_pet_id); + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -123,20 +79,6 @@ public function tearDown() */ public function testAddPet() { - // initialize the API client - $new_pet_id = 10005; - $new_pet = new Model\Pet; - $new_pet->setId($new_pet_id); - $new_pet->setName("PHP Unit Test 2"); - $pet_api = new Api\PetApi(); - // add a new pet (model) - $add_response = $pet_api->addPet($new_pet); - // return nothing (void) - $this->assertSame($add_response, null); - // verify added Pet - $response = $pet_api->getPetById($new_pet_id); - $this->assertSame($response->getId(), $new_pet_id); - $this->assertSame($response->getName(), 'PHP Unit Test 2'); } /** @@ -147,56 +89,18 @@ public function testAddPet() */ public function testDeletePet() { - } /** - * Test getPetByStatus and verify by the "id" of the response + * Test case for findPetsByStatus + * + * Finds Pets by status. + * */ - public function testFindPetByStatus() + public function testFindPetsByStatus() { - // initialize the API client - $pet_api = new Api\PetApi(); - // return Pet (model) - $response = $pet_api->findPetsByStatus("available"); - $this->assertGreaterThan(0, count($response)); // at least one object returned - $this->assertSame(get_class($response[0]), "Swagger\\Client\\Model\\Pet"); // verify the object is Pet - // loop through result to ensure status is "available" - foreach ($response as $_pet) { - $this->assertSame($_pet['status'], "available"); - } - // test invalid status - $response = $pet_api->findPetsByStatus("unknown_and_incorrect_status"); - $this->assertSame(count($response), 0); // confirm no object returned } -// test currently broken, status cannot be empty -// /** -// * Test case for findPetsByStatus -// * -// * Finds Pets by status with empty response. -// * -// * Make sure empty arrays from a producer is actually returned as -// * an empty array and not some other value. At some point it was -// * returned as null because the code stumbled on PHP loose type -// * checking (not on empty array is true, same thing could happen -// * with careless use of empty()). -// * -// */ -// public function testFindPetsByStatusWithEmptyResponse() -// { -// $storeApi = new Api\PetApi(); -// // this call returns and empty array -// $response = $storeApi->findPetsByStatus(array()); -// -// // make sure this is an array as we want it to be -// $this->assertInternalType("array", $response); -// -// // make sure the array is empty just in case the petstore -// // server changes its output -// $this->assertEmpty($response); -// } - /** * Test case for findPetsByTags * @@ -205,18 +109,6 @@ public function testFindPetByStatus() */ public function testFindPetsByTags() { - $pet_api = new Api\PetApi(); - // return Pet (model) - $response = $pet_api->findPetsByTags("test php tag"); - $this->assertGreaterThan(0, count($response)); // at least one object returned - $this->assertSame(get_class($response[0]), "Swagger\\Client\\Model\\Pet"); // verify the object is Pet - // loop through result to ensure status is "available" - foreach ($response as $_pet) { - $this->assertSame($_pet['tags'][0]['name'], "test php tag"); - } - // test invalid status - $response = $pet_api->findPetsByTags("unknown_and_incorrect_tag"); - $this->assertSame(count($response), 0); // confirm no object returned } /** @@ -227,45 +119,6 @@ public function testFindPetsByTags() */ public function testGetPetById() { - // initialize the API client without host - $pet_id = 10005; // ID of pet that needs to be fetched - - $config = new Configuration(); - $config->setApiKey('api_key', '111222333444555'); - $pet_api = new Api\PetApi(null, $config); - // return Pet (model) - $response = $pet_api->getPetById($pet_id); - $this->assertSame($response->getId(), $pet_id); - $this->assertSame($response->getName(), 'PHP Unit Test'); - $this->assertSame($response->getPhotoUrls()[0], 'http://test_php_unit_test.com'); - $this->assertSame($response->getCategory()->getId(), $pet_id); - $this->assertSame($response->getCategory()->getName(), 'test php category'); - $this->assertSame($response->getTags()[0]->getId(), $pet_id); - $this->assertSame($response->getTags()[0]->getName(), 'test php tag'); - } - - /** - * test getPetByIdWithHttpInfo with a Pet object (id 10005) - */ - public function testGetPetByIdWithHttpInfo() - { - // initialize the API client without host - $pet_id = 10005; // ID of pet that needs to be fetched - - $config = new Configuration(); - $config->setApiKey('api_key', '111222333444555'); - $pet_api = new Api\PetApi(null, $config); - - // return Pet (model) - list($response, $status_code, $response_headers) = $pet_api->getPetByIdWithHttpInfo($pet_id); - $this->assertSame($response->getId(), $pet_id); - $this->assertSame($response->getName(), 'PHP Unit Test'); - $this->assertSame($response->getCategory()->getId(), $pet_id); - $this->assertSame($response->getCategory()->getName(), 'test php category'); - $this->assertSame($response->getTags()[0]->getId(), $pet_id); - $this->assertSame($response->getTags()[0]->getName(), 'test php tag'); - $this->assertSame($status_code, 200); - $this->assertSame($response_headers['Content-Type'], ['application/json']); } /** @@ -276,44 +129,6 @@ public function testGetPetByIdWithHttpInfo() */ public function testUpdatePet() { - $pet_id = 10001; // ID of pet that needs to be fetched - $pet_api = new Api\PetApi(); - // create updated pet object - $updated_pet = new Model\Pet; - $updated_pet->setId($pet_id); - $updated_pet->setName('updatePet'); // new name - $updated_pet->setStatus('pending'); // new status - // update Pet (model/json) - $update_response = $pet_api->updatePet($updated_pet); - // return nothing (void) - $this->assertSame($update_response, null); - // verify updated Pet - $response = $pet_api->getPetById($pet_id); - $this->assertSame($response->getId(), $pet_id); - $this->assertSame($response->getStatus(), 'pending'); - $this->assertSame($response->getName(), 'updatePet'); - } - - /** - * Test updatePetWithFormWithHttpInfo and verify by the "name" of the response - */ - public function testUpdatePetWithFormWithHttpInfo() - { - // initialize the API client - $pet_id = 10001; // ID of pet that needs to be fetched - $pet_api = new Api\PetApi(); - // update Pet (form) - list($update_response, $status_code, $http_headers) = $pet_api->updatePetWithFormWithHttpInfo( - $pet_id, - 'update pet with form with http info' - ); - // return nothing (void) - $this->assertNull($update_response); - $this->assertSame($status_code, 200); - $this->assertSame($http_headers['Content-Type'], ['application/json']); - $response = $pet_api->getPetById($pet_id); - $this->assertSame($response->getId(), $pet_id); - $this->assertSame($response->getName(), 'update pet with form with http info'); } /** @@ -324,16 +139,6 @@ public function testUpdatePetWithFormWithHttpInfo() */ public function testUpdatePetWithForm() { - $pet_id = 10001; // ID of pet that needs to be fetched - $pet_api = new Api\PetApi(); - // update Pet (form) - $update_response = $pet_api->updatePetWithForm($pet_id, 'update pet with form', 'sold'); - // return nothing (void) - $this->assertSame($update_response, null); - $response = $pet_api->getPetById($pet_id); - $this->assertSame($response->getId(), $pet_id); - $this->assertSame($response->getName(), 'update pet with form'); - $this->assertSame($response->getStatus(), 'sold'); } /** @@ -344,11 +149,5 @@ public function testUpdatePetWithForm() */ public function testUploadFile() { - $pet_api = new Api\PetApi(); - // upload file - $pet_id = 10001; - $response = $pet_api->uploadFile($pet_id, "test meta", "./composer.json"); - // return ApiResponse - $this->assertInstanceOf('Swagger\Client\Model\ApiResponse', $response); } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php index 3fc064a99c2..11b32afaff0 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.0-SNAPSHOT + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php index d1b55c88a9d..69f957ab34a 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * AdditionalPropertiesClassTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description AdditionalPropertiesClass * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class AdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,19 @@ public static function tearDownAfterClass() */ public function testAdditionalPropertiesClass() { + } + + /** + * Test attribute "map_property" + */ + public function testPropertyMapProperty() + { + } + /** + * Test attribute "map_of_map_property" + */ + public function testPropertyMapOfMapProperty() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php index 8f4500cebef..6ffa9356241 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.0-SNAPSHOT + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -32,9 +32,8 @@ /** * AnimalFarmTest Class Doc Comment * - * @category Class */ -// * @description AnimalFarm -/** + * @category Class + * @description AnimalFarm * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php index c63b5ff4918..8497a495765 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * AnimalTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description Animal * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class AnimalTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,19 @@ public static function tearDownAfterClass() */ public function testAnimal() { + } + + /** + * Test attribute "class_name" + */ + public function testPropertyClassName() + { + } + /** + * Test attribute "color" + */ + public function testPropertyColor() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php index 083f9dcecfd..af941e873fd 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * ApiResponseTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description ApiResponse * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class ApiResponseTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,26 @@ public static function tearDownAfterClass() */ public function testApiResponse() { + } + + /** + * Test attribute "code" + */ + public function testPropertyCode() + { + } + + /** + * Test attribute "type" + */ + public function testPropertyType() + { + } + /** + * Test attribute "message" + */ + public function testPropertyMessage() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php index 561a8551d1c..ac50d98a4df 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php @@ -6,8 +6,7 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -19,18 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -39,7 +27,7 @@ * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * ArrayOfArrayOfNumberOnlyTest Class Doc Comment @@ -47,27 +35,38 @@ * @category Class * @description ArrayOfArrayOfNumberOnly * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class ArrayOfArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -75,6 +74,12 @@ public static function tearDownAfterClass() */ public function testArrayOfArrayOfNumberOnly() { + } + /** + * Test attribute "array_array_number" + */ + public function testPropertyArrayArrayNumber() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php index f9c9847ad5b..e0a354e1748 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php @@ -6,8 +6,7 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -19,18 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -39,7 +27,7 @@ * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * ArrayOfNumberOnlyTest Class Doc Comment @@ -47,27 +35,38 @@ * @category Class * @description ArrayOfNumberOnly * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class ArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -75,6 +74,12 @@ public static function tearDownAfterClass() */ public function testArrayOfNumberOnly() { + } + /** + * Test attribute "array_number" + */ + public function testPropertyArrayNumber() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php index 1632ff9397f..9a2674927e9 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php @@ -6,8 +6,7 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -19,18 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -39,7 +27,7 @@ * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * ArrayTestTest Class Doc Comment @@ -47,27 +35,38 @@ * @category Class * @description ArrayTest * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class ArrayTestTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -75,6 +74,26 @@ public static function tearDownAfterClass() */ public function testArrayTest() { + } + + /** + * Test attribute "array_of_string" + */ + public function testPropertyArrayOfString() + { + } + + /** + * Test attribute "array_array_of_integer" + */ + public function testPropertyArrayArrayOfInteger() + { + } + /** + * Test attribute "array_array_of_model" + */ + public function testPropertyArrayArrayOfModel() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php index 48e309b787f..a068a7813db 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -32,9 +32,8 @@ /** * CapitalizationTest Class Doc Comment * - * @category Class */ -// * @description Capitalization -/** + * @category Class + * @description Capitalization * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -47,7 +46,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -55,7 +53,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -63,7 +60,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -71,7 +67,6 @@ public function tearDown() */ public static function tearDownAfterClass() { - } /** @@ -79,7 +74,6 @@ public static function tearDownAfterClass() */ public function testCapitalization() { - } /** @@ -87,7 +81,6 @@ public function testCapitalization() */ public function testPropertySmallCamel() { - } /** @@ -95,7 +88,6 @@ public function testPropertySmallCamel() */ public function testPropertyCapitalCamel() { - } /** @@ -103,7 +95,6 @@ public function testPropertyCapitalCamel() */ public function testPropertySmallSnake() { - } /** @@ -111,7 +102,6 @@ public function testPropertySmallSnake() */ public function testPropertyCapitalSnake() { - } /** @@ -119,7 +109,6 @@ public function testPropertyCapitalSnake() */ public function testPropertyScaEthFlowPoints() { - } /** @@ -127,7 +116,5 @@ public function testPropertyScaEthFlowPoints() */ public function testPropertyAttName() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php index ef9f5072fe2..941490af902 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * CatTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description Cat * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class CatTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,12 @@ public static function tearDownAfterClass() */ public function testCat() { + } + /** + * Test attribute "declawed" + */ + public function testPropertyDeclawed() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php index 8a5c3cc8296..4d6ce5c0e41 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * CategoryTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description Category * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class CategoryTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,19 @@ public static function tearDownAfterClass() */ public function testCategory() { + } + + /** + * Test attribute "id" + */ + public function testPropertyId() + { + } + /** + * Test attribute "name" + */ + public function testPropertyName() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php index 10f290f16ed..0e593329617 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -32,9 +32,8 @@ /** * ClassModelTest Class Doc Comment * - * @category Class */ -// * @description Model for testing model with \"_class\" property -/** + * @category Class + * @description Model for testing model with \"_class\" property * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -47,7 +46,6 @@ class ClassModelTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -55,7 +53,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -63,7 +60,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -71,7 +67,6 @@ public function tearDown() */ public static function tearDownAfterClass() { - } /** @@ -79,7 +74,6 @@ public static function tearDownAfterClass() */ public function testClassModel() { - } /** @@ -87,7 +81,5 @@ public function testClassModel() */ public function testPropertyClass() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php index 412bd23450d..ee4189c84e6 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php @@ -6,8 +6,7 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -19,18 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -44,12 +32,10 @@ /** * ClientTest Class Doc Comment * - * @category Class */ -// * @description Client -/** + * @category Class + * @description Client * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class ClientTest extends \PHPUnit_Framework_TestCase @@ -60,7 +46,6 @@ class ClientTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -68,7 +53,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -76,7 +60,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -84,7 +67,6 @@ public function tearDown() */ public static function tearDownAfterClass() { - } /** @@ -92,7 +74,6 @@ public static function tearDownAfterClass() */ public function testClient() { - } /** @@ -100,7 +81,5 @@ public function testClient() */ public function testPropertyClient() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/DefaultErrorTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/DefaultErrorTest.php deleted file mode 100644 index b41fbe327a0..00000000000 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/DefaultErrorTest.php +++ /dev/null @@ -1,101 +0,0 @@ -setStatus("placed"); - $this->assertSame("placed", $order->getStatus()); } /** - * @expectedException InvalidArgumentException + * Test "Order" */ - public function testOrderException() + public function testOrder() { - // initialize the API client - $order = new Order(); - $order->setStatus("invalid_value"); } /** @@ -97,7 +81,6 @@ public function testOrderException() */ public function testPropertyId() { - } /** @@ -105,7 +88,6 @@ public function testPropertyId() */ public function testPropertyPetId() { - } /** @@ -113,7 +95,6 @@ public function testPropertyPetId() */ public function testPropertyQuantity() { - } /** @@ -121,7 +102,6 @@ public function testPropertyQuantity() */ public function testPropertyShipDate() { - } /** @@ -129,8 +109,6 @@ public function testPropertyShipDate() */ public function testPropertyStatus() { - $this->assertSame(Order::STATUS_PLACED, "placed"); - $this->assertSame(Order::STATUS_APPROVED, "approved"); } /** @@ -138,96 +116,5 @@ public function testPropertyStatus() */ public function testPropertyComplete() { - - } - - // test deseralization of order - public function testDeserializationOfOrder() - { - $order_json = <<assertInstanceOf('Swagger\Client\Model\Order', $order); - $this->assertSame(10, $order->getId()); - $this->assertSame(20, $order->getPetId()); - $this->assertSame(30, $order->getQuantity()); - $this->assertTrue(new \DateTime("2015-08-22T07:13:36.613Z") == $order->getShipDate()); - $this->assertSame("placed", $order->getStatus()); - $this->assertSame(false, $order->getComplete()); - } - - // test deseralization of array of array of order - public function testDeserializationOfArrayOfArrayOfOrder() - { - $order_json = <<assertArrayHasKey(0, $order); - $this->assertArrayHasKey(0, $order[0]); - $_order = $order[0][0]; - $this->assertInstanceOf('Swagger\Client\Model\Order', $_order); - $this->assertSame(10, $_order->getId()); - $this->assertSame(20, $_order->getPetId()); - $this->assertSame(30, $_order->getQuantity()); - $this->assertTrue(new \DateTime("2015-08-22T07:13:36.613Z") == $_order->getShipDate()); - $this->assertSame("placed", $_order->getStatus()); - $this->assertSame(false, $_order->getComplete()); } - - // test deseralization of map of map of order - public function testDeserializationOfMapOfMapOfOrder() - { - $order_json = <<assertArrayHasKey('test', $order); - $this->assertArrayHasKey('test2', $order['test']); - $_order = $order['test']['test2']; - $this->assertInstanceOf('Swagger\Client\Model\Order', $_order); - $this->assertSame(10, $_order->getId()); - $this->assertSame(20, $_order->getPetId()); - $this->assertSame(30, $_order->getQuantity()); - $this->assertTrue(new \DateTime("2015-08-22T07:13:36.613Z") == $_order->getShipDate()); - $this->assertSame("placed", $_order->getStatus()); - $this->assertSame(false, $_order->getComplete()); - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterBooleanTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterBooleanTest.php index 8252fad1e85..3749f784e21 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterBooleanTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterBooleanTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -32,9 +32,8 @@ /** * OuterBooleanTest Class Doc Comment * - * @category Class */ -// * @description OuterBoolean -/** + * @category Class + * @description OuterBoolean * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -47,7 +46,6 @@ class OuterBooleanTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -55,7 +53,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -63,7 +60,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -71,7 +67,6 @@ public function tearDown() */ public static function tearDownAfterClass() { - } /** @@ -79,7 +74,5 @@ public static function tearDownAfterClass() */ public function testOuterBoolean() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php index 172b9463b37..c670b289a6f 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -32,9 +32,8 @@ /** * OuterCompositeTest Class Doc Comment * - * @category Class */ -// * @description OuterComposite -/** + * @category Class + * @description OuterComposite * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -47,7 +46,6 @@ class OuterCompositeTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -55,7 +53,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -63,7 +60,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -71,7 +67,6 @@ public function tearDown() */ public static function tearDownAfterClass() { - } /** @@ -79,7 +74,6 @@ public static function tearDownAfterClass() */ public function testOuterComposite() { - } /** @@ -87,7 +81,6 @@ public function testOuterComposite() */ public function testPropertyMyNumber() { - } /** @@ -95,7 +88,6 @@ public function testPropertyMyNumber() */ public function testPropertyMyString() { - } /** @@ -103,7 +95,5 @@ public function testPropertyMyString() */ public function testPropertyMyBoolean() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php index f053305b848..e301bed7669 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -32,9 +32,8 @@ /** * OuterEnumTest Class Doc Comment * - * @category Class */ -// * @description OuterEnum -/** + * @category Class + * @description OuterEnum * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -47,7 +46,6 @@ class OuterEnumTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -55,7 +53,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -63,7 +60,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -71,7 +67,6 @@ public function tearDown() */ public static function tearDownAfterClass() { - } /** @@ -79,7 +74,5 @@ public static function tearDownAfterClass() */ public function testOuterEnum() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterNumberTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterNumberTest.php index d6f0e262c5b..a1faaae987a 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterNumberTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterNumberTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -32,9 +32,8 @@ /** * OuterNumberTest Class Doc Comment * - * @category Class */ -// * @description OuterNumber -/** + * @category Class + * @description OuterNumber * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -47,7 +46,6 @@ class OuterNumberTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -55,7 +53,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -63,7 +60,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -71,7 +67,6 @@ public function tearDown() */ public static function tearDownAfterClass() { - } /** @@ -79,7 +74,5 @@ public static function tearDownAfterClass() */ public function testOuterNumber() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterStringTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterStringTest.php index f779f69a920..a9d40f8331a 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterStringTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterStringTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -32,9 +32,8 @@ /** * OuterStringTest Class Doc Comment * - * @category Class */ -// * @description OuterString -/** + * @category Class + * @description OuterString * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -47,7 +46,6 @@ class OuterStringTest extends \PHPUnit_Framework_TestCase */ public static function setUpBeforeClass() { - } /** @@ -55,7 +53,6 @@ public static function setUpBeforeClass() */ public function setUp() { - } /** @@ -63,7 +60,6 @@ public function setUp() */ public function tearDown() { - } /** @@ -71,7 +67,6 @@ public function tearDown() */ public static function tearDownAfterClass() { - } /** @@ -79,7 +74,5 @@ public static function tearDownAfterClass() */ public function testOuterString() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php index b40d6c35e3e..8e4c92eec5c 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php @@ -6,8 +6,7 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -19,18 +18,7 @@ * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Swagger Codegen version: 2.4.0-SNAPSHOT */ /** @@ -47,45 +35,45 @@ * @category Class * @description Pet * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class PetTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { - } /** - * Test "Pet" + * Clean up after running all test cases */ - public function testPet() + public static function tearDownAfterClass() { - } /** - * test empty object serialization + * Test "Pet" */ - public function testEmptyPetSerialization() + public function testPet() { - $new_pet = new Model\Pet; - // the empty object should be serialised to {} - $this->assertSame("{}", "$new_pet"); } /** @@ -93,7 +81,6 @@ public function testEmptyPetSerialization() */ public function testPropertyId() { - } /** @@ -101,7 +88,6 @@ public function testPropertyId() */ public function testPropertyCategory() { - } /** @@ -109,7 +95,6 @@ public function testPropertyCategory() */ public function testPropertyName() { - } /** @@ -117,7 +102,6 @@ public function testPropertyName() */ public function testPropertyPhotoUrls() { - } /** @@ -125,7 +109,6 @@ public function testPropertyPhotoUrls() */ public function testPropertyTags() { - } /** @@ -133,7 +116,5 @@ public function testPropertyTags() */ public function testPropertyStatus() { - } - } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php index 38d936db03d..37bd33d6584 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * ReadOnlyFirstTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description ReadOnlyFirst * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class ReadOnlyFirstTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,19 @@ public static function tearDownAfterClass() */ public function testReadOnlyFirst() { + } + + /** + * Test attribute "bar" + */ + public function testPropertyBar() + { + } + /** + * Test attribute "baz" + */ + public function testPropertyBaz() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php index 100fdb79789..516ff06793a 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * SpecialModelNameTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description SpecialModelName * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class SpecialModelNameTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,12 @@ public static function tearDownAfterClass() */ public function testSpecialModelName() { + } + /** + * Test attribute "special_property_name" + */ + public function testPropertySpecialPropertyName() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php index 78b9abcc462..40de061a919 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * TagTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description Tag * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class TagTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,19 @@ public static function tearDownAfterClass() */ public function testTag() { + } + + /** + * Test attribute "id" + */ + public function testPropertyId() + { + } + /** + * Test attribute "name" + */ + public function testPropertyName() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php b/samples/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php index b8746208f5c..4119fed4477 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php +++ b/samples/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php @@ -6,32 +6,28 @@ * * @category Class * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ + /** - * Copyright 2016 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Swagger Petstore * - * http://www.apache.org/licenses/LICENSE-2.0 + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.0-SNAPSHOT */ + /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Please update the test case below to test the model. */ -namespace Swagger\Client\Model; +namespace Swagger\Client; /** * UserTest Class Doc Comment @@ -39,27 +35,38 @@ * @category Class * @description User * @package Swagger\Client - * @author http://github.com/swagger-api/swagger-codegen - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 + * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class UserTest extends \PHPUnit_Framework_TestCase { /** - * Setup before running each test case + * Setup before running any test case */ public static function setUpBeforeClass() { + } + /** + * Setup before running each test case + */ + public function setUp() + { } /** * Clean up after running each test case */ - public static function tearDownAfterClass() + public function tearDown() { + } + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass() + { } /** @@ -67,6 +74,61 @@ public static function tearDownAfterClass() */ public function testUser() { + } + + /** + * Test attribute "id" + */ + public function testPropertyId() + { + } + + /** + * Test attribute "username" + */ + public function testPropertyUsername() + { + } + + /** + * Test attribute "first_name" + */ + public function testPropertyFirstName() + { + } + + /** + * Test attribute "last_name" + */ + public function testPropertyLastName() + { + } + + /** + * Test attribute "email" + */ + public function testPropertyEmail() + { + } + /** + * Test attribute "password" + */ + public function testPropertyPassword() + { + } + + /** + * Test attribute "phone" + */ + public function testPropertyPhone() + { + } + + /** + * Test attribute "user_status" + */ + public function testPropertyUserStatus() + { } } diff --git a/samples/client/petstore/php/SwaggerClient-php/tests/PetTest.php b/samples/client/petstore/php/SwaggerClient-php/tests/PetTest.php new file mode 100644 index 00000000000..60ce604c522 --- /dev/null +++ b/samples/client/petstore/php/SwaggerClient-php/tests/PetTest.php @@ -0,0 +1,18 @@ +assertSame("{}", "$new_pet"); + } +}