PHP Class PHPUnit_Framework_ComparisonFailure, qcodo

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

Protected Properties

Свойство 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().

Méthodes publiques

Méthode 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 méthode

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 méthode

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.
Résultat PHPUnit_Framework_ComparisonFailure

diffIdentical() public static méthode

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.
Résultat PHPUnit_Framework_ComparisonFailure

getActual() public méthode

public getActual ( ) : mixed
Résultat mixed

getExpected() public méthode

public getExpected ( ) : mixed
Résultat mixed

identical() public méthode

public identical ( ) : boolean
Résultat boolean

Property Details

$actual protected_oe property

Actually retrieved value which does not match $expected.
protected mixed $actual
Résultat mixed

$expected protected_oe property

Expected value of the retrieval which does not match $actual.
protected mixed $expected
Résultat mixed

$identical protected_oe property

protected bool $identical
Résultat boolean

$message protected_oe property

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