From c74fa7955d9392aea954c2e45ed4137fb2bebcbe Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Apr 2019 10:45:00 +0200 Subject: phpunit: Upgrade to version 8, fixed tests, formatting Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated --- tests/Unit/Exceptions/Handlers/WhoopsTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/Unit/Exceptions/Handlers/WhoopsTest.php') diff --git a/tests/Unit/Exceptions/Handlers/WhoopsTest.php b/tests/Unit/Exceptions/Handlers/WhoopsTest.php index 4949c45a..74bdc457 100644 --- a/tests/Unit/Exceptions/Handlers/WhoopsTest.php +++ b/tests/Unit/Exceptions/Handlers/WhoopsTest.php @@ -8,8 +8,8 @@ use Engelsystem\Exceptions\Handlers\Whoops; use Engelsystem\Helpers\Authenticator; use Engelsystem\Http\Request; use Exception; +use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; -use PHPUnit_Framework_MockObject_MockObject as Mock; use Whoops\Handler\JsonResponseHandler; use Whoops\Handler\PrettyPageHandler; use Whoops\Run as WhoopsRunner; @@ -22,19 +22,19 @@ class WhoopsTest extends TestCase */ public function testRender() { - /** @var Application|Mock $app */ + /** @var Application|MockObject $app */ $app = $this->createMock(Application::class); - /** @var Authenticator|Mock $auth */ + /** @var Authenticator|MockObject $auth */ $auth = $this->createMock(Authenticator::class); - /** @var Request|Mock $request */ + /** @var Request|MockObject $request */ $request = $this->createMock(Request::class); - /** @var WhoopsRunnerInterface|Mock $whoopsRunner */ + /** @var WhoopsRunnerInterface|MockObject $whoopsRunner */ $whoopsRunner = $this->getMockForAbstractClass(WhoopsRunnerInterface::class); - /** @var PrettyPageHandler|Mock $prettyPageHandler */ + /** @var PrettyPageHandler|MockObject $prettyPageHandler */ $prettyPageHandler = $this->createMock(PrettyPageHandler::class); - /** @var JsonResponseHandler|Mock $jsonResponseHandler */ + /** @var JsonResponseHandler|MockObject $jsonResponseHandler */ $jsonResponseHandler = $this->createMock(JsonResponseHandler::class); - /** @var Exception|Mock $exception */ + /** @var Exception|MockObject $exception */ $exception = $this->createMock(Exception::class); $request->expects($this->once()) -- cgit v1.2.3-54-g00ecf