PHP 클래스 PHPUnit_Framework_Constraint_ArrayHasKey, qcodo

Uses array_key_exists() to check if the key is found in the input array, if not found the evaluation fails. The array key is passed in the constructor.
상속: extends PHPUnit_Framework_Constraint
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$key integer | string

공개 메소드들

메소드 설명
__construct ( integer | string $key )
evaluate ( mixed $other ) : boolean Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
toString ( ) : string Returns a string representation of the constraint.

보호된 메소드들

메소드 설명
customFailureDescription ( mixed $other, string $description, boolean $not )

메소드 상세

__construct() 공개 메소드

public __construct ( integer | string $key )
$key integer | string

customFailureDescription() 보호된 메소드

protected customFailureDescription ( mixed $other, string $description, boolean $not )
$other mixed
$description string
$not boolean

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

toString() 공개 메소드

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

프로퍼티 상세

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

protected int|string $key
리턴 integer | string