PHP 클래스 PHPUnit_Framework_ComparisonFailure, qcodo

저자: Sebastian Bergmann ([email protected])
저자: Bernhard Schussek ([email protected])
상속: extends PHPUnit_Framework_AssertionFailedError
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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