Skip to content
Snippets Groups Projects
Unverified Commit ca50c723 authored by Woody Gilk's avatar Woody Gilk Committed by GitHub
Browse files

Merge pull request #47 from codemasher/add-phpunit-10

Support PHPUnit 10
parents 5bbc4d7d 88f766ab
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.
Please register or to comment