PHP 클래스 IdenticalEntityExpectation, Elgg

상속: extends EqualExpectation
파일 보기 프로젝트 열기: elgg/elgg

공개 메소드들

메소드 설명
__construct ( mixed $value, string $message = '%s' ) Sets the value to compare against.
test ( mixed $compare ) : boolean Tests the expectation. True if it exactly matches the held value.
testMessage ( mixed $compare ) : string Returns a human readable test message.

보호된 메소드들

메소드 설명
entityToFilteredArray ( ElggEntity $entity ) : array Converts entity to array and filters not important attributes

메소드 상세

__construct() 공개 메소드

Sets the value to compare against.
public __construct ( mixed $value, string $message = '%s' )
$value mixed Test value to match.
$message string Customised message on failure.

entityToFilteredArray() 보호된 메소드

Converts entity to array and filters not important attributes
protected entityToFilteredArray ( ElggEntity $entity ) : array
$entity ElggEntity An entity to convert
리턴 array

test() 공개 메소드

Tests the expectation. True if it exactly matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
리턴 boolean

testMessage() 공개 메소드

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Comparison value.
리턴 string