Lggr
Public Member Functions | Protected Attributes | List of all members
SebastianBergmann\Comparator\ComparisonFailure Class Reference
Inheritance diagram for SebastianBergmann\Comparator\ComparisonFailure:
Inheritance graph
[legend]
Collaboration diagram for SebastianBergmann\Comparator\ComparisonFailure:
Collaboration graph
[legend]

Public Member Functions

 __construct ($expected, $actual, $expectedAsString, $actualAsString, $identical=false, $message='')
 
 getActual ()
 
 getExpected ()
 
 getActualAsString ()
 
 getExpectedAsString ()
 
 getDiff ()
 
 toString ()
 

Protected Attributes

 $expected
 
 $actual
 
 $expectedAsString
 
 $actualAsString
 
 $identical
 
 $message
 

Detailed Description

Thrown when an assertion for string equality failed.

Constructor & Destructor Documentation

◆ __construct()

SebastianBergmann\Comparator\ComparisonFailure::__construct (   $expected,
  $actual,
  $expectedAsString,
  $actualAsString,
  $identical = false,
  $message = '' 
)

Initialises with the expected value and the actual value.

Parameters
mixed$expectedExpected value retrieved.
mixed$actualActual value retrieved.
string$expectedAsString
string$actualAsString
bool$identical
string$messageA string which is prefixed on all returned lines in the difference output.

Member Function Documentation

◆ getActual()

SebastianBergmann\Comparator\ComparisonFailure::getActual ( )
Returns
mixed

◆ getActualAsString()

SebastianBergmann\Comparator\ComparisonFailure::getActualAsString ( )
Returns
string

◆ getDiff()

SebastianBergmann\Comparator\ComparisonFailure::getDiff ( )
Returns
string

◆ getExpected()

SebastianBergmann\Comparator\ComparisonFailure::getExpected ( )
Returns
mixed

◆ getExpectedAsString()

SebastianBergmann\Comparator\ComparisonFailure::getExpectedAsString ( )
Returns
string

◆ toString()

SebastianBergmann\Comparator\ComparisonFailure::toString ( )
Returns
string

The documentation for this class was generated from the following file: