BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
SebastianBergmann\Comparator\ComparisonFailure Class Reference
Inheritance diagram for SebastianBergmann\Comparator\ComparisonFailure:
Collaboration diagram for SebastianBergmann\Comparator\ComparisonFailure:

Public Member Functions

 __construct ($expected, $actual, $expectedAsString, $actualAsString, $identical=false, $message= '')
 
 getActual ()
 
 getExpected ()
 
 getActualAsString ()
 
 getExpectedAsString ()
 
 getDiff ()
 
 toString ()
 
- Public Member Functions inherited from Exception
 __construct ($message="", $code=0, Throwable $previous=null)
 
 getMessage ()
 
 getCode ()
 
 getFile ()
 
 getLine ()
 
 getTrace ()
 
 getPrevious ()
 
 getTraceAsString ()
 
 __toString ()
 

Protected Attributes

 $expected
 
 $actual
 
 $expectedAsString
 
 $actualAsString
 
 $identical
 
 $message
 
- Protected Attributes inherited from Exception
 $message
 
 $code
 
 $file
 
 $line
 

Detailed Description

Thrown when an assertion for string equality failed.

Constructor & Destructor Documentation

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

SebastianBergmann\Comparator\ComparisonFailure::getActual ( )
Returns
mixed
SebastianBergmann\Comparator\ComparisonFailure::getActualAsString ( )
Returns
string
SebastianBergmann\Comparator\ComparisonFailure::getDiff ( )
Returns
string
SebastianBergmann\Comparator\ComparisonFailure::getExpected ( )
Returns
mixed
SebastianBergmann\Comparator\ComparisonFailure::getExpectedAsString ( )
Returns
string
SebastianBergmann\Comparator\ComparisonFailure::toString ( )
Returns
string

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