/** * 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(); } }
public final function __destruct() { TestKernel::tearDown(); }