Skip to content
Snippets Groups Projects
Unverified Commit 3d252d34 authored by smiley's avatar smiley Committed by Woody Gilk
Browse files

support PHPUnit 10

parent 5bbc4d7d
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@
"require": {
"php": "^7.1 || ^8.0",
"psr/http-factory": "^1.0",
"phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
"phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
},
"autoload": {
"psr-4": {
......
......@@ -38,7 +38,7 @@ abstract class RequestFactoryTestCase extends TestCase
$this->assertSame($uri, (string) $request->getUri());
}
public function dataMethods()
public static function dataMethods()
{
return [
['GET'],
......
......@@ -29,7 +29,7 @@ abstract class ResponseFactoryTestCase extends TestCase
$this->assertSame($code, $response->getStatusCode());
}
public function dataCodes()
public static function dataCodes()
{
return [
[200],
......
......@@ -38,7 +38,7 @@ abstract class ServerRequestFactoryTestCase extends TestCase
$this->assertSame($uri, (string) $request->getUri());
}
public function dataMethods()
public static function dataMethods()
{
return [
['GET'],
......@@ -50,11 +50,11 @@ abstract class ServerRequestFactoryTestCase extends TestCase
];
}
public function dataServer()
public static function dataServer()
{
$data = [];
foreach ($this->dataMethods() as $methodData) {
foreach (static::dataMethods() as $methodData) {
$data[] = [
[
'REQUEST_METHOD' => $methodData[0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment