PHP Class PHPUnit_Framework_ComparisonFailure, qcodo

Author: Sebastian Bergmann ([email protected])
Author: Bernhard Schussek ([email protected])
Inheritance: extends PHPUnit_Framework_AssertionFailedError
Mostrar archivo Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Property Type Description
$actual mixed Actually retrieved value which does not match $expected.
$expected mixed Expected value of the retrieval which does not match $actual.
$identical boolean
$message string Optional message which is placed in front of the first line returned by toString().

Public Methods

Method Description
__construct ( mixed $expected, mixed $actual, boolean $identical = FALSE, string $message = '' ) Initialises with the expected value and the actual value.
diffEqual ( mixed $expected, mixed $actual, string $message = '' ) : PHPUnit_Framework_ComparisonFailure Figures out which diff class to use for the input types then instantiates that class and returns the object.
diffIdentical ( mixed $expected, mixed $actual, string $message = '' ) : PHPUnit_Framework_ComparisonFailure Figures out which diff class to use for the input types then instantiates that class and returns the object.
getActual ( ) : mixed
getExpected ( ) : mixed
identical ( ) : boolean

Method Details

__construct() public method

Initialises with the expected value and the actual value.
public __construct ( mixed $expected, mixed $actual, boolean $identical = FALSE, string $message = '' )
$expected mixed Expected value retrieved.
$actual mixed Actual value retrieved.
$identical boolean
$message string A string which is prefixed on all returned lines in the difference output.

diffEqual() public static method

Figures out which diff class to use for the input types then instantiates that class and returns the object.
public static diffEqual ( mixed $expected, mixed $actual, string $message = '' ) : PHPUnit_Framework_ComparisonFailure
$expected mixed Expected value retrieved.
$actual mixed Actual value retrieved.
$message string A string which is prefixed on all returned lines in the difference output.
return PHPUnit_Framework_ComparisonFailure

diffIdentical() public static method

Figures out which diff class to use for the input types then instantiates that class and returns the object.
public static diffIdentical ( mixed $expected, mixed $actual, string $message = '' ) : PHPUnit_Framework_ComparisonFailure
$expected mixed Expected value retrieved.
$actual mixed Actual value retrieved.
$message string A string which is prefixed on all returned lines in the difference output.
return PHPUnit_Framework_ComparisonFailure

getActual() public method

public getActual ( ) : mixed
return mixed

getExpected() public method

public getExpected ( ) : mixed
return mixed

identical() public method

public identical ( ) : boolean
return boolean

Property Details

$actual protected_oe property

Actually retrieved value which does not match $expected.
protected mixed $actual
return mixed

$expected protected_oe property

Expected value of the retrieval which does not match $actual.
protected mixed $expected
return mixed

$identical protected_oe property

protected bool $identical
return boolean

$message protected_oe property

Optional message which is placed in front of the first line returned by toString().
protected string $message
return string