Example #1
0
 /**
  * Adds the failure detail to the current test and increases the failure
  * count for the current suite
  * 
  * @access public
  * @param obj PHPUnit2_Framework_Test, current test that is being run
  * @param obj PHPUnit2_Framework_AssertationFailedError, PHPUnit2 error
  * @return void
  */
 public function addFailure(PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)
 {
     $this->currentSuite['failures']++;
     $this->currentTest['status'] = TEST_FAILURE;
     $this->currentTest['message'] = $e->toString();
     $this->currentTest['exception'] = $this->getTestException($test, $e);
 }