コード例 #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
ファイル: TestLoaderTrait.php プロジェクト: koolkode/k2
 private function createTestKernel($contextName = 'testing')
 {
     $this->testKernel = new TestKernel($this, $this->systemSettings, $contextName);
     $this->testKernel->bootKernel();
 }
コード例 #3
0
ファイル: TestSystem.php プロジェクト: koolkode/k2
 public final function __destruct()
 {
     TestKernel::tearDown();
 }