update samples

This commit is contained in:
William Cheng 2018-10-26 23:27:06 +08:00
parent 71ecee02e9
commit ceffdde2c0
18 changed files with 21 additions and 21 deletions

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.4.0-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.4.0-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.4.0-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -17,7 +17,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -17,7 +17,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -18,7 +18,7 @@
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.4.0-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*/
/**

View File

@ -1 +1 @@
3.4.0-SNAPSHOT
4.0.0-SNAPSHOT

View File

@ -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.

View File

@ -20,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>