public function __construct($description, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, $message = '') { $this->description = $description; $this->comparisonFailure = $comparisonFailure; $this->customMessage = $message; if (!empty($message)) { $description .= "\n" . $message; } parent::__construct($description); }
public function __construct($message, $expectedImage, $currentImage, $deviationImage) { $this->deviationImage = $deviationImage; $this->currentImage = $currentImage; $this->expectedImage = $expectedImage; parent::__construct($message); }