PHP 클래스 PHPUnit_Framework_Constraint_IsAnything, qcodo

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

공개 메소드들

메소드 설명
count ( ) : integer Counts the number of constraint elements.
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.

메소드 상세

count() 공개 메소드

Counts the number of constraint elements.
public count ( ) : integer
리턴 integer

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.

toString() 공개 메소드

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