[php-slim4] Set required PHP version to 7.2 (#6530)

* Bump required PHP version to 7.2

* Update rest dependencies to meet php 7.2

Latest phpunit 9 requires PHP 7.3, so I've set phpunit 8 as a fallback.

* Fix TestCase inheritance

* Add phpunit cache file to gitignore

* Put license @phpdoc into separate mustache

* Bump readme PHP version to 7.2

* Bump @phpdoc PHP version to 7.2

* Update Zend Diactoros with suggested package

* Refresh samples

* Remove broken tests

These tests will be fixed in next PR which moves Mock feature to
external repo.

* Point root Travis CI environment to PHP 7.3
This commit is contained in:
Yuriy Belenko 2020-06-14 17:40:06 +03:00 committed by GitHub
parent 90f904a669
commit e282a052bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
153 changed files with 983 additions and 1531 deletions

View File

@ -85,7 +85,7 @@ before_install:
#- sudo apt-get update
#- sudo apt-get install dart
# switch to php7
- phpenv global 7.1
- phpenv global 7.3
- php -v
# install perl module
#- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)

View File

@ -13,13 +13,13 @@ This server has been generated with [Nyholm PSR-7](https://github.com/Nyholm/psr
This server has been generated with [Guzzle PSR-7](https://github.com/guzzle/psr7) implementation and [Guzzle HTTP Factory](https://github.com/http-interop/http-factory-guzzle).
{{/isGuzzlePsr7}}
{{#isZendDiactoros}}
This server has been generated with [Zend Diactoros](https://github.com/zendframework/zend-diactoros).
This server has been generated with [Laminas (Zend) PSR-7 implementation](https://github.com/laminas/laminas-diactoros).
{{/isZendDiactoros}}
## Requirements
* Web server with URL rewriting
* PHP 7.1 or newer
* PHP 7.2 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.

View File

@ -1,36 +1,12 @@
<?php
/**
* SlimRouter
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{invokerPackage}};
use Slim\Factory\AppFactory;

View File

@ -1,36 +1,12 @@
<?php
/**
* {{abstractNamePrefix}}Authenticator{{abstractNameSuffix}}
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{authPackage}};
use Psr\Container\ContainerInterface;

View File

@ -1,31 +1,6 @@
<?php
/**
* {{classname}}
*
* PHP version 7.1
*
* @package {{apiPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.

View File

@ -1,37 +1,12 @@
<?php
{{#operations}}/**
* {{userClassname}}Test
*
* PHP version 7.1
*
* @package {{apiPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Please update the test case below to test the endpoint.
*/
*/{{#operations}}
namespace {{apiPackage}};
use PHPUnit\Framework\TestCase;
@ -52,28 +27,28 @@ class {{userClassname}}Test extends TestCase
/**
* Setup before running any test cases
*/
public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp()
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
public static function tearDownAfterClass(): void
{
}
{{#operation}}

View File

@ -8,27 +8,27 @@
}
],
"require": {
"php": "^7.1",
"slim/slim": "^4.0",
"php": "^7.2",
"slim/slim": "^4.5.0",
"dyorg/slim-token-authentication": "dev-slim4",
{{#isSlimPsr7}}
"slim/psr7": "^0.4.0"
"slim/psr7": "^1.1.0"
{{/isSlimPsr7}}
{{#isNyholmPsr7}}
"nyholm/psr7": "^1.1.0",
"nyholm/psr7-server": "^0.3.0"
"nyholm/psr7": "^1.3.0",
"nyholm/psr7-server": "^0.4.1"
{{/isNyholmPsr7}}
{{#isGuzzlePsr7}}
"guzzlehttp/psr7": "^1.6.1",
"http-interop/http-factory-guzzle": "^1.0.0"
{{/isGuzzlePsr7}}
{{#isZendDiactoros}}
"zendframework/zend-diactoros": "^2.1.3"
"laminas/laminas-diactoros": "^2.3.0"
{{/isZendDiactoros}}
},
"require-dev": {
"phpunit/phpunit": "^6.0 || ^7.0",
"overtrue/phplint": "^1.0",
"phpunit/phpunit": "^8.0 || ^9.0",
"overtrue/phplint": "^2.0.2",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
@ -46,8 +46,6 @@
],
"test-apis": "phpunit --testsuite Apis",
"test-models": "phpunit --testsuite Models",
"test-mock": "phpunit --testsuite Mock",
"test-utils": "phpunit --testsuite Utils",
"phpcs": "phpcs",
"phplint": "phplint ./ --exclude=vendor"
}

View File

@ -12,6 +12,7 @@ composer.lock
# Do not commit local PHPUnit config
/phpunit.xml
/.phpunit.result.cache
# Do not commit local PHP_CodeSniffer config
/phpcs.xml

View File

@ -1,15 +1,11 @@
<?php
{{#apiInfo}}/**
* {{appName}}
*
* PHP version 7.1
*
* @package {{apiPackage}}
* @author OpenAPI Generator team
* @version {{appVersion}}
* @link https://github.com/openapitools/openapi-generator
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
*/{{#apiInfo}}
require_once __DIR__ . '/vendor/autoload.php';

View File

@ -1,36 +1,12 @@
<?php
/**
* JsonBodyParserMiddleware
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{invokerPackage}}\Middleware;
use Psr\Http\Message\ResponseInterface;

View File

@ -0,0 +1,23 @@
/**
{{#appName}}
* {{{appName}}}
{{/appName}}
* PHP version 7.2
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View File

@ -1,19 +1,11 @@
<?php
{{#models}}{{#model}}/**
* {{classname}}
*
* PHP version 7.1
*
* @package {{modelPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
*/
*/{{#models}}{{#model}}
namespace {{modelPackage}};
use {{interfacesPackage}}\{{interfaceNamePrefix}}Model{{interfaceNameSuffix}};

View File

@ -1,36 +1,12 @@
<?php
/**
* {{interfaceNamePrefix}}Model{{interfaceNameSuffix}}
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{interfacesPackage}};
/**

View File

@ -1,39 +1,13 @@
<?php
{{#models}}
{{#model}}
/**
* {{classname}}Test
*
* PHP version 7.1
*
* @package {{modelPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Please update the test case below to test the model.
*/
*/{{#models}}
{{#model}}
namespace {{modelPackage}};
use PHPUnit\Framework\TestCase;
@ -54,28 +28,28 @@ class {{classname}}Test extends TestCase
/**
* Setup before running any test cases
*/
public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp()
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
public static function tearDownAfterClass(): void
{
}

View File

@ -1,36 +1,12 @@
<?php
/**
* {{traitNamePrefix}}ModelUtils{{traitNameSuffix}}
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{utilsPackage}};
use {{utilsPackage}}\{{traitNamePrefix}}StringUtils{{traitNameSuffix}};

View File

@ -1,36 +1,12 @@
<?php
/**
* {{traitNamePrefix}}ModelUtils{{traitNameSuffix}}Test
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{utilsPackage}};
use {{utilsPackage}}\{{traitNamePrefix}}ModelUtils{{traitNameSuffix}} as ModelUtils;

View File

@ -1,36 +1,12 @@
<?php
/**
* OpenApiDataMocker
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{mockPackage}};
use {{mockPackage}}\{{interfaceNamePrefix}}OpenApiDataMocker{{interfaceNameSuffix}} as IMocker;

View File

@ -1,37 +1,12 @@
<?php
/**
* {{interfaceNamePrefix}}OpenApiDataMocker{{interfaceNameSuffix}}
* @ref https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#data-types
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{mockPackage}};
use InvalidArgumentException;

View File

@ -1,36 +1,12 @@
<?php
/**
* OpenApiDataMockerMiddleware
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{mockPackage}};
use Slim\Factory\AppFactory;

View File

@ -1,36 +1,12 @@
<?php
/**
* OpenApiDataMockerMiddlewareTest
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#invokerPackage}}
* {{{invokerPackage}}}
*
{{/invokerPackage}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{mockPackage}};
use {{mockPackage}}\OpenApiDataMockerMiddleware;

View File

@ -1,36 +1,12 @@
<?php
/**
* OpenApiDataMockerTest
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{mockPackage}};
use {{mockPackage}}\OpenApiDataMocker;

View File

@ -17,19 +17,11 @@
<testsuite name="Models">
<directory>{{modelTestPath}}</directory>
</testsuite>
<testsuite name="Mock">
<directory>{{mockTestPath}}</directory>
</testsuite>
<testsuite name="Utils">
<directory>{{utilsTestPath}}</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">{{apiSrcPath}}</directory>
<directory suffix=".php">{{modelSrcPath}}</directory>
<directory suffix=".php">{{mockSrcPath}}</directory>
<directory suffix=".php">{{utilsSrcPath}}</directory>
</whitelist>
</filter>
<php>

View File

@ -1,36 +1,12 @@
<?php
/**
* {{traitNamePrefix}}StringUtils{{traitNameSuffix}}
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{utilsPackage}};
/**

View File

@ -1,36 +1,12 @@
<?php
/**
* {{traitNamePrefix}}StringUtils{{traitNameSuffix}}Test
*
* PHP version 7.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**{{#apiInfo}}{{#appName}}
* {{{appName}}}
*
{{/appName}}
{{#appDescription}}
* {{{appDescription}}}
{{/appDescription}}
{{#version}}
* The version of the OpenAPI document: {{{version}}}
{{/version}}
{{#infoEmail}}
* Contact: {{{infoEmail}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
{{>licenseInfo}}
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
*/{{#apiInfo}}
namespace {{utilsPackage}};
use {{utilsPackage}}\{{traitNamePrefix}}StringUtils{{traitNameSuffix}} as StringUtils;

View File

@ -12,6 +12,7 @@ composer.lock
# Do not commit local PHPUnit config
/phpunit.xml
/.phpunit.result.cache
# Do not commit local PHP_CodeSniffer config
/phpcs.xml

View File

@ -81,61 +81,7 @@ lib/Utils/ModelUtilsTrait.php
lib/Utils/StringUtilsTrait.php
phpcs.xml.dist
phpunit.xml.dist
test/Api/AnotherFakeApiTest.php
test/Api/FakeApiTest.php
test/Api/FakeClassnameTags123ApiTest.php
test/Api/PetApiTest.php
test/Api/StoreApiTest.php
test/Api/UserApiTest.php
test/Mock/OpenApiDataMockerMiddlewareTest.php
test/Mock/OpenApiDataMockerTest.php
test/Model/AdditionalPropertiesAnyTypeTest.php
test/Model/AdditionalPropertiesArrayTest.php
test/Model/AdditionalPropertiesBooleanTest.php
test/Model/AdditionalPropertiesClassTest.php
test/Model/AdditionalPropertiesIntegerTest.php
test/Model/AdditionalPropertiesNumberTest.php
test/Model/AdditionalPropertiesObjectTest.php
test/Model/AdditionalPropertiesStringTest.php
test/Model/AnimalTest.php
test/Model/ApiResponseTest.php
test/Model/ArrayOfArrayOfNumberOnlyTest.php
test/Model/ArrayOfNumberOnlyTest.php
test/Model/ArrayTestTest.php
test/Model/BigCatAllOfTest.php
test/Model/BigCatTest.php
test/Model/CapitalizationTest.php
test/Model/CatAllOfTest.php
test/Model/CatTest.php
test/Model/CategoryTest.php
test/Model/ClassModelTest.php
test/Model/ClientTest.php
test/Model/DogAllOfTest.php
test/Model/DogTest.php
test/Model/EnumArraysTest.php
test/Model/EnumClassTest.php
test/Model/EnumTestTest.php
test/Model/FileSchemaTestClassTest.php
test/Model/FileTest.php
test/Model/FormatTestTest.php
test/Model/HasOnlyReadOnlyTest.php
test/Model/MapTestTest.php
test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php
test/Model/Model200ResponseTest.php
test/Model/ModelListTest.php
test/Model/ModelReturnTest.php
test/Model/NameTest.php
test/Model/NumberOnlyTest.php
test/Model/OrderTest.php
test/Model/OuterCompositeTest.php
test/Model/OuterEnumTest.php
test/Model/PetTest.php
test/Model/ReadOnlyFirstTest.php
test/Model/SpecialModelNameTest.php
test/Model/TagTest.php
test/Model/TypeHolderDefaultTest.php
test/Model/TypeHolderExampleTest.php
test/Model/UserTest.php
test/Model/XmlItemTest.php
test/Utils/ModelUtilsTraitTest.php
test/Utils/StringUtilsTraitTest.php

View File

@ -8,7 +8,7 @@ This server has been generated with [Slim PSR-7](https://github.com/slimphp/Slim
## Requirements
* Web server with URL rewriting
* PHP 7.1 or newer
* PHP 7.2 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.

View File

@ -8,14 +8,14 @@
}
],
"require": {
"php": "^7.1",
"slim/slim": "^4.0",
"php": "^7.2",
"slim/slim": "^4.5.0",
"dyorg/slim-token-authentication": "dev-slim4",
"slim/psr7": "^0.4.0"
"slim/psr7": "^1.1.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0 || ^7.0",
"overtrue/phplint": "^1.0",
"phpunit/phpunit": "^8.0 || ^9.0",
"overtrue/phplint": "^2.0.2",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
@ -33,8 +33,6 @@
],
"test-apis": "phpunit --testsuite Apis",
"test-models": "phpunit --testsuite Models",
"test-mock": "phpunit --testsuite Mock",
"test-utils": "phpunit --testsuite Utils",
"phpcs": "phpcs",
"phplint": "phplint ./ --exclude=vendor"
}

View File

@ -2,15 +2,24 @@
/**
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @version 1.0.0
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
*/
require_once __DIR__ . '/vendor/autoload.php';
use OpenAPIServer\SlimRouter;

View File

@ -1,18 +1,15 @@
<?php
/**
* AbstractAnotherFakeApi
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,18 +1,15 @@
<?php
/**
* AbstractFakeApi
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,18 +1,15 @@
<?php
/**
* AbstractFakeClassnameTags123Api
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,18 +1,15 @@
<?php
/**
* AbstractPetApi
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,18 +1,15 @@
<?php
/**
* AbstractStoreApi
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,18 +1,15 @@
<?php
/**
* AbstractUserApi
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,9 +1,8 @@
<?php
/**
* AbstractAuthenticator
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -11,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,9 +1,8 @@
<?php
/**
* ModelInterface
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -11,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,9 +1,8 @@
<?php
/**
* JsonBodyParserMiddleware
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -11,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,9 +1,8 @@
<?php
/**
* OpenApiDataMocker
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -11,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,10 +1,8 @@
<?php
/**
* OpenApiDataMockerInterface
* @ref https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#data-types
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -12,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,9 +1,8 @@
<?php
/**
* OpenApiDataMockerMiddleware
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -11,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,15 +1,20 @@
<?php
/**
* AdditionalPropertiesAnyType
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* AdditionalPropertiesArray
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* AdditionalPropertiesBoolean
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* AdditionalPropertiesClass
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* AdditionalPropertiesInteger
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* AdditionalPropertiesNumber
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* AdditionalPropertiesObject
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* AdditionalPropertiesString
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Animal
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* ApiResponse
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* ArrayOfArrayOfNumberOnly
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* ArrayOfNumberOnly
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* ArrayTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* BigCat
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* BigCatAllOf
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Capitalization
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Cat
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* CatAllOf
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Category
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* ClassModel
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Client
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Dog
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* DogAllOf
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* EnumArrays
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* EnumClass
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* EnumTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* File
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* FileSchemaTestClass
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* FormatTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* HasOnlyReadOnly
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,63 +0,0 @@
<?php
/**
* InlineObject
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
*/
namespace OpenAPIServer\Model;
use OpenAPIServer\Interfaces\ModelInterface;
/**
* InlineObject
*
* @package OpenAPIServer\Model
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
class InlineObject implements ModelInterface
{
private const MODEL_SCHEMA = <<<'SCHEMA'
{
"type" : "object",
"properties" : {
"name" : {
"type" : "string",
"description" : "Updated name of the pet"
},
"status" : {
"type" : "string",
"description" : "Updated status of the pet"
}
}
}
SCHEMA;
/** @var string $name Updated name of the pet*/
private $name;
/** @var string $status Updated status of the pet*/
private $status;
/**
* Returns model schema.
*
* @param bool $assoc When TRUE, returned objects will be converted into associative arrays. Default FALSE.
*
* @return array
*/
public static function getOpenApiSchema($assoc = false)
{
return json_decode(static::MODEL_SCHEMA, $assoc);
}
}

View File

@ -1,64 +0,0 @@
<?php
/**
* InlineObject1
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
*/
namespace OpenAPIServer\Model;
use OpenAPIServer\Interfaces\ModelInterface;
/**
* InlineObject1
*
* @package OpenAPIServer\Model
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
class InlineObject1 implements ModelInterface
{
private const MODEL_SCHEMA = <<<'SCHEMA'
{
"type" : "object",
"properties" : {
"additionalMetadata" : {
"type" : "string",
"description" : "Additional data to pass to server"
},
"file" : {
"type" : "string",
"description" : "file to upload",
"format" : "binary"
}
}
}
SCHEMA;
/** @var string $additionalMetadata Additional data to pass to server*/
private $additionalMetadata;
/** @var \SplFileObject $file file to upload*/
private $file;
/**
* Returns model schema.
*
* @param bool $assoc When TRUE, returned objects will be converted into associative arrays. Default FALSE.
*
* @return array
*/
public static function getOpenApiSchema($assoc = false)
{
return json_decode(static::MODEL_SCHEMA, $assoc);
}
}

View File

@ -1,15 +1,20 @@
<?php
/**
* MapTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* MixedPropertiesAndAdditionalPropertiesClass
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Model200Response
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* ModelList
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* ModelReturn
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Name
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* NumberOnly
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Order
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* OuterComposite
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* OuterEnum
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Pet
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* ReadOnlyFirst
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* SpecialModelName
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* Tag
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* TypeHolderDefault
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* TypeHolderExample
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* User
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,15 +1,20 @@
<?php
/**
* XmlItem
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Model
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator

View File

@ -1,9 +1,8 @@
<?php
/**
* SlimRouter
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -11,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@ -62,7 +59,7 @@ class SlimRouter
'userClassname' => 'AnotherFakeApi',
'operationId' => 'call123TestSpecialTags',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -89,7 +86,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'createXmlItem',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -110,7 +107,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'fakeOuterBooleanSerialize',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'Output boolean',
'jsonSchema' => '{
@ -137,7 +134,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'fakeOuterCompositeSerialize',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'Output composite',
'jsonSchema' => '{
@ -164,7 +161,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'fakeOuterNumberSerialize',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'Output number',
'jsonSchema' => '{
@ -191,7 +188,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'fakeOuterStringSerialize',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'Output string',
'jsonSchema' => '{
@ -218,7 +215,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'testBodyWithFileSchema',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'Success',
'jsonSchema' => '{
@ -239,7 +236,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'testBodyWithQueryParams',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'Success',
'jsonSchema' => '{
@ -260,7 +257,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'testClientModel',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -374,7 +371,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'testInlineAdditionalProperties',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -395,7 +392,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'testJsonFormData',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -416,7 +413,7 @@ class SlimRouter
'userClassname' => 'FakeApi',
'operationId' => 'testQueryParameterCollectionFormat',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'Success',
'jsonSchema' => '{
@ -437,7 +434,7 @@ class SlimRouter
'userClassname' => 'FakeClassnameTags123Api',
'operationId' => 'testClassname',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -476,7 +473,7 @@ class SlimRouter
'userClassname' => 'PetApi',
'operationId' => 'addPet',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -517,7 +514,7 @@ class SlimRouter
'userClassname' => 'PetApi',
'operationId' => 'findPetsByStatus',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -575,7 +572,7 @@ class SlimRouter
'userClassname' => 'PetApi',
'operationId' => 'findPetsByTags',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -635,7 +632,7 @@ class SlimRouter
'userClassname' => 'PetApi',
'operationId' => 'updatePet',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -692,7 +689,7 @@ class SlimRouter
'userClassname' => 'PetApi',
'operationId' => 'deletePet',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -733,7 +730,7 @@ class SlimRouter
'userClassname' => 'PetApi',
'operationId' => 'getPetById',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -826,7 +823,7 @@ class SlimRouter
'userClassname' => 'PetApi',
'operationId' => 'uploadFile',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -865,7 +862,7 @@ class SlimRouter
'userClassname' => 'PetApi',
'operationId' => 'uploadFileWithRequiredFile',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -904,7 +901,7 @@ class SlimRouter
'userClassname' => 'StoreApi',
'operationId' => 'getInventory',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -947,7 +944,7 @@ class SlimRouter
'userClassname' => 'StoreApi',
'operationId' => 'placeOrder',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -1016,7 +1013,7 @@ class SlimRouter
'userClassname' => 'StoreApi',
'operationId' => 'getOrderById',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -1127,7 +1124,7 @@ class SlimRouter
'userClassname' => 'UserApi',
'operationId' => 'loginUser',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{
@ -1233,7 +1230,7 @@ class SlimRouter
'userClassname' => 'UserApi',
'operationId' => 'getUserByName',
'responses' => [
'default' => [
'200' => [
'code' => 200,
'message' => 'successful operation',
'jsonSchema' => '{

View File

@ -1,9 +1,8 @@
<?php
/**
* ModelUtilsTrait
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -11,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -1,9 +1,8 @@
<?php
/**
* StringUtilsTrait
*
* PHP version 7.1
* OpenAPI Petstore
* PHP version 7.2
*
* @package OpenAPIServer
* @author OpenAPI Generator team
@ -11,8 +10,6 @@
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git

View File

@ -17,19 +17,11 @@
<testsuite name="Models">
<directory>./test/Model</directory>
</testsuite>
<testsuite name="Mock">
<directory>./test/Mock</directory>
</testsuite>
<testsuite name="Utils">
<directory>./test/Utils</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./lib/Api</directory>
<directory suffix=".php">./lib/Model</directory>
<directory suffix=".php">./lib/Mock</directory>
<directory suffix=".php">./lib/Utils</directory>
</whitelist>
</filter>
<php>

View File

@ -1,18 +1,15 @@
<?php
/**
* AnotherFakeApiTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@ -43,28 +40,28 @@ class AnotherFakeApiTest extends TestCase
/**
* Setup before running any test cases
*/
public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp()
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
public static function tearDownAfterClass(): void
{
}

View File

@ -1,18 +1,15 @@
<?php
/**
* FakeApiTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@ -43,28 +40,28 @@ class FakeApiTest extends TestCase
/**
* Setup before running any test cases
*/
public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp()
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
public static function tearDownAfterClass(): void
{
}

View File

@ -1,18 +1,15 @@
<?php
/**
* FakeClassnameTags123ApiTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@ -43,28 +40,28 @@ class FakeClassnameTags123ApiTest extends TestCase
/**
* Setup before running any test cases
*/
public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp()
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
public static function tearDownAfterClass(): void
{
}

View File

@ -1,18 +1,15 @@
<?php
/**
* PetApiTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@ -43,28 +40,28 @@ class PetApiTest extends TestCase
/**
* Setup before running any test cases
*/
public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp()
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
public static function tearDownAfterClass(): void
{
}

View File

@ -1,18 +1,15 @@
<?php
/**
* StoreApiTest
* OpenAPI Petstore
* PHP version 7.2
*
* PHP version 7.1
*
* @package OpenAPIServer\Api
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI 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: \" \\
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
@ -43,28 +40,28 @@ class StoreApiTest extends TestCase
/**
* Setup before running any test cases
*/
public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp()
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
public static function tearDownAfterClass(): void
{
}

Some files were not shown because too many files have changed in this diff Show More