Primitives¶
Null¶
Booleans¶
Resource¶
resource
s are values return by fopen
functions and such.
Numbers¶
Strings¶
You can add a call to ->not()
after ->string()
to inverse the following assertion.
You can chain multiple assertions on the same string like this:
static function(Assert $assert) {
$assert
->string($someValue)
->startsWith($prefix, 'Optional error message')
->endsWith($suffix, 'Optional error message');
}