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/LegacyDevelopmentTest.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/LegacyDevelopmentTest.php')
-rw-r--r-- | tests/Unit/Exceptions/Handlers/LegacyDevelopmentTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Exceptions/Handlers/LegacyDevelopmentTest.php b/tests/Unit/Exceptions/Handlers/LegacyDevelopmentTest.php index d5390c9e..bc4625e9 100644 --- a/tests/Unit/Exceptions/Handlers/LegacyDevelopmentTest.php +++ b/tests/Unit/Exceptions/Handlers/LegacyDevelopmentTest.php @@ -6,8 +6,8 @@ namespace Engelsystem\Test\Unit\Exceptions\handlers; use Engelsystem\Exceptions\Handlers\LegacyDevelopment; use Engelsystem\Http\Request; use ErrorException; +use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; -use PHPUnit_Framework_MockObject_MockObject as Mock; class LegacyDevelopmentTest extends TestCase { @@ -18,7 +18,7 @@ class LegacyDevelopmentTest extends TestCase public function testRender() { $handler = new LegacyDevelopment(); - /** @var Request|Mock $request */ + /** @var Request|MockObject $request */ $request = $this->createMock(Request::class); $exception = new ErrorException('Lorem Ipsum', 4242, 1, 'foo.php', 9999); |