boot(); $container = $kernel->getContainer(); $this->assertInstanceOf(MarkdownParser::class, $container->get('markdown.parser')); } } class IntegrationKernel extends Kernel { use MicroKernelTrait; private $cacheDir; public function registerBundles(): iterable { return [ new FrameworkBundle(), new KnpMarkdownBundle(), ]; } protected function configureRoutes(RoutingConfigurator $routes) { } protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader) { $c->loadFromExtension('framework', [ 'secret' => 'F00', 'router' => ['utf8' => true] ]); } public function getCacheDir(): string { if (null === $this->cacheDir) { $this->cacheDir = sys_get_temp_dir().'/'.rand(100, 999); } return $this->cacheDir; } }