/**
  * (non-PHPdoc)
  * @see PHPUnit_Framework_TestResult::endTest()
  */
 public function endTest(PHPUnit_Framework_Test $test, $time)
 {
     $result = parent::endTest($test, $time);
     if (!$this->lastTestFailed && $test instanceof PHPUnit_Framework_TestCase) {
         $class = get_class($test);
         $trimmedTestName = $test->getName();
         $teseName = $test->getName();
         $trimmedTestName = KalturaTestCaseBase::trimTestInstanceName($teseName);
         $this->passed[$class . '::' . $trimmedTestName] = $test->getResult();
         $this->time += $time;
     }
     return $result;
 }
 /**
  * @since Method available since Release 3.5.4
  */
 protected function handleDependencies()
 {
     if (!empty($this->dependencies) && !$this->inIsolation) {
         $passed = $this->getTestResultObject()->passed();
         $passedKeys = array_keys($passed);
         $numKeys = count($passedKeys);
         for ($i = 0; $i < $numKeys; $i++) {
             $passedKeys[$i] = KalturaTestCaseBase::trimTestInstanceName($passedKeys[$i]);
         }
         $passedKeys = array_flip(array_unique($passedKeys));
         foreach ($this->dependencies as $dependency) {
             $this->handleDependency($dependency, $passed, $passedKeys);
         }
     }
     return TRUE;
 }