PHP 클래스 PHPUnit_Framework_Constraint_IsEqual, qcodo

Equality is checked with PHP's == operator, the operator is explained in detail at {@url http://www.php.net/manual/en/types.comparisons.php}. Two values are equal if they have the same value disregarding type. The expected value is passed in the constructor.
상속: extends PHPUnit_Framework_Constraint
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$canonicalize boolean
$delta float
$ignoreCase boolean
$maxDepth integer
$value mixed

공개 메소드들

메소드 설명
__construct ( mixed $value, float $delta, integer $maxDepth = 10, boolean $canonicalize = FALSE, boolean $ignoreCase = FALSE )
evaluate ( mixed $other ) : boolean Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
fail ( mixed $other, string $description, boolean $not = FALSE )
toString ( ) : string Returns a string representation of the constraint.

보호된 메소드들

메소드 설명
domToText ( DOMDocument $document ) : string Returns the normalized, whitespace-cleaned, and indented textual representation of a DOMDocument.
numericComparison ( mixed $a, mixed $b ) : boolean Compares two numeric values - use delta if applicable.
recursiveComparison ( mixed $a, mixed $b, integer $depth ) : boolean Perform the actual recursive comparison of two values

메소드 상세

__construct() 공개 메소드

public __construct ( mixed $value, float $delta, integer $maxDepth = 10, boolean $canonicalize = FALSE, boolean $ignoreCase = FALSE )
$value mixed
$delta float
$maxDepth integer
$canonicalize boolean
$ignoreCase boolean

domToText() 보호된 메소드

Returns the normalized, whitespace-cleaned, and indented textual representation of a DOMDocument.
protected domToText ( DOMDocument $document ) : string
$document DOMDocument
리턴 string

evaluate() 공개 메소드

Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
public evaluate ( mixed $other ) : boolean
$other mixed Value or object to evaluate.
리턴 boolean

fail() 공개 메소드

public fail ( mixed $other, string $description, boolean $not = FALSE )
$other mixed The value passed to evaluate() which failed the constraint check.
$description string A string with extra description of what was going on while the evaluation failed.
$not boolean Flag to indicate negation.

numericComparison() 보호된 메소드

Compares two numeric values - use delta if applicable.
protected numericComparison ( mixed $a, mixed $b ) : boolean
$a mixed
$b mixed
리턴 boolean

recursiveComparison() 보호된 메소드

Perform the actual recursive comparison of two values
protected recursiveComparison ( mixed $a, mixed $b, integer $depth ) : boolean
$a mixed First value
$b mixed Second value
$depth integer Depth
리턴 boolean

toString() 공개 메소드

Returns a string representation of the constraint.
public toString ( ) : string
리턴 string

프로퍼티 상세

$canonicalize 보호되어 있는 프로퍼티

protected bool $canonicalize
리턴 boolean

$delta 보호되어 있는 프로퍼티

protected float $delta
리턴 float

$ignoreCase 보호되어 있는 프로퍼티

protected bool $ignoreCase
리턴 boolean

$maxDepth 보호되어 있는 프로퍼티

protected int $maxDepth
리턴 integer

$value 보호되어 있는 프로퍼티

protected mixed $value
리턴 mixed