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 @@ ...@@ -18,7 +18,7 @@
"require": { "require": {
"php": "^7.1 || ^8.0", "php": "^7.1 || ^8.0",
"psr/http-factory": "^1.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": { "autoload": {
"psr-4": { "psr-4": {
......
...@@ -38,7 +38,7 @@ abstract class RequestFactoryTestCase extends TestCase ...@@ -38,7 +38,7 @@ abstract class RequestFactoryTestCase extends TestCase
$this->assertSame($uri, (string) $request->getUri()); $this->assertSame($uri, (string) $request->getUri());
} }
public function dataMethods() public static function dataMethods()
{ {
return [ return [
['GET'], ['GET'],
......
...@@ -29,7 +29,7 @@ abstract class ResponseFactoryTestCase extends TestCase ...@@ -29,7 +29,7 @@ abstract class ResponseFactoryTestCase extends TestCase
$this->assertSame($code, $response->getStatusCode()); $this->assertSame($code, $response->getStatusCode());
} }
public function dataCodes() public static function dataCodes()
{ {
return [ return [
[200], [200],
......
...@@ -38,7 +38,7 @@ abstract class ServerRequestFactoryTestCase extends TestCase ...@@ -38,7 +38,7 @@ abstract class ServerRequestFactoryTestCase extends TestCase
$this->assertSame($uri, (string) $request->getUri()); $this->assertSame($uri, (string) $request->getUri());
} }
public function dataMethods() public static function dataMethods()
{ {
return [ return [
['GET'], ['GET'],
...@@ -50,11 +50,11 @@ abstract class ServerRequestFactoryTestCase extends TestCase ...@@ -50,11 +50,11 @@ abstract class ServerRequestFactoryTestCase extends TestCase
]; ];
} }
public function dataServer() public static function dataServer()
{ {
$data = []; $data = [];
foreach ($this->dataMethods() as $methodData) { foreach (static::dataMethods() as $methodData) {
$data[] = [ $data[] = [
[ [
'REQUEST_METHOD' => $methodData[0], '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