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/ApplicationTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/Unit/ApplicationTest.php') diff --git a/tests/Unit/ApplicationTest.php b/tests/Unit/ApplicationTest.php index 3fffe5ea..a57488d0 100644 --- a/tests/Unit/ApplicationTest.php +++ b/tests/Unit/ApplicationTest.php @@ -6,8 +6,8 @@ use Engelsystem\Application; use Engelsystem\Config\Config; use Engelsystem\Container\Container; use Engelsystem\Container\ServiceProvider; +use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; -use PHPUnit_Framework_MockObject_MockObject; use Psr\Container\ContainerInterface; use Psr\Http\Server\MiddlewareInterface; use ReflectionClass; @@ -130,7 +130,7 @@ class ApplicationTest extends TestCase */ public function testBootstrap() { - /** @var PHPUnit_Framework_MockObject_MockObject|Application $app */ + /** @var Application|MockObject $app */ $app = $this->getMockBuilder(Application::class) ->setMethods(['register']) ->getMock(); @@ -143,6 +143,7 @@ class ApplicationTest extends TestCase ->method('register') ->with($serviceProvider); + /** @var Config|MockObject $config */ $config = $this->getMockBuilder(Config::class) ->getMock(); @@ -168,7 +169,7 @@ class ApplicationTest extends TestCase /** * @param Application $app * @param array $methods - * @return PHPUnit_Framework_MockObject_MockObject|ServiceProvider + * @return ServiceProvider|MockObject */ protected function mockServiceProvider(Application $app, $methods = []) { -- cgit v1.2.3-70-g09d2