/** * {@inheritdoc} */ protected function doRequest($request) { if ($this->hasPerformedRequest) { $this->kernel->shutdown(); $this->kernel->boot(); } else { $this->hasPerformedRequest = true; } $this->refreshDoctrineConnection(); $response = $this->kernel->handle($request); if ($this->kernel instanceof TerminableInterface) { $this->kernel->terminate($request, $response); } return $response; }
/** * Shuts the kernel down if it was used in the test. */ protected static function ensureKernelShutdown() { if (null !== static::$kernel) { $container = static::$kernel->getContainer(); static::$kernel->shutdown(); if ($container instanceof ResettableContainerInterface) { $container->reset(); } } }
/** * Shuts the kernel down if it was used in the test. */ protected static function ensureKernelShutdown() { if (null !== static::$kernel) { static::$kernel->shutdown(); } }
public function tearDown() { if ($this->kernel) { $this->kernel->shutdown(); } }
/** * Shuts the kernel down if it was used in the test. */ protected function tearDown() { if (null !== static::$kernel) { static::$kernel->shutdown(); } }
/** * @inheritdoc */ public function tearDown() { static::$kernel->shutdown(); }
public function tearDown() { // Shutdown the kernel. $this->kernel->shutdown(); parent::tearDown(); }
/** * {@inheritdoc} */ public function shutdown() { $this->kernel->shutdown(); }