Asserts
Table of Contents
Methods
- assert() : mixed
- assertFileNotExists() : mixed
- Asserts that a file does not exist.
- assertGreaterOrEquals() : mixed
- Asserts that a value is greater than or equal to another value.
- assertIsEmpty() : mixed
- Asserts that a variable is empty.
- assertLessOrEquals() : mixed
- Asserts that a value is smaller than or equal to another value.
- assertNot() : mixed
- assertNotRegExp() : mixed
- Asserts that a string does not match a given regular expression.
- assertRegExp() : mixed
- Asserts that a string matches a given regular expression.
- assertThatItsNot() : mixed
- Evaluates a PHPUnit\Framework\Constraint matcher object.
Methods
assert()
protected
assert(mixed $arguments[, bool $not = false ]) : mixed
Parameters
- $arguments : mixed
- $not : bool = false
assertFileNotExists()
Asserts that a file does not exist.
protected
assertFileNotExists(string $filename[, string $message = '' ]) : mixed
Parameters
- $filename : string
- $message : string = ''
assertGreaterOrEquals()
Asserts that a value is greater than or equal to another value.
protected
assertGreaterOrEquals(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertIsEmpty()
Asserts that a variable is empty.
protected
assertIsEmpty(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertLessOrEquals()
Asserts that a value is smaller than or equal to another value.
protected
assertLessOrEquals(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertNot()
protected
assertNot(mixed $arguments) : mixed
Parameters
- $arguments : mixed
assertNotRegExp()
Asserts that a string does not match a given regular expression.
protected
assertNotRegExp(string $pattern, string $string[, string $message = '' ]) : mixed
Parameters
- $pattern : string
- $string : string
- $message : string = ''
assertRegExp()
Asserts that a string matches a given regular expression.
protected
assertRegExp(string $pattern, string $string[, string $message = '' ]) : mixed
Parameters
- $pattern : string
- $string : string
- $message : string = ''
assertThatItsNot()
Evaluates a PHPUnit\Framework\Constraint matcher object.
protected
assertThatItsNot(mixed $value, Constraint $constraint[, string $message = '' ]) : mixed
Parameters
- $value : mixed
- $constraint : Constraint
- $message : string = ''