File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed
modules/swagger-codegen/src/main/resources/php Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ composer install
5959./vendor/bin/phpunit
6060```
6161
62+ **Note:** Running tests requires PHP 7.2 or later, while the runtime library supports PHP 5.5 and later.
63+
6264## Getting Started
6365
6466Please follow the [installation procedure](#installation--usage) and then run the following:
Original file line number Diff line number Diff line change @@ -30,34 +30,34 @@ use \{{invokerPackage}}\ObjectSerializer;
3030 * @author Swagger Codegen team
3131 * @link https://github.com/swagger-api/swagger-codegen
3232 */
33- { {#operations} }class { {classname} }Test extends \PHPUnit_Framework_TestCase
33+ { {#operations} }class { {classname} }Test extends \PHPUnit\Framework\TestCase
3434{
3535
3636 /**
3737 * Setup before running any test cases
3838 */
39- public static function setUpBeforeClass()
39+ public static function setUpBeforeClass(): void
4040 {
4141 }
4242
4343 /**
4444 * Setup before running each test case
4545 */
46- public function setUp()
46+ public function setUp(): void
4747 {
4848 }
4949
5050 /**
5151 * Clean up after running each test case
5252 */
53- public function tearDown()
53+ public function tearDown(): void
5454 {
5555 }
5656
5757 /**
5858 * Clean up after running all test cases
5959 */
60- public static function tearDownAfterClass()
60+ public static function tearDownAfterClass(): void
6161 {
6262 }
6363 { {#operation} }
Original file line number Diff line number Diff line change 2626 " guzzlehttp/guzzle" : " ^6.2"
2727 } ,
2828 "require-dev": {
29- " phpunit/phpunit" : " ^4.8 " ,
29+ " phpunit/phpunit" : " ^8.5.52 " ,
3030 " squizlabs/php_codesniffer" : " ~2.6" ,
3131 " friendsofphp/php-cs-fixer" : " ~2.12"
3232 } ,
Original file line number Diff line number Diff line change @@ -30,34 +30,34 @@ namespace {{invokerPackage}};
3030 * @author Swagger Codegen team
3131 * @link https://github.com/swagger-api/swagger-codegen
3232 */
33- class { {classname} }Test extends \PHPUnit_Framework_TestCase
33+ class { {classname} }Test extends \PHPUnit\Framework\TestCase
3434{
3535
3636 /**
3737 * Setup before running any test case
3838 */
39- public static function setUpBeforeClass()
39+ public static function setUpBeforeClass(): void
4040 {
4141 }
4242
4343 /**
4444 * Setup before running each test case
4545 */
46- public function setUp()
46+ public function setUp(): void
4747 {
4848 }
4949
5050 /**
5151 * Clean up after running each test case
5252 */
53- public function tearDown()
53+ public function tearDown(): void
5454 {
5555 }
5656
5757 /**
5858 * Clean up after running all test cases
5959 */
60- public static function tearDownAfterClass()
60+ public static function tearDownAfterClass(): void
6161 {
6262 }
6363
You can’t perform that action at this time.
0 commit comments