You are here

public function ComparisonFailure::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/sebastian/comparator/src/ComparisonFailure.php \SebastianBergmann\Comparator\ComparisonFailure::__construct()

Initialises with the expected value and the actual value.

Parameters

mixed $expected Expected value retrieved.:

mixed $actual Actual value retrieved.:

string $expectedAsString:

string $actualAsString:

bool $identical:

string $message A string which is prefixed on all returned lines: in the difference output.

File

vendor/sebastian/comparator/src/ComparisonFailure.php, line 67

Class

ComparisonFailure
Thrown when an assertion for string equality failed.

Namespace

SebastianBergmann\Comparator

Code

public function __construct($expected, $actual, $expectedAsString, $actualAsString, $identical = false, $message = '') {
  $this->expected = $expected;
  $this->actual = $actual;
  $this->expectedAsString = $expectedAsString;
  $this->actualAsString = $actualAsString;
  $this->message = $message;
}