summaryrefslogtreecommitdiff
path: root/tests/Unit/HelpersTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 10:45:00 +0200
committermsquare <msquare@notrademark.de>2019-04-25 17:56:06 +0200
commitc74fa7955d9392aea954c2e45ed4137fb2bebcbe (patch)
tree034c93b4b3ccc31e6cc9c27dd87f139569c10c72 /tests/Unit/HelpersTest.php
parentb74835a0968c35ad9a0955dd8b5e2f3cf9b72a56 (diff)
phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
Diffstat (limited to 'tests/Unit/HelpersTest.php')
-rw-r--r--tests/Unit/HelpersTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Unit/HelpersTest.php b/tests/Unit/HelpersTest.php
index e0184b86..210e995e 100644
--- a/tests/Unit/HelpersTest.php
+++ b/tests/Unit/HelpersTest.php
@@ -11,8 +11,8 @@ use Engelsystem\Http\Request;
use Engelsystem\Http\Response;
use Engelsystem\Http\UrlGeneratorInterface;
use Engelsystem\Renderer\Renderer;
+use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
-use PHPUnit_Framework_MockObject_MockObject as MockObject;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface as StorageInterface;
@@ -59,7 +59,7 @@ class HelpersTest extends TestCase
*/
public function testBasePath()
{
- /** @var MockObject|Application $app */
+ /** @var Application|MockObject $app */
$app = $this->getMockBuilder(Container::class)
->getMock();
Application::setInstance($app);
@@ -103,7 +103,7 @@ class HelpersTest extends TestCase
*/
public function testConfigPath()
{
- /** @var MockObject|Application $app */
+ /** @var Application|MockObject $app */
$app = $this->getMockBuilder(Container::class)
->getMock();
Application::setInstance($app);
@@ -155,7 +155,7 @@ class HelpersTest extends TestCase
*/
public function testResponse()
{
- /** @var MockObject|Response $response */
+ /** @var Response|MockObject $response */
$response = $this->getMockBuilder(Response::class)->getMock();
$this->getAppMock('psr7.response', $response);