Skip to content

Commit

Permalink
Use phpunit version with php 7.4 supporting (see sebastianbergmann/ph…
Browse files Browse the repository at this point in the history
…punit#3728).

Remove deprecated testing methods calls.
  • Loading branch information
samizdam committed Mar 13, 2020
1 parent d7d3dff commit 3dbbd8b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"phpunit/phpunit" : "^7.0",
"phpunit/phpunit" : "^8.2",
"squizlabs/php_codesniffer": "^3.3",
"phpstan/phpstan": "^0.10.3",
"phpstan/phpstan-phpunit": "^0.10.0"
Expand Down
3 changes: 3 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<php>
<ini name="error_reporting" value="E_ALL"/>
</php>
<testsuites>
<testsuite name="League Test Suite">
<directory>tests</directory>
Expand Down
6 changes: 3 additions & 3 deletions tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testRouteSetsAndResolvesInvokableClassCallable(): void
{
$callable = new Controller;
$route = new Route('GET', '/', $callable);
$this->assertInternalType('callable', $route->getCallable());
$this->assertIsCallable($route->getCallable());
}

/**
Expand All @@ -32,7 +32,7 @@ public function testRouteSetsAndResolvesClassMethodCallable(): void
{
$callable = [new Controller, 'action'];
$route = new Route('GET', '/', $callable);
$this->assertInternalType('callable', $route->getCallable());
$this->assertIsCallable($route->getCallable());
}

/**
Expand All @@ -44,7 +44,7 @@ public function testRouteSetsAndResolvesNamedFunctionCallable(): void
{
$callable = 'League\Route\Fixture\namedFunctionCallable';
$route = new Route('GET', '/', $callable);
$this->assertInternalType('callable', $route->getCallable());
$this->assertIsCallable($route->getCallable());
}

/**
Expand Down

0 comments on commit 3dbbd8b

Please sign in to comment.