Esempio n. 1
0
 /**
  * {@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();
         }
     }
 }
Esempio n. 3
0
 /**
  * Shuts the kernel down if it was used in the test.
  */
 protected static function ensureKernelShutdown()
 {
     if (null !== static::$kernel) {
         static::$kernel->shutdown();
     }
 }
Esempio n. 4
0
 public function tearDown()
 {
     if ($this->kernel) {
         $this->kernel->shutdown();
     }
 }
Esempio n. 5
0
 /**
  * Shuts the kernel down if it was used in the test.
  */
 protected function tearDown()
 {
     if (null !== static::$kernel) {
         static::$kernel->shutdown();
     }
 }
Esempio n. 6
0
 /**
  * @inheritdoc
  */
 public function tearDown()
 {
     static::$kernel->shutdown();
 }
Esempio n. 7
0
 public function tearDown()
 {
     // Shutdown the kernel.
     $this->kernel->shutdown();
     parent::tearDown();
 }
Esempio n. 8
0
 /**
  * {@inheritdoc}
  */
 public function shutdown()
 {
     $this->kernel->shutdown();
 }