forked from loafle/openapi-generator-original
[PHP] Cleanup test (#7673)
* Regenerate PetApiTest, OrderTest The same test code as deleted is in the 'tests' directory. * Move test code 'test' -> 'tests', and Regenerate test/Model/PetTest.php * Regenerate 'test' directory rm -rf samples/client/petstore/php/SwaggerClient-php/test && bin/php-petstore.sh
This commit is contained in:
parent
14e1e19803
commit
be14e02875
@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -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 @@ use \Swagger\Client\ObjectSerializer;
|
||||
*
|
||||
* @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 @@ class FakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -78,7 +62,6 @@ class FakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -86,7 +69,56 @@ class FakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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 @@ class FakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,83 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Fake_classname_tags123ApiTest
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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: \" \\
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
* Contact: apiteam@swagger.io
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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 endpoint.
|
||||
*/
|
||||
|
||||
namespace Swagger\Client;
|
||||
|
||||
use \Swagger\Client\Configuration;
|
||||
use \Swagger\Client\ApiException;
|
||||
use \Swagger\Client\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* Fake_classname_tags123ApiTest Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class Fake_classname_tags123ApiTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Setup before running any test cases
|
||||
*/
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup before running each test case
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running each test case
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test case for testClassname
|
||||
*
|
||||
* To test class name in snake case.
|
||||
*
|
||||
*/
|
||||
public function testTestClassname()
|
||||
{
|
||||
}
|
||||
}
|
@ -5,8 +5,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
|
||||
*/
|
||||
|
||||
@ -18,18 +17,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
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -49,59 +37,24 @@ use \Swagger\Client\ObjectSerializer;
|
||||
*
|
||||
* @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 PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Setup before running any test cases
|
||||
*/
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup before running each test case
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
// add a new pet (id 10005) to ensure the pet object is available for all the tests
|
||||
|
||||
// increase memory limit to avoid fatal error due to findPetByStatus
|
||||
// returning a lot of data
|
||||
ini_set('memory_limit', '256M');
|
||||
|
||||
// for error reporting (need to run with php5.3 to get no warning)
|
||||
//ini_set('display_errors', 1);
|
||||
//error_reporting(~0);
|
||||
// when running with php5.5, comment out below to skip the warning about
|
||||
// using @ to handle file upload
|
||||
//ini_set('display_startup_errors',1);
|
||||
//ini_set('display_errors',1);
|
||||
//error_reporting(-1);
|
||||
|
||||
// enable debugging
|
||||
//Configuration::$debug = true;
|
||||
|
||||
// skip initializing the API client as it should be automatic
|
||||
//$api_client = new ApiClient('http://petstore.swagger.io/v2');
|
||||
// new pet
|
||||
$new_pet_id = 10005;
|
||||
$new_pet = new Model\Pet;
|
||||
$new_pet->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 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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,55 +89,17 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,19 @@ class AdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testAdditionalPropertiesClass()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "map_property"
|
||||
*/
|
||||
public function testPropertyMapProperty()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "map_of_map_property"
|
||||
*/
|
||||
public function testPropertyMapOfMapProperty()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,19 @@ class AnimalTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testAnimal()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "class_name"
|
||||
*/
|
||||
public function testPropertyClassName()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "color"
|
||||
*/
|
||||
public function testPropertyColor()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,26 @@ class ApiResponseTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testApiResponse()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "code"
|
||||
*/
|
||||
public function testPropertyCode()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "type"
|
||||
*/
|
||||
public function testPropertyType()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "message"
|
||||
*/
|
||||
public function testPropertyMessage()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,6 +74,12 @@ class ArrayOfArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testArrayOfArrayOfNumberOnly()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "array_array_number"
|
||||
*/
|
||||
public function testPropertyArrayArrayNumber()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,6 +74,12 @@ class ArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testArrayOfNumberOnly()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "array_number"
|
||||
*/
|
||||
public function testPropertyArrayNumber()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,6 +74,26 @@ class ArrayTestTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,7 +60,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,7 +67,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +74,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCapitalization()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -87,7 +81,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertySmallCamel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -95,7 +88,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyCapitalCamel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -103,7 +95,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertySmallSnake()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -111,7 +102,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyCapitalSnake()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -119,7 +109,6 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyScaEthFlowPoints()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -127,7 +116,5 @@ class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyAttName()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,12 @@ class CatTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCat()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "declawed"
|
||||
*/
|
||||
public function testPropertyDeclawed()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,19 @@ class CategoryTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testCategory()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "id"
|
||||
*/
|
||||
public function testPropertyId()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "name"
|
||||
*/
|
||||
public function testPropertyName()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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 @@ class ClassModelTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,7 +60,6 @@ class ClassModelTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,7 +67,6 @@ class ClassModelTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +74,6 @@ class ClassModelTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testClassModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -87,7 +81,5 @@ class ClassModelTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -76,7 +60,6 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -84,7 +67,6 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -92,7 +74,6 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testClient()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -100,7 +81,5 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyClient()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,101 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* DefaultErrorTest
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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: \" \\
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
* Contact: apiteam@swagger.io
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* DefaultErrorTest Class Doc Comment
|
||||
*
|
||||
* @category Class */
|
||||
// * @description test
|
||||
/**
|
||||
* @package Swagger\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class DefaultErrorTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* 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 function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test "DefaultError"
|
||||
*/
|
||||
public function testDefaultError()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "error"
|
||||
*/
|
||||
public function testPropertyError()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "code"
|
||||
*/
|
||||
public function testPropertyCode()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* DogTest Class Doc Comment
|
||||
@ -39,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description Dog
|
||||
* @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 DogTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,12 @@ class DogTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testDog()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "breed"
|
||||
*/
|
||||
public function testPropertyBreed()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* EnumArraysTest Class Doc Comment
|
||||
*
|
||||
* @category Class */
|
||||
// * @description EnumArrays
|
||||
/**
|
||||
* @category Class
|
||||
* @description EnumArrays
|
||||
* @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 EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
@ -60,7 +46,6 @@ class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -68,7 +53,6 @@ class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -76,7 +60,6 @@ class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -84,7 +67,6 @@ class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -92,7 +74,13 @@ class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testEnumArrays()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "just_symbol"
|
||||
*/
|
||||
public function testPropertyJustSymbol()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
@ -100,15 +88,5 @@ class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyArrayEnum()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "array_array_enum"
|
||||
*/
|
||||
public function testPropertyArrayArrayEnum()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* EnumClassTest Class Doc Comment
|
||||
*
|
||||
* @category Class */
|
||||
// * @description EnumClass
|
||||
/**
|
||||
* @category Class
|
||||
* @description EnumClass
|
||||
* @package Swagger\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* EnumTestTest Class Doc Comment
|
||||
*
|
||||
* @category Class */
|
||||
// * @description EnumTest
|
||||
/**
|
||||
* @category Class
|
||||
* @description EnumTest
|
||||
* @package Swagger\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
|
@ -1,101 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* ErrorTest
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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: \" \\
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
* Contact: apiteam@swagger.io
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* ErrorTest Class Doc Comment
|
||||
*
|
||||
* @category Class */
|
||||
// * @description test
|
||||
/**
|
||||
* @package Swagger\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ErrorTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* 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 function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test "Error"
|
||||
*/
|
||||
public function testError()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "error"
|
||||
*/
|
||||
public function testPropertyError()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "code"
|
||||
*/
|
||||
public function testPropertyCode()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* FormatTestTest Class Doc Comment
|
||||
@ -39,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description FormatTest
|
||||
* @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 FormatTestTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,96 @@ class FormatTestTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testFormatTest()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "integer"
|
||||
*/
|
||||
public function testPropertyInteger()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "int32"
|
||||
*/
|
||||
public function testPropertyInt32()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "int64"
|
||||
*/
|
||||
public function testPropertyInt64()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "number"
|
||||
*/
|
||||
public function testPropertyNumber()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "float"
|
||||
*/
|
||||
public function testPropertyFloat()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "double"
|
||||
*/
|
||||
public function testPropertyDouble()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "string"
|
||||
*/
|
||||
public function testPropertyString()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "byte"
|
||||
*/
|
||||
public function testPropertyByte()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "binary"
|
||||
*/
|
||||
public function testPropertyBinary()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "date"
|
||||
*/
|
||||
public function testPropertyDate()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "date_time"
|
||||
*/
|
||||
public function testPropertyDateTime()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "uuid"
|
||||
*/
|
||||
public function testPropertyUuid()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "password"
|
||||
*/
|
||||
public function testPropertyPassword()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
* HasOnlyReadOnlyTest Class Doc Comment
|
||||
@ -47,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description HasOnlyReadOnly
|
||||
* @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 HasOnlyReadOnlyTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,6 +74,19 @@ class HasOnlyReadOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testHasOnlyReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "bar"
|
||||
*/
|
||||
public function testPropertyBar()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "foo"
|
||||
*/
|
||||
public function testPropertyFoo()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
* MapTestTest Class Doc Comment
|
||||
@ -47,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description MapTest
|
||||
* @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 MapTestTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,6 +74,19 @@ class MapTestTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testMapTest()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "map_map_of_string"
|
||||
*/
|
||||
public function testPropertyMapMapOfString()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "map_of_enum_string"
|
||||
*/
|
||||
public function testPropertyMapOfEnumString()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* MixedPropertiesAndAdditionalPropertiesClassTest Class Doc Comment
|
||||
@ -39,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description MixedPropertiesAndAdditionalPropertiesClass
|
||||
* @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 MixedPropertiesAndAdditionalPropertiesClassTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,26 @@ class MixedPropertiesAndAdditionalPropertiesClassTest extends \PHPUnit_Framework
|
||||
*/
|
||||
public function testMixedPropertiesAndAdditionalPropertiesClass()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "uuid"
|
||||
*/
|
||||
public function testPropertyUuid()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "date_time"
|
||||
*/
|
||||
public function testPropertyDateTime()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "map"
|
||||
*/
|
||||
public function testPropertyMap()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* Model200ResponseTest Class Doc Comment
|
||||
@ -39,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description Model for testing model name starting with number
|
||||
* @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 Model200ResponseTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,19 @@ class Model200ResponseTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testModel200Response()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "name"
|
||||
*/
|
||||
public function testPropertyName()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "class"
|
||||
*/
|
||||
public function testPropertyClass()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* ModelListTest Class Doc Comment
|
||||
*
|
||||
* @category Class */
|
||||
// * @description ModelList
|
||||
/**
|
||||
* @category Class
|
||||
* @description ModelList
|
||||
* @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 ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
@ -60,7 +46,6 @@ class ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -68,7 +53,6 @@ class ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -76,7 +60,6 @@ class ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -84,7 +67,6 @@ class ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -92,7 +74,6 @@ class ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testModelList()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -100,7 +81,5 @@ class ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testProperty123List()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* ModelReturnTest Class Doc Comment
|
||||
@ -39,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description Model for testing reserved words
|
||||
* @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 ModelReturnTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,12 @@ class ModelReturnTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testModelReturn()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "return"
|
||||
*/
|
||||
public function testPropertyReturn()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* NameTest Class Doc Comment
|
||||
@ -39,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description Model for testing model name same as property name
|
||||
* @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 NameTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,33 @@ class NameTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testName()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "name"
|
||||
*/
|
||||
public function testPropertyName()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "snake_case"
|
||||
*/
|
||||
public function testPropertySnakeCase()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "property"
|
||||
*/
|
||||
public function testPropertyProperty()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "_123_number"
|
||||
*/
|
||||
public function testProperty123Number()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
* NumberOnlyTest Class Doc Comment
|
||||
@ -47,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description NumberOnly
|
||||
* @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 NumberOnlyTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,6 +74,12 @@ class NumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOnly()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "just_number"
|
||||
*/
|
||||
public function testPropertyJustNumber()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
* OrderTest Class Doc Comment
|
||||
@ -47,27 +35,38 @@ namespace Swagger\Client\Model;
|
||||
* @category Class
|
||||
* @description Order
|
||||
* @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 OrderTest 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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,21 +74,6 @@ class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testOrder()
|
||||
{
|
||||
// initialize the API client
|
||||
$order = new Order();
|
||||
|
||||
$order->setStatus("placed");
|
||||
$this->assertSame("placed", $order->getStatus());
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException InvalidArgumentException
|
||||
*/
|
||||
public function testOrderException()
|
||||
{
|
||||
// initialize the API client
|
||||
$order = new Order();
|
||||
$order->setStatus("invalid_value");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -97,7 +81,6 @@ class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyId()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -105,7 +88,6 @@ class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyPetId()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -113,7 +95,6 @@ class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyQuantity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -121,7 +102,6 @@ class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyShipDate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -129,8 +109,6 @@ class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyStatus()
|
||||
{
|
||||
$this->assertSame(Order::STATUS_PLACED, "placed");
|
||||
$this->assertSame(Order::STATUS_APPROVED, "approved");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -138,96 +116,5 @@ class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyComplete()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// test deseralization of order
|
||||
public function testDeserializationOfOrder()
|
||||
{
|
||||
$order_json = <<<ORDER
|
||||
{
|
||||
"id": 10,
|
||||
"petId": 20,
|
||||
"quantity": 30,
|
||||
"shipDate": "2015-08-22T07:13:36.613Z",
|
||||
"status": "placed",
|
||||
"complete": false
|
||||
}
|
||||
ORDER;
|
||||
$order = \Swagger\Client\ObjectSerializer::deserialize(
|
||||
json_decode($order_json),
|
||||
'Swagger\Client\Model\Order'
|
||||
);
|
||||
|
||||
$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 array of array of order
|
||||
public function testDeserializationOfArrayOfArrayOfOrder()
|
||||
{
|
||||
$order_json = <<<ORDER
|
||||
[[{
|
||||
"id": 10,
|
||||
"petId": 20,
|
||||
"quantity": 30,
|
||||
"shipDate": "2015-08-22T07:13:36.613Z",
|
||||
"status": "placed",
|
||||
"complete": false
|
||||
}]]
|
||||
ORDER;
|
||||
$order = \Swagger\Client\ObjectSerializer::deserialize(
|
||||
json_decode($order_json),
|
||||
'Swagger\Client\Model\Order[][]'
|
||||
);
|
||||
$this->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 = <<<ORDER
|
||||
{
|
||||
"test": {
|
||||
"test2": {
|
||||
"id": 10,
|
||||
"petId": 20,
|
||||
"quantity": 30,
|
||||
"shipDate": "2015-08-22T07:13:36.613Z",
|
||||
"status": "placed",
|
||||
"complete": false
|
||||
}
|
||||
}
|
||||
}
|
||||
ORDER;
|
||||
$order = \Swagger\Client\ObjectSerializer::deserialize(
|
||||
json_decode($order_json),
|
||||
'map[string,map[string,\Swagger\Client\Model\Order]]'
|
||||
);
|
||||
$this->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());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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 @@ class OuterBooleanTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,7 +60,6 @@ class OuterBooleanTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,7 +67,6 @@ class OuterBooleanTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +74,5 @@ class OuterBooleanTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testOuterBoolean()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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 @@ class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,7 +60,6 @@ class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,7 +67,6 @@ class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +74,6 @@ class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testOuterComposite()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -87,7 +81,6 @@ class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyMyNumber()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -95,7 +88,6 @@ class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyMyString()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -103,7 +95,5 @@ class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyMyBoolean()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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 @@ class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,7 +60,6 @@ class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,7 +67,6 @@ class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +74,5 @@ class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testOuterEnum()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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 @@ class OuterNumberTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,7 +60,6 @@ class OuterNumberTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,7 +67,6 @@ class OuterNumberTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +74,5 @@ class OuterNumberTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testOuterNumber()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 @@ namespace Swagger\Client;
|
||||
/**
|
||||
* 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 @@ class OuterStringTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,7 +60,6 @@ class OuterStringTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,7 +67,6 @@ class OuterStringTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +74,5 @@ class OuterStringTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testOuterString()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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,27 +35,38 @@ namespace Swagger\Client;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,17 +74,6 @@ class PetTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPet()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* test empty object serialization
|
||||
*/
|
||||
public function testEmptyPetSerialization()
|
||||
{
|
||||
$new_pet = new Model\Pet;
|
||||
// the empty object should be serialised to {}
|
||||
$this->assertSame("{}", "$new_pet");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -93,7 +81,6 @@ class PetTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyId()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -101,7 +88,6 @@ class PetTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyCategory()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -109,7 +95,6 @@ class PetTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyName()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -117,7 +102,6 @@ class PetTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyPhotoUrls()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -125,7 +109,6 @@ class PetTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyTags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -133,7 +116,5 @@ class PetTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPropertyStatus()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,19 @@ class ReadOnlyFirstTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testReadOnlyFirst()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "bar"
|
||||
*/
|
||||
public function testPropertyBar()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "baz"
|
||||
*/
|
||||
public function testPropertyBaz()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,12 @@ class SpecialModelNameTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testSpecialModelName()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "special_property_name"
|
||||
*/
|
||||
public function testPropertySpecialPropertyName()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,19 @@ class TagTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testTag()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "id"
|
||||
*/
|
||||
public function testPropertyId()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "name"
|
||||
*/
|
||||
public function testPropertyName()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
* Swagger Petstore
|
||||
*
|
||||
* 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
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* 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.
|
||||
* 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 @@ namespace Swagger\Client\Model;
|
||||
* @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 function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,6 +74,61 @@ class UserTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Swagger\Client;
|
||||
|
||||
use Swagger\Client\Model\Pet;
|
||||
|
||||
class PetTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* test empty object serialization
|
||||
*/
|
||||
public function testEmptyPetSerialization()
|
||||
{
|
||||
$new_pet = new Pet;
|
||||
// the empty object should be serialised to {}
|
||||
$this->assertSame("{}", "$new_pet");
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user