示例#1
0
文件: TestCase.php 项目: koolkode/k2
 /**
  * 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();
     }
 }
示例#2
0
 public final function __destruct()
 {
     TestKernel::tearDown();
 }