Пример #1
0
 /**
  * A failure occurred.
  *
  * @param PHPUnit_Framework_Test                 $test
  * @param PHPUnit_Framework_AssertionFailedError $e
  * @param float                                  $time
  */
 public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     $this->failures[$test->toString()] = $e->getMessage();
     parent::addFailure($test, $e, $time);
 }
Пример #2
0
 /**
  * A failure occurred.
  *
  * @param \PHPUnit_Framework_Test                 $test
  * @param \PHPUnit_Framework_AssertionFailedError $e
  * @param float                                  $time
  */
 public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     $this->failures[Descriptor::getTestSignature($test)] = $this->cleanMessage($e);
     parent::addFailure($test, $e, $time);
 }
Пример #3
0
 /**
  * Constructor.
  *
  * @param  mixed   $out
  * @throws InvalidArgumentException
  */
 public function __construct($out = NULL)
 {
     parent::__construct($out);
     $this->templatePath = sprintf('%s%stemplate%s', dirname(__FILE__), DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR);
 }
Пример #4
0
 public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     $this->logError($test, $e);
     parent::addFailure($test, $e, $time);
 }