mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 02:25:20 +00:00
[PHP] Bump minimum required version to PHP7.1 (#1491)
* Bump minimum required version to PHP7.1 ref: http://php.net/supported-versions.php * Bump phpunit * Update [api|model]_test.mustache * Update samples bin/openapi3/php-petstore.sh * Update namespace of PHPUnit ("tests" folder) * `setExpectedException` is deleted in PHPUnit 7.4 * Update namespace of "Assert" class * The attribute 'name' is required * Add anotation to exclude the test from risky testcheck * Update samples (samples/client/petstore/php) * Apply updates to "test" in openapi2 folder (samples/client/petstore/php)b3495ecbfe
15e00ae89d
2fc6917d13
0d016c00ed
* Install php7.1 * Switch to php7 * Update samples (security) bin/security/php-petstore.sh
This commit is contained in:
parent
2146081ffb
commit
34abedeb8a
@ -80,6 +80,9 @@ before_install:
|
||||
- sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install dart
|
||||
# switch to php7
|
||||
- phpenv global 7.1
|
||||
- php -v
|
||||
# install perl module
|
||||
#- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
||||
#- cpanm Test::Exception Test::More Log::Any LWP::UserAgent JSON URI:Query Module::Runtime DateTime Module::Find Moose::Role
|
||||
|
@ -21,6 +21,7 @@ namespace {{invokerPackage}};
|
||||
use \{{invokerPackage}}\Configuration;
|
||||
use \{{invokerPackage}}\ApiException;
|
||||
use \{{invokerPackage}}\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* {{classname}}Test Class Doc Comment
|
||||
@ -30,7 +31,7 @@ use \{{invokerPackage}}\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
{{#operations}}class {{classname}}Test extends \PHPUnit_Framework_TestCase
|
||||
{{#operations}}class {{classname}}Test extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -21,14 +21,14 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6",
|
||||
"php": ">=7.1",
|
||||
"ext-curl": "*",
|
||||
"ext-json": "*",
|
||||
"ext-mbstring": "*",
|
||||
"guzzlehttp/guzzle": "^6.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8",
|
||||
"phpunit/phpunit": "^7.4",
|
||||
"squizlabs/php_codesniffer": "~2.6",
|
||||
"friendsofphp/php-cs-fixer": "~2.12"
|
||||
},
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
namespace {{invokerPackage}};
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* {{classname}}Test Class Doc Comment
|
||||
*
|
||||
@ -30,7 +32,7 @@ namespace {{invokerPackage}};
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class {{classname}}Test extends \PHPUnit_Framework_TestCase
|
||||
class {{classname}}Test extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -6,7 +6,7 @@
|
||||
convertWarningsToExceptions="true"
|
||||
stopOnFailure="false">
|
||||
<testsuites>
|
||||
<testsuite>
|
||||
<testsuite name="tests">
|
||||
<directory>{{apiTestPath}}</directory>
|
||||
<directory>{{modelTestPath}}</directory>
|
||||
</testsuite>
|
||||
|
@ -18,14 +18,14 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6",
|
||||
"php": ">=7.1",
|
||||
"ext-curl": "*",
|
||||
"ext-json": "*",
|
||||
"ext-mbstring": "*",
|
||||
"guzzlehttp/guzzle": "^6.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8",
|
||||
"phpunit/phpunit": "^7.4",
|
||||
"squizlabs/php_codesniffer": "~2.6",
|
||||
"friendsofphp/php-cs-fixer": "~2.12"
|
||||
},
|
||||
|
@ -6,7 +6,7 @@
|
||||
convertWarningsToExceptions="true"
|
||||
stopOnFailure="false">
|
||||
<testsuites>
|
||||
<testsuite>
|
||||
<testsuite name="tests">
|
||||
<directory>./test/Api</directory>
|
||||
<directory>./test/Model</directory>
|
||||
</testsuite>
|
||||
|
@ -18,14 +18,14 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6",
|
||||
"php": ">=7.1",
|
||||
"ext-curl": "*",
|
||||
"ext-json": "*",
|
||||
"ext-mbstring": "*",
|
||||
"guzzlehttp/guzzle": "^6.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8",
|
||||
"phpunit/phpunit": "^7.4",
|
||||
"squizlabs/php_codesniffer": "~2.6",
|
||||
"friendsofphp/php-cs-fixer": "~2.12"
|
||||
},
|
||||
|
@ -6,7 +6,7 @@
|
||||
convertWarningsToExceptions="true"
|
||||
stopOnFailure="false">
|
||||
<testsuites>
|
||||
<testsuite>
|
||||
<testsuite name="tests">
|
||||
<directory>./test/Api</directory>
|
||||
<directory>./test/Model</directory>
|
||||
</testsuite>
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* AnotherFakeApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class AnotherFakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
class AnotherFakeApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FakeApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
class FakeApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FakeClassnameTags123ApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FakeClassnameTags123ApiTest extends \PHPUnit_Framework_TestCase
|
||||
class FakeClassnameTags123ApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PetApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
class PetApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* StoreApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class StoreApiTest extends \PHPUnit_Framework_TestCase
|
||||
class StoreApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* UserApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class UserApiTest extends \PHPUnit_Framework_TestCase
|
||||
class UserApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesClassTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class AdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase
|
||||
class AdditionalPropertiesClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* AnimalFarmTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class AnimalFarmTest extends \PHPUnit_Framework_TestCase
|
||||
class AnimalFarmTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* AnimalTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class AnimalTest extends \PHPUnit_Framework_TestCase
|
||||
class AnimalTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ApiResponseTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ApiResponseTest extends \PHPUnit_Framework_TestCase
|
||||
class ApiResponseTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ArrayOfArrayOfNumberOnlyTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ArrayOfArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayOfArrayOfNumberOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ArrayOfNumberOnlyTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayOfNumberOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ArrayTestTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ArrayTestTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* CapitalizationTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
class CapitalizationTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* CatTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class CatTest extends \PHPUnit_Framework_TestCase
|
||||
class CatTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* CategoryTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class CategoryTest extends \PHPUnit_Framework_TestCase
|
||||
class CategoryTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ClassModelTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ClassModelTest extends \PHPUnit_Framework_TestCase
|
||||
class ClassModelTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ClientTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
class ClientTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* DogTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class DogTest extends \PHPUnit_Framework_TestCase
|
||||
class DogTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* EnumArraysTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumArraysTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* EnumClassTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class EnumClassTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* EnumTestTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class EnumTestTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FileSchemaTestClassTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FileSchemaTestClassTest extends \PHPUnit_Framework_TestCase
|
||||
class FileSchemaTestClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FileTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FileTest extends \PHPUnit_Framework_TestCase
|
||||
class FileTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FormatTestTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FormatTestTest extends \PHPUnit_Framework_TestCase
|
||||
class FormatTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* HasOnlyReadOnlyTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class HasOnlyReadOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class HasOnlyReadOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* MapTestTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class MapTestTest extends \PHPUnit_Framework_TestCase
|
||||
class MapTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* MixedPropertiesAndAdditionalPropertiesClassTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class MixedPropertiesAndAdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase
|
||||
class MixedPropertiesAndAdditionalPropertiesClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Model200ResponseTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class Model200ResponseTest extends \PHPUnit_Framework_TestCase
|
||||
class Model200ResponseTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ModelListTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
class ModelListTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ModelReturnTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ModelReturnTest extends \PHPUnit_Framework_TestCase
|
||||
class ModelReturnTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* NameTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class NameTest extends \PHPUnit_Framework_TestCase
|
||||
class NameTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* NumberOnlyTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class NumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class NumberOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* OrderTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
class OrderTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* OuterCompositeTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
class OuterCompositeTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* OuterEnumTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
class OuterEnumTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PetTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class PetTest extends \PHPUnit_Framework_TestCase
|
||||
class PetTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ReadOnlyFirstTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ReadOnlyFirstTest extends \PHPUnit_Framework_TestCase
|
||||
class ReadOnlyFirstTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* SpecialModelNameTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class SpecialModelNameTest extends \PHPUnit_Framework_TestCase
|
||||
class SpecialModelNameTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* StringBooleanMapTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class StringBooleanMapTest extends \PHPUnit_Framework_TestCase
|
||||
class StringBooleanMapTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* TagTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class TagTest extends \PHPUnit_Framework_TestCase
|
||||
class TagTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* UserTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class UserTest extends \PHPUnit_Framework_TestCase
|
||||
class UserTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -4,8 +4,9 @@ namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Api\PetApi;
|
||||
use OpenAPI\Client\Model\Pet;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class AsyncTest extends \PHPUnit_Framework_TestCase
|
||||
class AsyncTest extends TestCase
|
||||
{
|
||||
/** @var PetApi */
|
||||
private $api;
|
||||
@ -61,24 +62,29 @@ class AsyncTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertInstanceOf(Pet::class, $pet);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OpenAPI\Client\ApiException
|
||||
*/
|
||||
public function testAsyncThrowingException()
|
||||
{
|
||||
$this->setExpectedException(ApiException::class);
|
||||
|
||||
$promise = $this->api->getPetByIdAsync(0);
|
||||
$promise->wait();
|
||||
}
|
||||
|
||||
/**
|
||||
* @doesNotPerformAssertions
|
||||
*/
|
||||
public function testAsyncApiExceptionWithoutWaitIsNotThrown()
|
||||
{
|
||||
$promise = $this->api->getPetByIdAsync(0);
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OpenAPI\Client\ApiException
|
||||
*/
|
||||
public function testAsyncHttpInfoThrowingException()
|
||||
{
|
||||
$this->setExpectedException(ApiException::class);
|
||||
|
||||
$promise = $this->api->getPetByIdAsyncWithHttpInfo(0);
|
||||
$promise->wait();
|
||||
}
|
||||
|
@ -5,10 +5,11 @@ namespace OpenAPI\Client;
|
||||
use OpenAPI\Client\Api\FakeApi;
|
||||
use OpenAPI\Client\Api\PetApi;
|
||||
use OpenAPI\Client\Model\Pet;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
require_once __DIR__ . '/FakeHttpClient.php';
|
||||
|
||||
class AuthTest extends \PHPUnit_Framework_TestCase
|
||||
class AuthTest extends TestCase
|
||||
{
|
||||
public function testCustomApiKeyHeader()
|
||||
{
|
||||
|
@ -3,8 +3,9 @@
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Model\FormatTest;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class DateTimeSerializerTest extends \PHPUnit_Framework_TestCase
|
||||
class DateTimeSerializerTest extends TestCase
|
||||
{
|
||||
public function testDateTimeSanitazion()
|
||||
{
|
||||
|
@ -1,7 +1,9 @@
|
||||
<?php
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
class DebugTest extends \PHPUnit_Framework_TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class DebugTest extends TestCase
|
||||
{
|
||||
public function testEnableDebugOutput()
|
||||
{
|
||||
|
@ -3,8 +3,9 @@
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Model\EnumClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class EnumClassTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumClassTest extends TestCase
|
||||
{
|
||||
public function testPossibleValues()
|
||||
{
|
||||
|
@ -3,8 +3,9 @@
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Model\EnumTest;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class EnumTestTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumTestTest extends TestCase
|
||||
{
|
||||
public function testPossibleValues()
|
||||
{
|
||||
|
@ -3,8 +3,9 @@
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ExceptionTest extends \PHPUnit_Framework_TestCase
|
||||
class ExceptionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException \OpenAPI\Client\ApiException
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
use OpenAPI\Client\Model\FormatTest;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class FormatTestTest extends \PHPUnit_Framework_TestCase
|
||||
class FormatTestTest extends TestCase
|
||||
{
|
||||
public function testCountTheLengthOfMultiByteStringsCorrectly()
|
||||
{
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
class HeaderSelectorTest extends \PHPUnit_Framework_TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class HeaderSelectorTest extends TestCase
|
||||
{
|
||||
public function testSelectingHeaders()
|
||||
{
|
||||
|
@ -2,9 +2,11 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
require_once __DIR__ . '/FakeHttpClient.php';
|
||||
|
||||
class HeadersTest extends \PHPUnit_Framework_TestCase
|
||||
class HeadersTest extends TestCase
|
||||
{
|
||||
/** @var FakeHttpClient */
|
||||
private $fakeHttpClient;
|
||||
|
@ -6,13 +6,14 @@ use OpenAPI\Client\Model\Animal;
|
||||
use OpenAPI\Client\Model\AnimalFarm;
|
||||
use OpenAPI\Client\Model\Cat;
|
||||
use OpenAPI\Client\Model\Dog;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Test that Dog properly inherit Animal
|
||||
*
|
||||
* @package OpenAPI\Client
|
||||
*/
|
||||
class ModelInheritanceTest extends \PHPUnit_Framework_TestCase
|
||||
class ModelInheritanceTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* test if default values works
|
||||
|
@ -2,8 +2,10 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
// test object serializer
|
||||
class ObjectSerializerTest extends \PHPUnit_Framework_TestCase
|
||||
class ObjectSerializerTest extends TestCase
|
||||
{
|
||||
// test sanitizeFilename
|
||||
public function testSanitizeFilename()
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
class OrderApiTest extends \PHPUnit_Framework_TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class OrderApiTest extends TestCase
|
||||
{
|
||||
|
||||
// add a new pet (id 10005) to ensure the pet object is available for all the tests
|
||||
|
@ -4,8 +4,9 @@ namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Model\EnumTest;
|
||||
use OpenAPI\Client\Model\OuterEnum;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
class OuterEnumTest extends TestCase
|
||||
{
|
||||
public function testDeserialize()
|
||||
{
|
||||
@ -18,10 +19,12 @@ class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals('placed', $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
* @expectedExceptionMessage Invalid value for enum
|
||||
*/
|
||||
public function testDeserializeInvalidValue()
|
||||
{
|
||||
$this->setExpectedException(\InvalidArgumentException::class, 'Invalid value for enum');
|
||||
|
||||
ObjectSerializer::deserialize(
|
||||
"lkjfalgkdfjg",
|
||||
OuterEnum::class
|
||||
@ -78,10 +81,12 @@ class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals('approved', $result->outerEnum);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
* @expectedExceptionMessage Invalid value for enum
|
||||
*/
|
||||
public function testSanitizeNestedInvalidValue()
|
||||
{
|
||||
$this->setExpectedException(\InvalidArgumentException::class, 'Invalid value for enum');
|
||||
|
||||
$input = new EnumTest([
|
||||
'enum_string' => 'UPPER',
|
||||
'enum_integer' => -1,
|
||||
|
@ -4,10 +4,11 @@ namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Api\FakeApi;
|
||||
use OpenAPI\Client\Api\UserApi;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
require_once __DIR__ . '/FakeHttpClient.php';
|
||||
|
||||
class ParametersTest extends \PHPUnit_Framework_TestCase
|
||||
class ParametersTest extends TestCase
|
||||
{
|
||||
/** @var FakeHttpClient */
|
||||
private $fakeHttpClient;
|
||||
|
@ -5,8 +5,10 @@ namespace OpenAPI\Client;
|
||||
use OpenAPI\Client\Api\PetApi;
|
||||
use OpenAPI\Client\Model\ApiResponse;
|
||||
use OpenAPI\Client\Model\Pet;
|
||||
use PHPUnit\Framework\Assert;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
class PetApiTest extends TestCase
|
||||
{
|
||||
|
||||
/** @var PetApi */
|
||||
@ -45,7 +47,7 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
// add a new pet (model)
|
||||
list(, $status) = $petApi->addPetWithHttpInfo($newPet);
|
||||
\PHPUnit_Framework_Assert::assertEquals(200, $status);
|
||||
Assert::assertEquals(200, $status);
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
|
@ -3,8 +3,9 @@
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Model\Pet;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class PetTest extends \PHPUnit_Framework_TestCase
|
||||
class PetTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* test empty object serialization
|
||||
|
@ -3,10 +3,11 @@
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Api\FakeApi;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
require_once __DIR__ . '/FakeHttpClient.php';
|
||||
|
||||
class RequestTest extends \PHPUnit_Framework_TestCase
|
||||
class RequestTest extends TestCase
|
||||
{
|
||||
|
||||
/** @var FakeApi */
|
||||
|
@ -5,10 +5,11 @@ namespace OpenAPI\Client;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use OpenAPI\Client\Api\PetApi;
|
||||
use OpenAPI\Client\Model\Pet;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
require_once __DIR__ . '/FakeHttpClient.php';
|
||||
|
||||
class ResponseTypesTest extends \PHPUnit_Framework_TestCase
|
||||
class ResponseTypesTest extends TestCase
|
||||
{
|
||||
/** @var PetApi */
|
||||
private $api;
|
||||
|
@ -7,8 +7,9 @@ use OpenAPI\Client\Api\StoreApi;
|
||||
use OpenAPI\Client\Model\Category;
|
||||
use OpenAPI\Client\Model\Pet;
|
||||
use OpenAPI\Client\Model\Tag;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class StoreApiTest extends \PHPUnit_Framework_TestCase
|
||||
class StoreApiTest extends TestCase
|
||||
{
|
||||
/** @var StoreApi */
|
||||
private $api;
|
||||
|
@ -3,8 +3,9 @@
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use OpenAPI\Client\Api\UserApi;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class UserApiTest extends \PHPUnit_Framework_TestCase
|
||||
class UserApiTest extends TestCase
|
||||
{
|
||||
|
||||
/** @var UserApi*/
|
||||
|
@ -18,14 +18,14 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6",
|
||||
"php": ">=7.1",
|
||||
"ext-curl": "*",
|
||||
"ext-json": "*",
|
||||
"ext-mbstring": "*",
|
||||
"guzzlehttp/guzzle": "^6.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8",
|
||||
"phpunit/phpunit": "^7.4",
|
||||
"squizlabs/php_codesniffer": "~2.6",
|
||||
"friendsofphp/php-cs-fixer": "~2.12"
|
||||
},
|
||||
|
@ -6,7 +6,7 @@
|
||||
convertWarningsToExceptions="true"
|
||||
stopOnFailure="false">
|
||||
<testsuites>
|
||||
<testsuite>
|
||||
<testsuite name="tests">
|
||||
<directory>./test/Api</directory>
|
||||
<directory>./test/Model</directory>
|
||||
</testsuite>
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* AnotherFakeApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class AnotherFakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
class AnotherFakeApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* DefaultApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class DefaultApiTest extends \PHPUnit_Framework_TestCase
|
||||
class DefaultApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FakeApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
class FakeApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FakeClassnameTags123ApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FakeClassnameTags123ApiTest extends \PHPUnit_Framework_TestCase
|
||||
class FakeClassnameTags123ApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PetApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
class PetApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* StoreApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class StoreApiTest extends \PHPUnit_Framework_TestCase
|
||||
class StoreApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,7 @@ namespace OpenAPI\Client;
|
||||
use \OpenAPI\Client\Configuration;
|
||||
use \OpenAPI\Client\ApiException;
|
||||
use \OpenAPI\Client\ObjectSerializer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* UserApiTest Class Doc Comment
|
||||
@ -40,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class UserApiTest extends \PHPUnit_Framework_TestCase
|
||||
class UserApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesClassTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class AdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase
|
||||
class AdditionalPropertiesClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* AnimalFarmTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class AnimalFarmTest extends \PHPUnit_Framework_TestCase
|
||||
class AnimalFarmTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* AnimalTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class AnimalTest extends \PHPUnit_Framework_TestCase
|
||||
class AnimalTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ApiResponseTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ApiResponseTest extends \PHPUnit_Framework_TestCase
|
||||
class ApiResponseTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ArrayOfArrayOfNumberOnlyTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ArrayOfArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayOfArrayOfNumberOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ArrayOfNumberOnlyTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayOfNumberOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ArrayTestTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ArrayTestTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* CapitalizationTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
class CapitalizationTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* CatTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class CatTest extends \PHPUnit_Framework_TestCase
|
||||
class CatTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* CategoryTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class CategoryTest extends \PHPUnit_Framework_TestCase
|
||||
class CategoryTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ClassModelTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ClassModelTest extends \PHPUnit_Framework_TestCase
|
||||
class ClassModelTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ClientTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
class ClientTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* DogTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class DogTest extends \PHPUnit_Framework_TestCase
|
||||
class DogTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* EnumArraysTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumArraysTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* EnumClassTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class EnumClassTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* EnumTestTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class EnumTestTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FileSchemaTestClassTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FileSchemaTestClassTest extends \PHPUnit_Framework_TestCase
|
||||
class FileSchemaTestClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FileTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FileTest extends \PHPUnit_Framework_TestCase
|
||||
class FileTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
namespace OpenAPI\Client;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* FooTest Class Doc Comment
|
||||
*
|
||||
@ -38,7 +40,7 @@ namespace OpenAPI\Client;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://openapi-generator.tech
|
||||
*/
|
||||
class FooTest extends \PHPUnit_Framework_TestCase
|
||||
class FooTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user