Méthode |
Description |
|
contains ( $needle, $actual, $description = NULL ) : void |
Checks assertion. Values must contains expected needle. |
|
count ( $count, $value, $description = NULL ) : void |
Checks if subject has expected count. |
|
equal ( $expected, $actual, $description = NULL ) : void |
Checks assertion. The identity of objects and the order of keys in the arrays are ignored. |
|
error ( callable $function, $expectedType, $expectedMessage = NULL ) : null | Exception |
Checks if the function generates PHP error or throws exception. |
|
exception ( callable $function, $class, $message = NULL, $code = NULL ) : Exception |
Checks if the function throws exception. |
|
expandMatchingPatterns ( $pattern, $actual ) : array |
|
|
fail ( $message, $actual = NULL, $expected = NULL ) : void |
Failed assertion |
|
false ( $actual, $description = NULL ) : void |
Checks FALSE assertion. |
|
falsey ( $actual, $description = NULL ) : void |
Checks falsey (empty) assertion. |
|
isMatching ( $pattern, $actual, $strict = FALSE ) : boolean |
Compares using mask. |
|
match ( $pattern, $actual, $description = NULL ) : void |
Compares result using regular expression or mask:
%a% one or more of anything except the end of line characters
%a?% zero or more of anything except the end of line characters
%A% one or more of anything including the end of line characters
%A?% zero or more of anything including the end of line characters
%s% one or more white space characters except the end of line characters
%s?% zero or more white space characters except the end of line characters
%S% one or more of characters except the white space
%S?% zero or more of characters except the white space
%c% a single character of any sort (except the end of line)
%d% one or more digits
%d?% zero or more digits
%i% signed integer value
%f% floating point number
%h% one or more HEX digits |
|
matchFile ( $file, $actual, $description = NULL ) : void |
Compares results using mask sorted in file. |
|
nan ( $actual, $description = NULL ) : void |
Checks Not a Number assertion. |
|
noError ( $function ) : void |
Checks that the function does not generate PHP error and does not throw exception. |
|
notContains ( $needle, $actual, $description = NULL ) : void |
Checks assertion. Values must not contains expected needle. |
|
notEqual ( $expected, $actual, $description = NULL ) : void |
Checks assertion. The identity of objects and the order of keys in the arrays are ignored. |
|
notSame ( $expected, $actual, $description = NULL ) : void |
Checks assertion. Values must not be exactly the same. |
|
null ( $actual, $description = NULL ) : void |
Checks NULL assertion. |
|
same ( $expected, $actual, $description = NULL ) : void |
Checks assertion. Values must be exactly the same. |
|
throws ( callable $function, $class, $message = NULL, $code = NULL ) : Exception |
Checks if the function throws exception, alias for exception(). |
|
true ( $actual, $description = NULL ) : void |
Checks TRUE assertion. |
|
truthy ( $actual, $description = NULL ) : void |
Checks truthy assertion. |
|
type ( $type, $value, $description = NULL ) : void |
Checks assertion. |
|
with ( $obj, Closure $closure ) |
|
|