Stud.IP
5.4
|
Variables | |
trait | FunctionalTesterActions |
trait | JsonapiTesterActions |
trait | UnitTesterActions |
assertArrayHasKey | ( | $key, | |
$array, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that an array has a specified key.
int | string | $key | |
array | ArrayAccess | $array | |
string | $message |
assertArrayNotHasKey | ( | $key, | |
$array, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that an array does not have a specified key.
int | string | $key | |
array | ArrayAccess | $array | |
string | $message |
assertClassHasAttribute | ( | $attributeName, | |
$className, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a class has a specified attribute.
string | $attributeName | |
string | $className | |
string | $message |
assertClassHasStaticAttribute | ( | $attributeName, | |
$className, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a class has a specified static attribute.
string | $attributeName | |
string | $className | |
string | $message |
assertClassNotHasAttribute | ( | $attributeName, | |
$className, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a class does not have a specified attribute.
string | $attributeName | |
string | $className | |
string | $message |
assertClassNotHasStaticAttribute | ( | $attributeName, | |
$className, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a class does not have a specified static attribute.
string | $attributeName | |
string | $className | |
string | $message |
assertContains | ( | $needle, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a haystack contains a needle.
$needle | ||
$haystack | ||
string | $message |
assertContainsEquals | ( | $needle, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
$needle | ||
$haystack | ||
string | $message |
assertContainsOnly | ( | $type, | |
$haystack, | |||
$isNativeType = NULL , |
|||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a haystack contains only values of a given type.
string | $type | |
$haystack | ||
bool | null | $isNativeType | |
string | $message |
assertContainsOnlyInstancesOf | ( | $className, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a haystack contains only instances of a given class name.
string | $className | |
$haystack | ||
string | $message |
assertCount | ( | $expectedCount, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts the number of elements of an array, Countable or Traversable.
int | $expectedCount | |
Countable | iterable | $haystack | |
string | $message |
assertDirectoryDoesNotExist | ( | $directory, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a directory does not exist.
string | $directory | |
string | $message |
assertDirectoryExists | ( | $directory, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a directory exists.
string | $directory | |
string | $message |
assertDirectoryIsNotReadable | ( | $directory, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a directory exists and is not readable.
string | $directory | |
string | $message |
assertDirectoryIsNotWritable | ( | $directory, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a directory exists and is not writable.
string | $directory | |
string | $message |
assertDirectoryIsReadable | ( | $directory, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a directory exists and is readable.
string | $directory | |
string | $message |
assertDirectoryIsWritable | ( | $directory, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a directory exists and is writable.
string | $directory | |
string | $message |
assertDoesNotMatchRegularExpression | ( | $pattern, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string does not match a given regular expression.
string | $pattern | |
string | $string | |
string | $message |
assertEmpty | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is empty.
$actual | ||
string | $message |
assertEquals | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables are equal.
$expected | ||
$actual | ||
string | $message |
assertEqualsCanonicalizing | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables are equal (canonicalizing).
$expected | ||
$actual | ||
string | $message |
assertEqualsIgnoringCase | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables are equal (ignoring case).
$expected | ||
$actual | ||
string | $message |
assertEqualsWithDelta | ( | $expected, | |
$actual, | |||
$delta, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables are equal (with delta).
$expected | ||
$actual | ||
float | $delta | |
string | $message |
assertFalse | ( | $condition, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a condition is false.
$condition | ||
string | $message |
assertFileDoesNotExist | ( | $filename, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file does not exist.
string | $filename | |
string | $message |
assertFileEquals | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of one file is equal to the contents of another file.
string | $expected | |
string | $actual | |
string | $message |
assertFileEqualsCanonicalizing | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of one file is equal to the contents of another file (canonicalizing).
$expected | ||
$actual | ||
string | $message |
assertFileEqualsIgnoringCase | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of one file is equal to the contents of another file (ignoring case).
$expected | ||
$actual | ||
string | $message |
assertFileExists | ( | $filename, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file exists.
string | $filename | |
string | $message |
assertFileIsNotReadable | ( | $file, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file exists and is not readable.
string | $file | |
string | $message |
assertFileIsNotWritable | ( | $file, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file exists and is not writable.
string | $file | |
string | $message |
assertFileIsReadable | ( | $file, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file exists and is readable.
string | $file | |
string | $message |
assertFileIsWritable | ( | $file, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file exists and is writable.
string | $file | |
string | $message |
assertFileNotEquals | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of one file is not equal to the contents of another file.
$expected | ||
$actual | ||
string | $message |
assertFileNotEqualsCanonicalizing | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of one file is not equal to the contents of another file (canonicalizing).
$expected | ||
$actual | ||
string | $message |
assertFileNotEqualsIgnoringCase | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of one file is not equal to the contents of another file (ignoring case).
$expected | ||
$actual | ||
string | $message |
assertFileNotExists | ( | $filename, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file does not exist.
string | $filename | |
string | $message |
assertFinite | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is finite.
$actual | ||
string | $message |
assertGreaterOrEquals | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a value is greater than or equal to another value.
$expected | ||
$actual | ||
string | $message |
assertGreaterThan | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a value is greater than another value.
$expected | ||
$actual | ||
string | $message |
assertGreaterThanOrEqual | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a value is greater than or equal to another value.
$expected | ||
$actual | ||
string | $message |
assertInfinite | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is infinite.
$actual | ||
string | $message |
assertInstanceOf | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of a given type.
$expected | ||
$actual | ||
string | $message |
assertIsArray | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type array.
$actual | ||
string | $message |
assertIsBool | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type bool.
$actual | ||
string | $message |
assertIsCallable | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type callable.
$actual | ||
string | $message |
assertIsClosedResource | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type resource and is closed.
$actual | ||
string | $message |
assertIsEmpty | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is empty.
$actual | ||
string | $message |
assertIsFloat | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type float.
$actual | ||
string | $message |
assertIsInt | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type int.
$actual | ||
string | $message |
assertIsIterable | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type iterable.
$actual | ||
string | $message |
assertIsNotArray | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type array.
$actual | ||
string | $message |
assertIsNotBool | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type bool.
$actual | ||
string | $message |
assertIsNotCallable | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type callable.
$actual | ||
string | $message |
assertIsNotClosedResource | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type resource.
$actual | ||
string | $message |
assertIsNotFloat | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type float.
$actual | ||
string | $message |
assertIsNotInt | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type int.
$actual | ||
string | $message |
assertIsNotIterable | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type iterable.
$actual | ||
string | $message |
assertIsNotNumeric | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type numeric.
$actual | ||
string | $message |
assertIsNotObject | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type object.
$actual | ||
string | $message |
assertIsNotReadable | ( | $filename, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file/dir exists and is not readable.
string | $filename | |
string | $message |
assertIsNotResource | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type resource.
$actual | ||
string | $message |
assertIsNotScalar | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type scalar.
$actual | ||
string | $message |
assertIsNotString | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of type string.
$actual | ||
string | $message |
assertIsNotWritable | ( | $filename, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file/dir exists and is not writable.
$filename | ||
string | $message |
assertIsNumeric | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type numeric.
$actual | ||
string | $message |
assertIsObject | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type object.
$actual | ||
string | $message |
assertIsReadable | ( | $filename, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file/dir is readable.
$filename | ||
string | $message |
assertIsResource | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type resource.
$actual | ||
string | $message |
assertIsScalar | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type scalar.
$actual | ||
string | $message |
assertIsString | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is of type string.
$actual | ||
string | $message |
assertIsWritable | ( | $filename, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a file/dir exists and is writable.
$filename | ||
string | $message |
assertJson | ( | $actualJson, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string is a valid JSON string.
string | $actualJson | |
string | $message |
assertJsonFileEqualsJsonFile | ( | $expectedFile, | |
$actualFile, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two JSON files are equal.
string | $expectedFile | |
string | $actualFile | |
string | $message |
assertJsonFileNotEqualsJsonFile | ( | $expectedFile, | |
$actualFile, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two JSON files are not equal.
string | $expectedFile | |
string | $actualFile | |
string | $message |
assertJsonStringEqualsJsonFile | ( | $expectedFile, | |
$actualJson, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the generated JSON encoded object and the content of the given file are equal.
string | $expectedFile | |
string | $actualJson | |
string | $message |
assertJsonStringEqualsJsonString | ( | $expectedJson, | |
$actualJson, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two given JSON encoded objects or arrays are equal.
string | $expectedJson | |
string | $actualJson | |
string | $message |
assertJsonStringNotEqualsJsonFile | ( | $expectedFile, | |
$actualJson, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the generated JSON encoded object and the content of the given file are not equal.
string | $expectedFile | |
string | $actualJson | |
string | $message |
assertJsonStringNotEqualsJsonString | ( | $expectedJson, | |
$actualJson, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two given JSON encoded objects or arrays are not equal.
string | $expectedJson | |
string | $actualJson | |
string | $message |
assertLessOrEquals | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a value is smaller than or equal to another value.
$expected | ||
$actual | ||
string | $message |
assertLessThan | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a value is smaller than another value.
$expected | ||
$actual | ||
string | $message |
assertLessThanOrEqual | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a value is smaller than or equal to another value.
$expected | ||
$actual | ||
string | $message |
assertMatchesRegularExpression | ( | $pattern, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string matches a given regular expression.
string | $pattern | |
string | $string | |
string | $message |
assertNan | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is nan.
$actual | ||
string | $message |
assertNotContains | ( | $needle, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a haystack does not contain a needle.
$needle | ||
$haystack | ||
string | $message |
assertNotContainsEquals | ( | $needle, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
assertNotContainsOnly | ( | $type, | |
$haystack, | |||
$isNativeType = NULL , |
|||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a haystack does not contain only values of a given type.
string | $type | |
$haystack | ||
bool | null | $isNativeType | |
string | $message |
assertNotCount | ( | $expectedCount, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts the number of elements of an array, Countable or Traversable.
int | $expectedCount | |
Countable | iterable | $haystack | |
string | $message |
assertNotEmpty | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not empty.
$actual | ||
string | $message |
assertNotEquals | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables are not equal.
$expected | ||
$actual | ||
string | $message |
assertNotEqualsCanonicalizing | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables are not equal (canonicalizing).
$expected | ||
$actual | ||
string | $message |
assertNotEqualsIgnoringCase | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables are not equal (ignoring case).
$expected | ||
$actual | ||
string | $message |
assertNotEqualsWithDelta | ( | $expected, | |
$actual, | |||
$delta, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables are not equal (with delta).
$expected | ||
$actual | ||
float | $delta | |
string | $message |
assertNotFalse | ( | $condition, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a condition is not false.
$condition | ||
string | $message |
assertNotInstanceOf | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not of a given type.
$expected | ||
$actual | ||
string | $message |
assertNotNull | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is not null.
$actual | ||
string | $message |
assertNotRegExp | ( | $pattern, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string does not match a given regular expression.
string | $pattern | |
string | $string | |
string | $message |
assertNotSame | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables do not have the same type and value.
$expected | ||
$actual | ||
string | $message |
assertNotSameSize | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Assert that the size of two arrays (or Countable
or Traversable
objects) is not the same.
Countable | iterable | $expected | |
Countable | iterable | $actual | |
string | $message |
assertNotTrue | ( | $condition, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a condition is not true.
$condition | ||
string | $message |
assertNull | ( | $actual, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a variable is null.
$actual | ||
string | $message |
assertObjectHasAttribute | ( | $attributeName, | |
$object, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that an object has a specified attribute.
string | $attributeName | |
object | $object | |
string | $message |
assertObjectNotHasAttribute | ( | $attributeName, | |
$object, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that an object does not have a specified attribute.
string | $attributeName | |
object | $object | |
string | $message |
assertRegExp | ( | $pattern, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string matches a given regular expression.
string | $pattern | |
string | $string | |
string | $message |
assertSame | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two variables have the same type and value.
$expected | ||
$actual | ||
string | $message |
assertSameSize | ( | $expected, | |
$actual, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Assert that the size of two arrays (or Countable
or Traversable
objects) is the same.
Countable | iterable | $expected | |
Countable | iterable | $actual | |
string | $message |
assertStringContainsString | ( | $needle, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
string | $needle | |
string | $haystack | |
string | $message |
assertStringContainsStringIgnoringCase | ( | $needle, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
assertStringEndsNotWith | ( | $suffix, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string ends not with a given suffix.
string | $suffix | |
string | $string | |
string | $message |
assertStringEndsWith | ( | $suffix, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string ends with a given suffix.
string | $suffix | |
string | $string | |
string | $message |
assertStringEqualsFile | ( | $expectedFile, | |
$actualString, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of a string is equal to the contents of a file.
string | $expectedFile | |
string | $actualString | |
string | $message |
assertStringEqualsFileCanonicalizing | ( | $expectedFile, | |
$actualString, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of a string is equal to the contents of a file (canonicalizing).
string | $expectedFile | |
string | $actualString | |
string | $message |
assertStringEqualsFileIgnoringCase | ( | $expectedFile, | |
$actualString, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of a string is equal to the contents of a file (ignoring case).
string | $expectedFile | |
string | $actualString | |
string | $message |
assertStringMatchesFormat | ( | $format, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string matches a given format string.
string | $format | |
string | $string | |
string | $message |
assertStringMatchesFormatFile | ( | $formatFile, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string matches a given format file.
string | $formatFile | |
string | $string | |
string | $message |
assertStringNotContainsString | ( | $needle, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
string | $needle | |
string | $haystack | |
string | $message |
assertStringNotContainsStringIgnoringCase | ( | $needle, | |
$haystack, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
string | $needle | |
string | $haystack | |
string | $message |
assertStringNotEqualsFile | ( | $expectedFile, | |
$actualString, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of a string is not equal to the contents of a file.
string | $expectedFile | |
string | $actualString | |
string | $message |
assertStringNotEqualsFileCanonicalizing | ( | $expectedFile, | |
$actualString, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of a string is not equal to the contents of a file (canonicalizing).
string | $expectedFile | |
string | $actualString | |
string | $message |
assertStringNotEqualsFileIgnoringCase | ( | $expectedFile, | |
$actualString, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that the contents of a string is not equal to the contents of a file (ignoring case).
string | $expectedFile | |
string | $actualString | |
string | $message |
assertStringNotMatchesFormat | ( | $format, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string does not match a given format string.
string | $format | |
string | $string | |
string | $message |
assertStringNotMatchesFormatFile | ( | $formatFile, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string does not match a given format string.
string | $formatFile | |
string | $string | |
string | $message |
assertStringStartsNotWith | ( | $prefix, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string starts not with a given prefix.
string | $prefix | |
string | $string | |
string | $message |
assertStringStartsWith | ( | $prefix, | |
$string, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a string starts with a given prefix.
string | $prefix | |
string | $string | |
string | $message |
assertThat | ( | $value, | |
$constraint, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Evaluates a PHPUnit matcher object.
$value | ||
Constraint | $constraint | |
string | $message |
assertThatItsNot | ( | $value, | |
$constraint, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Evaluates a PHPUnit matcher object.
$value | ||
Constraint | $constraint | |
string | $message |
assertTrue | ( | $condition, | |
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that a condition is true.
$condition | ||
string | $message |
assertXmlFileEqualsXmlFile | ( | $expectedFile, | |
$actualFile, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two XML files are equal.
string | $expectedFile | |
string | $actualFile | |
string | $message |
assertXmlFileNotEqualsXmlFile | ( | $expectedFile, | |
$actualFile, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two XML files are not equal.
string | $expectedFile | |
string | $actualFile | |
string | $message |
assertXmlStringEqualsXmlFile | ( | $expectedFile, | |
$actualXml, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two XML documents are equal.
string | $expectedFile | |
DOMDocument | string | $actualXml | |
string | $message |
assertXmlStringEqualsXmlString | ( | $expectedXml, | |
$actualXml, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two XML documents are equal.
DOMDocument | string | $expectedXml | |
DOMDocument | string | $actualXml | |
string | $message |
assertXmlStringNotEqualsXmlFile | ( | $expectedFile, | |
$actualXml, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two XML documents are not equal.
string | $expectedFile | |
DOMDocument | string | $actualXml | |
string | $message |
assertXmlStringNotEqualsXmlString | ( | $expectedXml, | |
$actualXml, | |||
$message = "" |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Asserts that two XML documents are not equal.
DOMDocument | string | $expectedXml | |
DOMDocument | string | $actualXml | |
string | $message |
_generated\createApp | ( | $credentials, | |
$method, | |||
$pattern, | |||
$callable, | |||
$name = NULL |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
array | $credentials | |
string | $method | |
string | $pattern | |
callable | $callable | |
?string | $name |
_generated\createRequestBuilder | ( | $credentials = NULL | ) |
[!] Method is generated. Documentation taken from corresponding module.
array | null | $credentials |
expectException | ( | $exception, | |
$callback | |||
) |
[!] Method is generated. Documentation taken from corresponding module.
Handles and checks exception called inside callback function. Either exception class name or exception instance should be provided.
```php <?php $I->expectException(MyException::class, function() { $this->doSomethingBad(); });
$I->expectException(new MyException(), function() { $this->doSomethingBad(); }); ``` If you want to check message or exception code, you can pass them with exception instance: ```php <?php // will check that exception MyException is thrown with "Don't do bad things" message $I->expectException(new MyException("Don't do bad things"), function() { $this->doSomethingBad(); }); ```
\Exception | string | $exception | |
callable | $callback |
[!] Method is generated. Documentation taken from corresponding module.
Handles and checks exception called inside callback function. Either exception class name or exception instance should be provided.
```php <?php $I->expectException(MyException::class, function() { $this->doSomethingBad(); });
$I->expectException(new MyException(), function() { $this->doSomethingBad(); }); ``` If you want to check message or exception code, you can pass them with exception instance: ```php <?php // will check that exception MyException is thrown with "Don't do bad things" message $I->expectException(new MyException("Don't do bad things"), function() { $this->doSomethingBad(); }); ```
\Exception | string | $exception | |
callable | $callback |
expectThrowable | ( | $throwable, | |
$callback | |||
) |
[!] Method is generated. Documentation taken from corresponding module.
Handles and checks throwables (Exceptions/Errors) called inside the callback function. Either throwable class name or throwable instance should be provided.
```php <?php $I->expectThrowable(MyThrowable::class, function() { $this->doSomethingBad(); });
$I->expectThrowable(new MyException(), function() { $this->doSomethingBad(); }); ``` If you want to check message or throwable code, you can pass them with throwable instance: ```php <?php // will check that throwable MyError is thrown with "Don't do bad things" message $I->expectThrowable(new MyError("Don't do bad things"), function() { $this->doSomethingBad(); }); ```
\Throwable | string | $throwable | |
callable | $callback |
fail | ( | $message = "" | ) |
[!] Method is generated. Documentation taken from corresponding module.
Fails a test with the given message.
string | $message |
_generated\getCredentialsForRoot | ( | ) |
[!] Method is generated. Documentation taken from corresponding module.
_generated\getCredentialsForTestAdmin | ( | ) |
[!] Method is generated. Documentation taken from corresponding module.
_generated\getCredentialsForTestAutor | ( | ) |
[!] Method is generated. Documentation taken from corresponding module.
_generated\getCredentialsForTestDozent | ( | ) |
[!] Method is generated. Documentation taken from corresponding module.
markTestIncomplete | ( | $message = "" | ) |
[!] Method is generated. Documentation taken from corresponding module.
Mark the test as incomplete.
string | $message |
markTestSkipped | ( | $message = "" | ) |
[!] Method is generated. Documentation taken from corresponding module.
Mark the test as skipped.
string | $message |
_generated\sendMockRequest | ( | $app, | |
\Slim\Psr7\Request | $request | ||
) |
[!] Method is generated. Documentation taken from corresponding module.
\Slim\App | $app |
_generated\storeJsonMD | ( | string | $filename, |
\Psr\Http\Message\ResponseInterface | $response, | ||
?int | $limit = NULL , |
||
?string | $ellipsis = NULL |
||
) |
[!] Method is generated. Documentation taken from corresponding module.
_generated\withPHPLib | ( | $credentials, | |
$function | |||
) |
[!] Method is generated. Documentation taken from corresponding module.
array | $credentials | |
callable | $function |
(PHPMD.Superglobals)
trait FunctionalTesterActions |
trait JsonapiTesterActions |
trait UnitTesterActions |