메소드 | 설명 | |
---|---|---|
__construct ( string $type, string $message = '%s' ) | Sets the type to compare with. | |
test ( string $compare ) : boolean | Tests the expectation. True if the type or class matches the string value. | |
testMessage ( mixed $compare ) : string | Returns a human readable test message. |
메소드 | 설명 | |
---|---|---|
canonicalType ( string $type ) : string | Coerces type name into a is_*() match. | |
getType ( ) : string | Accessor for type to check against. |
public __construct ( string $type, string $message = '%s' ) | ||
$type | string | Type or class name. |
$message | string | Customised message on failure. |
protected canonicalType ( string $type ) : string | ||
$type | string | User type. |
리턴 | string | Simpler type. |
public testMessage ( mixed $compare ) : string | ||
$compare | mixed | Comparison value. |
리턴 | string | Description of success or failure. |