Esempio n. 1
0
 public function didRunTestCases(array $test_cases)
 {
     if (self::$storageFixture) {
         self::$storageFixtureReferences--;
         if (!self::$storageFixtureReferences) {
             self::$storageFixture = null;
         }
     }
     --self::$testsAreRunning;
 }
Esempio n. 2
0
 protected function didRunTests()
 {
     $config = $this->getComputedConfiguration();
     if ($config[self::PHABRICATOR_TESTCONFIG_ISOLATE_LISK]) {
         LiskDAO::endIsolateAllLiskEffectsToCurrentProcess();
     }
     if (self::$storageFixture) {
         self::$storageFixtureReferences--;
         if (!self::$storageFixtureReferences) {
             self::$storageFixture = null;
         }
     }
     try {
         unset($this->env);
     } catch (Exception $ex) {
         throw new Exception("Some test called PhabricatorEnv::beginScopedEnv(), but is still " . "holding a reference to the scoped environment!");
     }
 }