remove($dir); } protected static function createKernel(array $options = []): KernelInterface { $class = self::getKernelClass(); return new $class( $options['environment'] ?? $_ENV['APP_ENV'] ?? $_SERVER['APP_ENV'] ?? 'test', (bool) ($options['debug'] ?? $_ENV['APP_DEBUG'] ?? $_SERVER['APP_DEBUG'] ?? false), $options['test_case'] ?? null, ); } protected static function getKernelClass(): string { return 'Sylius\Tests\Functional\app\AppKernel'; } }