/** * 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(); } }
private function createTestKernel($contextName = 'testing') { $this->testKernel = new TestKernel($this, $this->systemSettings, $contextName); $this->testKernel->bootKernel(); }
public final function __destruct() { TestKernel::tearDown(); }