Esempio n. 1
0
 /**
  * Performs shutdown of the DI container, you should call this method if you implement
  * your own tear down method.
  */
 protected function tearDown()
 {
     try {
         foreach ($this->findRules() as $rule) {
             $rule->after($this);
         }
     } finally {
         $this->config = NULL;
         $this->container = NULL;
         $this->eventDispatcher = NULL;
         $this->testKernel = NULL;
         TestKernel::tearDown();
         parent::tearDown();
     }
 }
Esempio n. 2
0
 private function createTestKernel($contextName = 'testing')
 {
     $this->testKernel = new TestKernel($this, $this->systemSettings, $contextName);
     $this->testKernel->bootKernel();
 }
Esempio n. 3
0
 public final function __destruct()
 {
     TestKernel::tearDown();
 }