프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
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 |
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 |
protected mixed $actual | ||
리턴 | mixed |
protected mixed $expected | ||
리턴 | mixed |
protected string $message | ||
리턴 | string |