PHP Класс PHPUnit_Framework_ComparisonFailure, qcodo

Автор: Sebastian Bergmann ([email protected])
Автор: Bernhard Schussek ([email protected])
Наследование: extends PHPUnit_Framework_AssertionFailedError
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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().

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный статический Метод

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.
Результат PHPUnit_Framework_ComparisonFailure

diffIdentical() публичный статический Метод

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.
Результат PHPUnit_Framework_ComparisonFailure

getActual() публичный Метод

public getActual ( ) : mixed
Результат mixed

getExpected() публичный Метод

public getExpected ( ) : mixed
Результат mixed

identical() публичный Метод

public identical ( ) : boolean
Результат boolean

Описание свойств

$actual защищенное свойство

Actually retrieved value which does not match $expected.
protected mixed $actual
Результат mixed

$expected защищенное свойство

Expected value of the retrieval which does not match $actual.
protected mixed $expected
Результат mixed

$identical защищенное свойство

protected bool $identical
Результат boolean

$message защищенное свойство

Optional message which is placed in front of the first line returned by toString().
protected string $message
Результат string