summaryrefslogtreecommitdiff
path: root/tests/Unit/ApplicationTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 10:45:00 +0200
committermsquare <msquare@notrademark.de>2019-04-25 17:56:06 +0200
commitc74fa7955d9392aea954c2e45ed4137fb2bebcbe (patch)
tree034c93b4b3ccc31e6cc9c27dd87f139569c10c72 /tests/Unit/ApplicationTest.php
parentb74835a0968c35ad9a0955dd8b5e2f3cf9b72a56 (diff)
phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
Diffstat (limited to 'tests/Unit/ApplicationTest.php')
-rw-r--r--tests/Unit/ApplicationTest.php7
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 = [])
{