diff --git a/tests/AnimeClient/AnimeClientTestCase.php b/tests/AnimeClient/AnimeClientTestCase.php index 4e5224c0..6cf820dc 100644 --- a/tests/AnimeClient/AnimeClientTestCase.php +++ b/tests/AnimeClient/AnimeClientTestCase.php @@ -97,7 +97,7 @@ class AnimeClientTestCase extends TestCase $container = $di($config_array); // Use mock session handler - $container->set('session-handler', static function (): \Aviat\AnimeClient\Tests\TestSessionHandler { + $container->set('session-handler', static function (): TestSessionHandler { $session_handler = new TestSessionHandler(); session_set_save_handler($session_handler, TRUE); diff --git a/tests/Ion/Di/ContainerTest.php b/tests/Ion/Di/ContainerTest.php index 510d52a9..137dc3f6 100644 --- a/tests/Ion/Di/ContainerTest.php +++ b/tests/Ion/Di/ContainerTest.php @@ -30,8 +30,8 @@ use TypeError; final class FooTest { public function __construct(public $item) - { - } + { + } } class FooTest2 @@ -162,7 +162,7 @@ final class ContainerTest extends IonTestCase public function testGetSet(): void { - $container = $this->container->set('foo', static fn() => static function (): void {}); + $container = $this->container->set('foo', static fn () => static function (): void {}); $this->assertInstanceOf(Container::class, $container); $this->assertInstanceOf(ContainerInterface::class, $container); diff --git a/tests/Ion/IonTestCase.php b/tests/Ion/IonTestCase.php index bca5b68c..fc07de4f 100644 --- a/tests/Ion/IonTestCase.php +++ b/tests/Ion/IonTestCase.php @@ -92,7 +92,7 @@ class IonTestCase extends TestCase // Set up DI container $di = require 'di.php'; $container = $di($config_array); - $container->set('session-handler', static function (): \Aviat\Ion\Tests\TestSessionHandler { + $container->set('session-handler', static function (): TestSessionHandler { // Use mock session handler $session_handler = new TestSessionHandler(); session_set_save_handler($session_handler, TRUE); diff --git a/tests/Ion/di.php b/tests/Ion/di.php index 52e0594f..0cfbe69e 100644 --- a/tests/Ion/di.php +++ b/tests/Ion/di.php @@ -16,13 +16,13 @@ return static function (array $config_array = []) { $container->setInstance('config', new Config($config_array)); - $container->set('request', static fn() => ServerRequestFactory::fromGlobals( - $GLOBALS['_SERVER'], - $_GET, - $_POST, - $_COOKIE, - $_FILES - )); + $container->set('request', static fn () => ServerRequestFactory::fromGlobals( + $GLOBALS['_SERVER'], + $_GET, + $_POST, + $_COOKIE, + $_FILES + )); $container->set('response', static fn () => new Response());