PHPUnit_Framework_ExpectationFailedException::__construct PHP Method

__construct() public method

public __construct ( $description, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, $message = '' )
$comparisonFailure PHPUnit_Framework_ComparisonFailure
    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);
    }

Usage Example

 public function __construct($message, $expectedImage, $currentImage, $deviationImage)
 {
     $this->deviationImage = $deviationImage;
     $this->currentImage = $currentImage;
     $this->expectedImage = $expectedImage;
     parent::__construct($message);
 }
All Usage Examples Of PHPUnit_Framework_ExpectationFailedException::__construct