Skip to content

Commit b9aa307

Browse files
committed
chore: update phpunit/phpunit 8.5.52
1 parent 70cf625 commit b9aa307

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

modules/swagger-codegen/src/main/resources/php/README.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

6466
Please follow the [installation procedure](#installation--usage) and then run the following:

modules/swagger-codegen/src/main/resources/php/api_test.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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}}

modules/swagger-codegen/src/main/resources/php/composer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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
},

modules/swagger-codegen/src/main/resources/php/model_test.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)