diff options
Diffstat (limited to 'tests/Unit/ApplicationTest.php')
-rw-r--r-- | tests/Unit/ApplicationTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
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 = []) { |