diff --git a/tests/Integration/VerifyEmailBundleAutowireTest.php b/tests/Integration/VerifyEmailBundleAutowireTest.php index c7b1624..b583207 100644 --- a/tests/Integration/VerifyEmailBundleAutowireTest.php +++ b/tests/Integration/VerifyEmailBundleAutowireTest.php @@ -1,5 +1,7 @@ diff --git a/tests/Integration/VerifyEmailServiceDefinitionTest.php b/tests/Integration/VerifyEmailServiceDefinitionTest.php index d1b6b70..4644d3e 100644 --- a/tests/Integration/VerifyEmailServiceDefinitionTest.php +++ b/tests/Integration/VerifyEmailServiceDefinitionTest.php @@ -1,12 +1,13 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - namespace SymfonyCasts\Bundle\VerifyEmail\Tests\Integration; use PHPUnit\Framework\TestCase; diff --git a/tests/VerifyEmailTestKernel.php b/tests/VerifyEmailTestKernel.php index 87485e9..89143a5 100644 --- a/tests/VerifyEmailTestKernel.php +++ b/tests/VerifyEmailTestKernel.php @@ -1,12 +1,13 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - namespace SymfonyCasts\Bundle\VerifyEmail\Tests; use Symfony\Bundle\FrameworkBundle\FrameworkBundle; @@ -32,8 +33,8 @@ class VerifyEmailTestKernel extends Kernel */ public function __construct( private ?ContainerBuilder $builder = null, - private array $routes = [], - private array $extraBundles = [], + private readonly array $routes = [], + private readonly array $extraBundles = [], ) { parent::__construct('test', true); } @@ -51,13 +52,13 @@ public function registerBundles(): iterable public function registerContainerConfiguration(LoaderInterface $loader): void { - if (null === $this->builder) { + if (!$this->builder instanceof ContainerBuilder) { $this->builder = new ContainerBuilder(); } $builder = $this->builder; - $loader->load(function (ContainerBuilder $container) use ($builder) { + $loader->load(function (ContainerBuilder $container) use ($builder): void { $container->merge($builder); $container->loadFromExtension( 'framework', @@ -92,11 +93,13 @@ public function loadRoutes(LoaderInterface $loader): RouteCollection return $routes; } + #[\Override] public function getCacheDir(): string { return sys_get_temp_dir().'/cache'.spl_object_hash($this); } + #[\Override] public function getLogDir(): string { return sys_get_temp_dir().'/logs'.spl_object_hash($this);