forked from loafle/openapi-generator-original
[Slim] Migration to PHP7 (#1263)
* [Slim] Add PHP 7.0 to requirements * [Slim] Migrate to PHPUnit 6 * [Slim] Update user guide * [Slim] Refresh samples
This commit is contained in:
committed by
William Cheng
parent
bbfaa90242
commit
30062afc7c
@@ -5,7 +5,7 @@
|
||||
## Requirements
|
||||
|
||||
* Web server with URL rewriting
|
||||
* PHP 5.5.9 or newer
|
||||
* PHP 7.0 or newer
|
||||
|
||||
This package contains `.htaccess` for Apache configuration.
|
||||
If you use another server(Nginx, HHVM, IIS, lighttpd) check out [Web Servers](https://www.slimframework.com/docs/v3/start/web-servers.html) doc.
|
||||
@@ -30,9 +30,9 @@ $ php -S localhost:8888 -t php-slim-server
|
||||
|
||||
## Run tests
|
||||
|
||||
This package uses PHPUnit 4.8 for unit testing and PHP Codesniffer to check source code against user defined coding standard(`phpcsStandard` generator config option).
|
||||
This package uses PHPUnit 6 or 7(depends from your PHP version) for unit testing and PHP Codesniffer to check source code against user defined coding standard(`phpcsStandard` generator config option).
|
||||
[Test folder]({{testBasePath}}) contains templates which you can fill with real test assertions.
|
||||
How to write tests read at [PHPUnit Manual - Chapter 2. Writing Tests for PHPUnit](https://phpunit.de/manual/4.8/en/writing-tests-for-phpunit.html).
|
||||
How to write tests read at [PHPUnit Manual - Chapter 2. Writing Tests for PHPUnit](https://phpunit.de/manual/6.5/en/writing-tests-for-phpunit.html).
|
||||
How to configure PHP CodeSniffer read at [PHP CodeSniffer Documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki).
|
||||
There is [phplint](https://github.com/overtrue/phplint) tool to check php syntax automatically.
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
*/
|
||||
namespace {{apiPackage}};
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use {{apiPackage}}\{{classname}};
|
||||
|
||||
/**
|
||||
@@ -45,7 +46,7 @@ use {{apiPackage}}\{{classname}};
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \{{modelPackage}}\{{classname}}
|
||||
*/
|
||||
{{#operations}}class {{classname}}Test extends \PHPUnit_Framework_TestCase
|
||||
{{#operations}}class {{classname}}Test extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"minimum-stability": "RC",
|
||||
"require": {
|
||||
"php": ">=5.5.9",
|
||||
"php": "^7.0",
|
||||
"slim/slim": "3.*",
|
||||
"tuupola/slim-basic-auth": "^3.0.0"
|
||||
"tuupola/slim-basic-auth": "^2.0 || ^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8",
|
||||
"phpunit/phpunit": "^6.0 || ^7.0",
|
||||
"overtrue/phplint": "^1.0",
|
||||
"squizlabs/php_codesniffer": "^3.0"
|
||||
},
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
*/
|
||||
namespace {{modelPackage}};
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use {{modelPackage}}\{{classname}};
|
||||
|
||||
/**
|
||||
@@ -47,7 +48,7 @@ use {{modelPackage}}\{{classname}};
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \{{modelPackage}}\{{classname}}
|
||||
*/
|
||||
class {{classname}}Test extends \PHPUnit_Framework_TestCase
|
||||
class {{classname}}Test extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
stopOnFailure="false">
|
||||
beStrictAboutTestsThatDoNotTestAnything="false"
|
||||
stopOnFailure="false"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="Apis">
|
||||
|
||||
@@ -1 +1 @@
|
||||
3.3.0-SNAPSHOT
|
||||
3.3.2-SNAPSHOT
|
||||
@@ -5,7 +5,7 @@
|
||||
## Requirements
|
||||
|
||||
* Web server with URL rewriting
|
||||
* PHP 5.5.9 or newer
|
||||
* PHP 7.0 or newer
|
||||
|
||||
This package contains `.htaccess` for Apache configuration.
|
||||
If you use another server(Nginx, HHVM, IIS, lighttpd) check out [Web Servers](https://www.slimframework.com/docs/v3/start/web-servers.html) doc.
|
||||
@@ -30,9 +30,9 @@ $ php -S localhost:8888 -t php-slim-server
|
||||
|
||||
## Run tests
|
||||
|
||||
This package uses PHPUnit 4.8 for unit testing and PHP Codesniffer to check source code against user defined coding standard(`phpcsStandard` generator config option).
|
||||
This package uses PHPUnit 6 or 7(depends from your PHP version) for unit testing and PHP Codesniffer to check source code against user defined coding standard(`phpcsStandard` generator config option).
|
||||
[Test folder](test) contains templates which you can fill with real test assertions.
|
||||
How to write tests read at [PHPUnit Manual - Chapter 2. Writing Tests for PHPUnit](https://phpunit.de/manual/4.8/en/writing-tests-for-phpunit.html).
|
||||
How to write tests read at [PHPUnit Manual - Chapter 2. Writing Tests for PHPUnit](https://phpunit.de/manual/6.5/en/writing-tests-for-phpunit.html).
|
||||
How to configure PHP CodeSniffer read at [PHP CodeSniffer Documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki).
|
||||
There is [phplint](https://github.com/overtrue/phplint) tool to check php syntax automatically.
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"minimum-stability": "RC",
|
||||
"require": {
|
||||
"php": ">=5.5.9",
|
||||
"php": "^7.0",
|
||||
"slim/slim": "3.*",
|
||||
"tuupola/slim-basic-auth": "^3.0.0"
|
||||
"tuupola/slim-basic-auth": "^2.0 || ^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8",
|
||||
"phpunit/phpunit": "^6.0 || ^7.0",
|
||||
"overtrue/phplint": "^1.0",
|
||||
"squizlabs/php_codesniffer": "^3.0"
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -40,7 +40,7 @@ use OpenAPIServer\AbstractApiController;
|
||||
*/
|
||||
class FakeApi extends AbstractApiController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* PUT testCodeInjectEndRnNR
|
||||
* Summary: To test code injection *_/ ' \" =end -- \\r\\n \\n \\r
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
stopOnFailure="false">
|
||||
beStrictAboutTestsThatDoNotTestAnything="false"
|
||||
stopOnFailure="false"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="Apis">
|
||||
@@ -19,8 +20,8 @@
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">./lib/Api</directory>
|
||||
<directory suffix=".php">./lib/Model</directory>
|
||||
<directory suffix=".php">./lib//Api</directory>
|
||||
<directory suffix=".php">./lib//Model</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
@@ -25,6 +25,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Api;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Api\FakeApi;
|
||||
|
||||
/**
|
||||
@@ -37,7 +38,7 @@ use OpenAPIServer\Api\FakeApi;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\FakeApi
|
||||
*/
|
||||
class FakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
class FakeApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ModelReturn;
|
||||
|
||||
/**
|
||||
@@ -37,7 +38,7 @@ use OpenAPIServer\Model\ModelReturn;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ModelReturn
|
||||
*/
|
||||
class ModelReturnTest extends \PHPUnit_Framework_TestCase
|
||||
class ModelReturnTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"minimum-stability": "RC",
|
||||
"require": {
|
||||
"php": ">=5.5.9",
|
||||
"php": "^7.0",
|
||||
"slim/slim": "3.*",
|
||||
"tuupola/slim-basic-auth": "^3.0.0"
|
||||
"tuupola/slim-basic-auth": "^2.0 || ^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8",
|
||||
"phpunit/phpunit": "^6.0 || ^7.0",
|
||||
"overtrue/phplint": "^1.0",
|
||||
"squizlabs/php_codesniffer": "^3.0"
|
||||
},
|
||||
|
||||
811
samples/server/petstore/php-slim/composer.lock
generated
811
samples/server/petstore/php-slim/composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,8 @@
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
stopOnFailure="false">
|
||||
beStrictAboutTestsThatDoNotTestAnything="false"
|
||||
stopOnFailure="false"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="Apis">
|
||||
@@ -19,8 +20,8 @@
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">./lib/Api</directory>
|
||||
<directory suffix=".php">./lib/Model</directory>
|
||||
<directory suffix=".php">./lib//Api</directory>
|
||||
<directory suffix=".php">./lib//Model</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Api;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Api\AnotherFakeApi;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Api\AnotherFakeApi;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\AnotherFakeApi
|
||||
*/
|
||||
class AnotherFakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
class AnotherFakeApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Api;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Api\FakeApi;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Api\FakeApi;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\FakeApi
|
||||
*/
|
||||
class FakeApiTest extends \PHPUnit_Framework_TestCase
|
||||
class FakeApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Api;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Api\FakeClassnameTags123Api;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Api\FakeClassnameTags123Api;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\FakeClassnameTags123Api
|
||||
*/
|
||||
class FakeClassnameTags123ApiTest extends \PHPUnit_Framework_TestCase
|
||||
class FakeClassnameTags123ApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Api;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Api\PetApi;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Api\PetApi;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\PetApi
|
||||
*/
|
||||
class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
class PetApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Api;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Api\StoreApi;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Api\StoreApi;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\StoreApi
|
||||
*/
|
||||
class StoreApiTest extends \PHPUnit_Framework_TestCase
|
||||
class StoreApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Api;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Api\UserApi;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Api\UserApi;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\UserApi
|
||||
*/
|
||||
class UserApiTest extends \PHPUnit_Framework_TestCase
|
||||
class UserApiTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\AdditionalPropertiesClass;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\AdditionalPropertiesClass;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\AdditionalPropertiesClass
|
||||
*/
|
||||
class AdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase
|
||||
class AdditionalPropertiesClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\AnimalFarm;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\AnimalFarm;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\AnimalFarm
|
||||
*/
|
||||
class AnimalFarmTest extends \PHPUnit_Framework_TestCase
|
||||
class AnimalFarmTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Animal;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Animal;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Animal
|
||||
*/
|
||||
class AnimalTest extends \PHPUnit_Framework_TestCase
|
||||
class AnimalTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ApiResponse;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\ApiResponse;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ApiResponse
|
||||
*/
|
||||
class ApiResponseTest extends \PHPUnit_Framework_TestCase
|
||||
class ApiResponseTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ArrayOfArrayOfNumberOnly;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\ArrayOfArrayOfNumberOnly;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ArrayOfArrayOfNumberOnly
|
||||
*/
|
||||
class ArrayOfArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayOfArrayOfNumberOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ArrayOfNumberOnly;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\ArrayOfNumberOnly;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ArrayOfNumberOnly
|
||||
*/
|
||||
class ArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayOfNumberOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ArrayTest;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\ArrayTest;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ArrayTest
|
||||
*/
|
||||
class ArrayTestTest extends \PHPUnit_Framework_TestCase
|
||||
class ArrayTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Capitalization;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Capitalization;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Capitalization
|
||||
*/
|
||||
class CapitalizationTest extends \PHPUnit_Framework_TestCase
|
||||
class CapitalizationTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Cat;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Cat;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Cat
|
||||
*/
|
||||
class CatTest extends \PHPUnit_Framework_TestCase
|
||||
class CatTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Category;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Category;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Category
|
||||
*/
|
||||
class CategoryTest extends \PHPUnit_Framework_TestCase
|
||||
class CategoryTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ClassModel;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\ClassModel;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ClassModel
|
||||
*/
|
||||
class ClassModelTest extends \PHPUnit_Framework_TestCase
|
||||
class ClassModelTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Client;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Client;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Client
|
||||
*/
|
||||
class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
class ClientTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Dog;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Dog;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Dog
|
||||
*/
|
||||
class DogTest extends \PHPUnit_Framework_TestCase
|
||||
class DogTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\EnumArrays;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\EnumArrays;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\EnumArrays
|
||||
*/
|
||||
class EnumArraysTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumArraysTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\EnumClass;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\EnumClass;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\EnumClass
|
||||
*/
|
||||
class EnumClassTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\EnumTest;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\EnumTest;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\EnumTest
|
||||
*/
|
||||
class EnumTestTest extends \PHPUnit_Framework_TestCase
|
||||
class EnumTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\FileSchemaTestClass;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\FileSchemaTestClass;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\FileSchemaTestClass
|
||||
*/
|
||||
class FileSchemaTestClassTest extends \PHPUnit_Framework_TestCase
|
||||
class FileSchemaTestClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\File;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\File;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\File
|
||||
*/
|
||||
class FileTest extends \PHPUnit_Framework_TestCase
|
||||
class FileTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\FormatTest;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\FormatTest;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\FormatTest
|
||||
*/
|
||||
class FormatTestTest extends \PHPUnit_Framework_TestCase
|
||||
class FormatTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\HasOnlyReadOnly;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\HasOnlyReadOnly;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\HasOnlyReadOnly
|
||||
*/
|
||||
class HasOnlyReadOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class HasOnlyReadOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\MapTest;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\MapTest;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\MapTest
|
||||
*/
|
||||
class MapTestTest extends \PHPUnit_Framework_TestCase
|
||||
class MapTestTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\MixedPropertiesAndAdditionalPropertiesClass;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\MixedPropertiesAndAdditionalPropertiesClass;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\MixedPropertiesAndAdditionalPropertiesClass
|
||||
*/
|
||||
class MixedPropertiesAndAdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase
|
||||
class MixedPropertiesAndAdditionalPropertiesClassTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Model200Response;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Model200Response;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Model200Response
|
||||
*/
|
||||
class Model200ResponseTest extends \PHPUnit_Framework_TestCase
|
||||
class Model200ResponseTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ModelList;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\ModelList;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ModelList
|
||||
*/
|
||||
class ModelListTest extends \PHPUnit_Framework_TestCase
|
||||
class ModelListTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ModelReturn;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\ModelReturn;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ModelReturn
|
||||
*/
|
||||
class ModelReturnTest extends \PHPUnit_Framework_TestCase
|
||||
class ModelReturnTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Name;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Name;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Name
|
||||
*/
|
||||
class NameTest extends \PHPUnit_Framework_TestCase
|
||||
class NameTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\NumberOnly;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\NumberOnly;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\NumberOnly
|
||||
*/
|
||||
class NumberOnlyTest extends \PHPUnit_Framework_TestCase
|
||||
class NumberOnlyTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Order;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Order;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Order
|
||||
*/
|
||||
class OrderTest extends \PHPUnit_Framework_TestCase
|
||||
class OrderTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\OuterComposite;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\OuterComposite;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\OuterComposite
|
||||
*/
|
||||
class OuterCompositeTest extends \PHPUnit_Framework_TestCase
|
||||
class OuterCompositeTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\OuterEnum;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\OuterEnum;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\OuterEnum
|
||||
*/
|
||||
class OuterEnumTest extends \PHPUnit_Framework_TestCase
|
||||
class OuterEnumTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Pet;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Pet;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Pet
|
||||
*/
|
||||
class PetTest extends \PHPUnit_Framework_TestCase
|
||||
class PetTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\ReadOnlyFirst;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\ReadOnlyFirst;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\ReadOnlyFirst
|
||||
*/
|
||||
class ReadOnlyFirstTest extends \PHPUnit_Framework_TestCase
|
||||
class ReadOnlyFirstTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\SpecialModelName;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\SpecialModelName;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\SpecialModelName
|
||||
*/
|
||||
class SpecialModelNameTest extends \PHPUnit_Framework_TestCase
|
||||
class SpecialModelNameTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\StringBooleanMap;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\StringBooleanMap;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\StringBooleanMap
|
||||
*/
|
||||
class StringBooleanMapTest extends \PHPUnit_Framework_TestCase
|
||||
class StringBooleanMapTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\Tag;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\Tag;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\Tag
|
||||
*/
|
||||
class TagTest extends \PHPUnit_Framework_TestCase
|
||||
class TagTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
namespace OpenAPIServer\Model;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use OpenAPIServer\Model\User;
|
||||
|
||||
/**
|
||||
@@ -36,7 +37,7 @@ use OpenAPIServer\Model\User;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\User
|
||||
*/
|
||||
class UserTest extends \PHPUnit_Framework_TestCase
|
||||
class UserTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user