From 79c92da8c14de61dccc015f04c3900aac4bd4179 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Apr 2019 11:01:37 +0200 Subject: Formatting ```bash php-cs-fixer fix --allow-risky=yes --rules=@PSR2,psr4,mb_str_functions.php_unit_construct,php_unit_ordered_covers,trailing_comma_in_multiline_array --rules='{"array_syntax": {"syntax":"short"}}' [tests/|src/] ``` --- tests/Unit/Middleware/CallableHandlerTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/Unit/Middleware/CallableHandlerTest.php') diff --git a/tests/Unit/Middleware/CallableHandlerTest.php b/tests/Unit/Middleware/CallableHandlerTest.php index a0dbfce8..d59be60d 100644 --- a/tests/Unit/Middleware/CallableHandlerTest.php +++ b/tests/Unit/Middleware/CallableHandlerTest.php @@ -6,6 +6,7 @@ use Engelsystem\Container\Container; use Engelsystem\Http\Response; use Engelsystem\Middleware\CallableHandler; use Engelsystem\Test\Unit\Middleware\Stub\HasStaticMethod; +use InvalidArgumentException; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; @@ -18,7 +19,8 @@ class CallableHandlerTest extends TestCase public function provideCallable() { return [ - [function () { }], + [function () { + }], [[$this, 'provideCallable']], [[HasStaticMethod::class, 'foo']], ]; @@ -113,7 +115,7 @@ class CallableHandlerTest extends TestCase $this->assertEquals($response, $return); $middleware = new CallableHandler($callable); - $this->expectException(\InvalidArgumentException::class); + $this->expectException(InvalidArgumentException::class); $middleware->handle($request); } -- cgit v1.2.3-54-g00ecf