diff options
Diffstat (limited to 'tests/Unit/BasicStrategyTest.php')
| -rw-r--r-- | tests/Unit/BasicStrategyTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Unit/BasicStrategyTest.php b/tests/Unit/BasicStrategyTest.php index 2a0b550..1f1489a 100644 --- a/tests/Unit/BasicStrategyTest.php +++ b/tests/Unit/BasicStrategyTest.php @@ -9,12 +9,12 @@ use Lightscale\Router\Test\Utils\TestCallable; use Nyholm\Psr7\Factory\Psr17Factory; it('initialises') - ->expect(fn() => new BasicStrategy) + ->expect(fn () => new BasicStrategy()) ->toBeInstanceOf(BasicStrategy::class); -it('throws on not found', function() { - (new BasicStrategy)->notFound( - (new Psr17Factory)->createServerRequest( +it('throws on not found', function () { + (new BasicStrategy())->notFound( + (new Psr17Factory())->createServerRequest( HttpMethod::Get->value, '/testing/testing' ) @@ -22,10 +22,10 @@ it('throws on not found', function() { })->throws(NotFoundException::class); it('calls route', function () { - $factory = new Psr17Factory; + $factory = new Psr17Factory(); $response = $factory->createResponse(200, 'OK'); $cb = TestCallable::make(fn () => $response); - $res = (new BasicStrategy)->runRoute($rc = new RouteCall( + $res = (new BasicStrategy())->runRoute($rc = new RouteCall( $factory->createServerRequest( HttpMethod::Get->value, '/testing/testing' |
