diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-04-24 10:45:00 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-04-25 17:56:06 +0200 |
commit | c74fa7955d9392aea954c2e45ed4137fb2bebcbe (patch) | |
tree | 034c93b4b3ccc31e6cc9c27dd87f139569c10c72 /tests/Unit/Exceptions/Handlers/WhoopsTest.php | |
parent | b74835a0968c35ad9a0955dd8b5e2f3cf9b72a56 (diff) |
phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
Diffstat (limited to 'tests/Unit/Exceptions/Handlers/WhoopsTest.php')
-rw-r--r-- | tests/Unit/Exceptions/Handlers/WhoopsTest.php | 16 |
1 files changed, 8 insertions, 8 deletions
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()) |