Stud.IP  5.4
_generated Namespace Reference

Functions

 expectException ($exception, $callback)
 
 expectThrowable ($throwable, $callback)
 
 assertFileNotExists ($filename, $message="")
 
 assertGreaterOrEquals ($expected, $actual, $message="")
 
 assertIsEmpty ($actual, $message="")
 
 assertLessOrEquals ($expected, $actual, $message="")
 
 assertNotRegExp ($pattern, $string, $message="")
 
 assertRegExp ($pattern, $string, $message="")
 
 assertThatItsNot ($value, $constraint, $message="")
 
 assertArrayHasKey ($key, $array, $message="")
 
 assertArrayNotHasKey ($key, $array, $message="")
 
 assertClassHasAttribute ($attributeName, $className, $message="")
 
 assertClassHasStaticAttribute ($attributeName, $className, $message="")
 
 assertClassNotHasAttribute ($attributeName, $className, $message="")
 
 assertClassNotHasStaticAttribute ($attributeName, $className, $message="")
 
 assertContains ($needle, $haystack, $message="")
 
 assertContainsEquals ($needle, $haystack, $message="")
 
 assertContainsOnly ($type, $haystack, $isNativeType=NULL, $message="")
 
 assertContainsOnlyInstancesOf ($className, $haystack, $message="")
 
 assertCount ($expectedCount, $haystack, $message="")
 
 assertDirectoryDoesNotExist ($directory, $message="")
 
 assertDirectoryExists ($directory, $message="")
 
 assertDirectoryIsNotReadable ($directory, $message="")
 
 assertDirectoryIsNotWritable ($directory, $message="")
 
 assertDirectoryIsReadable ($directory, $message="")
 
 assertDirectoryIsWritable ($directory, $message="")
 
 assertDoesNotMatchRegularExpression ($pattern, $string, $message="")
 
 assertEmpty ($actual, $message="")
 
 assertEquals ($expected, $actual, $message="")
 
 assertEqualsCanonicalizing ($expected, $actual, $message="")
 
 assertEqualsIgnoringCase ($expected, $actual, $message="")
 
 assertEqualsWithDelta ($expected, $actual, $delta, $message="")
 
 assertFalse ($condition, $message="")
 
 assertFileDoesNotExist ($filename, $message="")
 
 assertFileEquals ($expected, $actual, $message="")
 
 assertFileEqualsCanonicalizing ($expected, $actual, $message="")
 
 assertFileEqualsIgnoringCase ($expected, $actual, $message="")
 
 assertFileExists ($filename, $message="")
 
 assertFileIsNotReadable ($file, $message="")
 
 assertFileIsNotWritable ($file, $message="")
 
 assertFileIsReadable ($file, $message="")
 
 assertFileIsWritable ($file, $message="")
 
 assertFileNotEquals ($expected, $actual, $message="")
 
 assertFileNotEqualsCanonicalizing ($expected, $actual, $message="")
 
 assertFileNotEqualsIgnoringCase ($expected, $actual, $message="")
 
 assertFinite ($actual, $message="")
 
 assertGreaterThan ($expected, $actual, $message="")
 
 assertGreaterThanOrEqual ($expected, $actual, $message="")
 
 assertInfinite ($actual, $message="")
 
 assertInstanceOf ($expected, $actual, $message="")
 
 assertIsArray ($actual, $message="")
 
 assertIsBool ($actual, $message="")
 
 assertIsCallable ($actual, $message="")
 
 assertIsClosedResource ($actual, $message="")
 
 assertIsFloat ($actual, $message="")
 
 assertIsInt ($actual, $message="")
 
 assertIsIterable ($actual, $message="")
 
 assertIsNotArray ($actual, $message="")
 
 assertIsNotBool ($actual, $message="")
 
 assertIsNotCallable ($actual, $message="")
 
 assertIsNotClosedResource ($actual, $message="")
 
 assertIsNotFloat ($actual, $message="")
 
 assertIsNotInt ($actual, $message="")
 
 assertIsNotIterable ($actual, $message="")
 
 assertIsNotNumeric ($actual, $message="")
 
 assertIsNotObject ($actual, $message="")
 
 assertIsNotReadable ($filename, $message="")
 
 assertIsNotResource ($actual, $message="")
 
 assertIsNotScalar ($actual, $message="")
 
 assertIsNotString ($actual, $message="")
 
 assertIsNotWritable ($filename, $message="")
 
 assertIsNumeric ($actual, $message="")
 
 assertIsObject ($actual, $message="")
 
 assertIsReadable ($filename, $message="")
 
 assertIsResource ($actual, $message="")
 
 assertIsScalar ($actual, $message="")
 
 assertIsString ($actual, $message="")
 
 assertIsWritable ($filename, $message="")
 
 assertJson ($actualJson, $message="")
 
 assertJsonFileEqualsJsonFile ($expectedFile, $actualFile, $message="")
 
 assertJsonFileNotEqualsJsonFile ($expectedFile, $actualFile, $message="")
 
 assertJsonStringEqualsJsonFile ($expectedFile, $actualJson, $message="")
 
 assertJsonStringEqualsJsonString ($expectedJson, $actualJson, $message="")
 
 assertJsonStringNotEqualsJsonFile ($expectedFile, $actualJson, $message="")
 
 assertJsonStringNotEqualsJsonString ($expectedJson, $actualJson, $message="")
 
 assertLessThan ($expected, $actual, $message="")
 
 assertLessThanOrEqual ($expected, $actual, $message="")
 
 assertMatchesRegularExpression ($pattern, $string, $message="")
 
 assertNan ($actual, $message="")
 
 assertNotContains ($needle, $haystack, $message="")
 
 assertNotContainsEquals ($needle, $haystack, $message="")
 
 assertNotContainsOnly ($type, $haystack, $isNativeType=NULL, $message="")
 
 assertNotCount ($expectedCount, $haystack, $message="")
 
 assertNotEmpty ($actual, $message="")
 
 assertNotEquals ($expected, $actual, $message="")
 
 assertNotEqualsCanonicalizing ($expected, $actual, $message="")
 
 assertNotEqualsIgnoringCase ($expected, $actual, $message="")
 
 assertNotEqualsWithDelta ($expected, $actual, $delta, $message="")
 
 assertNotFalse ($condition, $message="")
 
 assertNotInstanceOf ($expected, $actual, $message="")
 
 assertNotNull ($actual, $message="")
 
 assertNotSame ($expected, $actual, $message="")
 
 assertNotSameSize ($expected, $actual, $message="")
 
 assertNotTrue ($condition, $message="")
 
 assertNull ($actual, $message="")
 
 assertObjectHasAttribute ($attributeName, $object, $message="")
 
 assertObjectNotHasAttribute ($attributeName, $object, $message="")
 
 assertSame ($expected, $actual, $message="")
 
 assertSameSize ($expected, $actual, $message="")
 
 assertStringContainsString ($needle, $haystack, $message="")
 
 assertStringContainsStringIgnoringCase ($needle, $haystack, $message="")
 
 assertStringEndsNotWith ($suffix, $string, $message="")
 
 assertStringEndsWith ($suffix, $string, $message="")
 
 assertStringEqualsFile ($expectedFile, $actualString, $message="")
 
 assertStringEqualsFileCanonicalizing ($expectedFile, $actualString, $message="")
 
 assertStringEqualsFileIgnoringCase ($expectedFile, $actualString, $message="")
 
 assertStringMatchesFormat ($format, $string, $message="")
 
 assertStringMatchesFormatFile ($formatFile, $string, $message="")
 
 assertStringNotContainsString ($needle, $haystack, $message="")
 
 assertStringNotContainsStringIgnoringCase ($needle, $haystack, $message="")
 
 assertStringNotEqualsFile ($expectedFile, $actualString, $message="")
 
 assertStringNotEqualsFileCanonicalizing ($expectedFile, $actualString, $message="")
 
 assertStringNotEqualsFileIgnoringCase ($expectedFile, $actualString, $message="")
 
 assertStringNotMatchesFormat ($format, $string, $message="")
 
 assertStringNotMatchesFormatFile ($formatFile, $string, $message="")
 
 assertStringStartsNotWith ($prefix, $string, $message="")
 
 assertStringStartsWith ($prefix, $string, $message="")
 
 assertThat ($value, $constraint, $message="")
 
 assertTrue ($condition, $message="")
 
 assertXmlFileEqualsXmlFile ($expectedFile, $actualFile, $message="")
 
 assertXmlFileNotEqualsXmlFile ($expectedFile, $actualFile, $message="")
 
 assertXmlStringEqualsXmlFile ($expectedFile, $actualXml, $message="")
 
 assertXmlStringEqualsXmlString ($expectedXml, $actualXml, $message="")
 
 assertXmlStringNotEqualsXmlFile ($expectedFile, $actualXml, $message="")
 
 assertXmlStringNotEqualsXmlString ($expectedXml, $actualXml, $message="")
 
 fail ($message="")
 
 markTestIncomplete ($message="")
 
 markTestSkipped ($message="")
 
 getCredentialsForTestAutor ()
 
 getCredentialsForTestDozent ()
 
 getCredentialsForTestAdmin ()
 
 getCredentialsForRoot ()
 
 withPHPLib ($credentials, $function)
 
 createApp ($credentials, $method, $pattern, $callable, $name=NULL)
 
 createRequestBuilder ($credentials=NULL)
 
 sendMockRequest ($app, \Slim\Psr7\Request $request)
 
 storeJsonMD (string $filename, \Psr\Http\Message\ResponseInterface $response, ?int $limit=NULL, ?string $ellipsis=NULL)
 

Variables

trait FunctionalTesterActions
 
trait JsonapiTesterActions
 
trait UnitTesterActions
 

Function Documentation

◆ assertArrayHasKey()

assertArrayHasKey (   $key,
  $array,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that an array has a specified key.

Parameters
int | string$key
array | ArrayAccess$array
string$message
See also
assertArrayHasKey()

◆ assertArrayNotHasKey()

assertArrayNotHasKey (   $key,
  $array,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that an array does not have a specified key.

Parameters
int | string$key
array | ArrayAccess$array
string$message
See also
assertArrayNotHasKey()

◆ assertClassHasAttribute()

assertClassHasAttribute (   $attributeName,
  $className,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a class has a specified attribute.

Parameters
string$attributeName
string$className
string$message
See also
assertClassHasAttribute()

◆ assertClassHasStaticAttribute()

assertClassHasStaticAttribute (   $attributeName,
  $className,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a class has a specified static attribute.

Parameters
string$attributeName
string$className
string$message
See also
assertClassHasStaticAttribute()

◆ assertClassNotHasAttribute()

assertClassNotHasAttribute (   $attributeName,
  $className,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a class does not have a specified attribute.

Parameters
string$attributeName
string$className
string$message
See also
assertClassNotHasAttribute()

◆ assertClassNotHasStaticAttribute()

assertClassNotHasStaticAttribute (   $attributeName,
  $className,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a class does not have a specified static attribute.

Parameters
string$attributeName
string$className
string$message
See also
assertClassNotHasStaticAttribute()

◆ assertContains()

assertContains (   $needle,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a haystack contains a needle.

Parameters
$needle
$haystack
string$message
See also
assertContains()

◆ assertContainsEquals()

assertContainsEquals (   $needle,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Parameters
$needle
$haystack
string$message
See also
assertContainsEquals()

◆ assertContainsOnly()

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.

Parameters
string$type
$haystack
bool | null$isNativeType
string$message
See also
assertContainsOnly()

◆ assertContainsOnlyInstancesOf()

assertContainsOnlyInstancesOf (   $className,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a haystack contains only instances of a given class name.

Parameters
string$className
$haystack
string$message
See also
assertContainsOnlyInstancesOf()

◆ assertCount()

assertCount (   $expectedCount,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts the number of elements of an array, Countable or Traversable.

Parameters
int$expectedCount
Countable | iterable$haystack
string$message
See also
assertCount()

◆ assertDirectoryDoesNotExist()

assertDirectoryDoesNotExist (   $directory,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a directory does not exist.

Parameters
string$directory
string$message
See also
assertDirectoryDoesNotExist()

◆ assertDirectoryExists()

assertDirectoryExists (   $directory,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a directory exists.

Parameters
string$directory
string$message
See also
assertDirectoryExists()

◆ assertDirectoryIsNotReadable()

assertDirectoryIsNotReadable (   $directory,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a directory exists and is not readable.

Parameters
string$directory
string$message
See also
assertDirectoryIsNotReadable()

◆ assertDirectoryIsNotWritable()

assertDirectoryIsNotWritable (   $directory,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a directory exists and is not writable.

Parameters
string$directory
string$message
See also
assertDirectoryIsNotWritable()

◆ assertDirectoryIsReadable()

assertDirectoryIsReadable (   $directory,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a directory exists and is readable.

Parameters
string$directory
string$message
See also
assertDirectoryIsReadable()

◆ assertDirectoryIsWritable()

assertDirectoryIsWritable (   $directory,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a directory exists and is writable.

Parameters
string$directory
string$message
See also
assertDirectoryIsWritable()

◆ assertDoesNotMatchRegularExpression()

assertDoesNotMatchRegularExpression (   $pattern,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string does not match a given regular expression.

Parameters
string$pattern
string$string
string$message
See also
assertDoesNotMatchRegularExpression()

◆ assertEmpty()

assertEmpty (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is empty.

Parameters
$actual
string$message
See also
assertEmpty()

◆ assertEquals()

assertEquals (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables are equal.

Parameters
$expected
$actual
string$message
See also
assertEquals()

◆ assertEqualsCanonicalizing()

assertEqualsCanonicalizing (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables are equal (canonicalizing).

Parameters
$expected
$actual
string$message
See also
assertEqualsCanonicalizing()

◆ assertEqualsIgnoringCase()

assertEqualsIgnoringCase (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables are equal (ignoring case).

Parameters
$expected
$actual
string$message
See also
assertEqualsIgnoringCase()

◆ assertEqualsWithDelta()

assertEqualsWithDelta (   $expected,
  $actual,
  $delta,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables are equal (with delta).

Parameters
$expected
$actual
float$delta
string$message
See also
assertEqualsWithDelta()

◆ assertFalse()

assertFalse (   $condition,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a condition is false.

Parameters
$condition
string$message
See also
assertFalse()

◆ assertFileDoesNotExist()

assertFileDoesNotExist (   $filename,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file does not exist.

Parameters
string$filename
string$message
See also
assertFileDoesNotExist()

◆ assertFileEquals()

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.

Parameters
string$expected
string$actual
string$message
See also
assertFileEquals()

◆ assertFileEqualsCanonicalizing()

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).

Parameters
$expected
$actual
string$message
See also
assertFileEqualsCanonicalizing()

◆ assertFileEqualsIgnoringCase()

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).

Parameters
$expected
$actual
string$message
See also
assertFileEqualsIgnoringCase()

◆ assertFileExists()

assertFileExists (   $filename,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file exists.

Parameters
string$filename
string$message
See also
assertFileExists()

◆ assertFileIsNotReadable()

assertFileIsNotReadable (   $file,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file exists and is not readable.

Parameters
string$file
string$message
See also
assertFileIsNotReadable()

◆ assertFileIsNotWritable()

assertFileIsNotWritable (   $file,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file exists and is not writable.

Parameters
string$file
string$message
See also
assertFileIsNotWritable()

◆ assertFileIsReadable()

assertFileIsReadable (   $file,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file exists and is readable.

Parameters
string$file
string$message
See also
assertFileIsReadable()

◆ assertFileIsWritable()

assertFileIsWritable (   $file,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file exists and is writable.

Parameters
string$file
string$message
See also
assertFileIsWritable()

◆ assertFileNotEquals()

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.

Parameters
$expected
$actual
string$message
See also
assertFileNotEquals()

◆ assertFileNotEqualsCanonicalizing()

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).

Parameters
$expected
$actual
string$message
See also
assertFileNotEqualsCanonicalizing()

◆ assertFileNotEqualsIgnoringCase()

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).

Parameters
$expected
$actual
string$message
See also
assertFileNotEqualsIgnoringCase()

◆ assertFileNotExists()

assertFileNotExists (   $filename,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file does not exist.

Parameters
string$filename
string$message
See also
assertFileNotExists()

◆ assertFinite()

assertFinite (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is finite.

Parameters
$actual
string$message
See also
assertFinite()

◆ assertGreaterOrEquals()

assertGreaterOrEquals (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a value is greater than or equal to another value.

Parameters
$expected
$actual
string$message
See also
assertGreaterOrEquals()

◆ assertGreaterThan()

assertGreaterThan (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a value is greater than another value.

Parameters
$expected
$actual
string$message
See also
assertGreaterThan()

◆ assertGreaterThanOrEqual()

assertGreaterThanOrEqual (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a value is greater than or equal to another value.

Parameters
$expected
$actual
string$message
See also
assertGreaterThanOrEqual()

◆ assertInfinite()

assertInfinite (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is infinite.

Parameters
$actual
string$message
See also
assertInfinite()

◆ assertInstanceOf()

assertInstanceOf (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of a given type.

Parameters
$expected
$actual
string$message
See also
assertInstanceOf()

◆ assertIsArray()

assertIsArray (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type array.

Parameters
$actual
string$message
See also
assertIsArray()

◆ assertIsBool()

assertIsBool (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type bool.

Parameters
$actual
string$message
See also
assertIsBool()

◆ assertIsCallable()

assertIsCallable (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type callable.

Parameters
$actual
string$message
See also
assertIsCallable()

◆ assertIsClosedResource()

assertIsClosedResource (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type resource and is closed.

Parameters
$actual
string$message
See also
assertIsClosedResource()

◆ assertIsEmpty()

assertIsEmpty (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is empty.

Parameters
$actual
string$message
See also
assertIsEmpty()

◆ assertIsFloat()

assertIsFloat (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type float.

Parameters
$actual
string$message
See also
assertIsFloat()

◆ assertIsInt()

assertIsInt (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type int.

Parameters
$actual
string$message
See also
assertIsInt()

◆ assertIsIterable()

assertIsIterable (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type iterable.

Parameters
$actual
string$message
See also
assertIsIterable()

◆ assertIsNotArray()

assertIsNotArray (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type array.

Parameters
$actual
string$message
See also
assertIsNotArray()

◆ assertIsNotBool()

assertIsNotBool (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type bool.

Parameters
$actual
string$message
See also
assertIsNotBool()

◆ assertIsNotCallable()

assertIsNotCallable (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type callable.

Parameters
$actual
string$message
See also
assertIsNotCallable()

◆ assertIsNotClosedResource()

assertIsNotClosedResource (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type resource.

Parameters
$actual
string$message
See also
assertIsNotClosedResource()

◆ assertIsNotFloat()

assertIsNotFloat (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type float.

Parameters
$actual
string$message
See also
assertIsNotFloat()

◆ assertIsNotInt()

assertIsNotInt (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type int.

Parameters
$actual
string$message
See also
assertIsNotInt()

◆ assertIsNotIterable()

assertIsNotIterable (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type iterable.

Parameters
$actual
string$message
See also
assertIsNotIterable()

◆ assertIsNotNumeric()

assertIsNotNumeric (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type numeric.

Parameters
$actual
string$message
See also
assertIsNotNumeric()

◆ assertIsNotObject()

assertIsNotObject (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type object.

Parameters
$actual
string$message
See also
assertIsNotObject()

◆ assertIsNotReadable()

assertIsNotReadable (   $filename,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file/dir exists and is not readable.

Parameters
string$filename
string$message
See also
assertIsNotReadable()

◆ assertIsNotResource()

assertIsNotResource (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type resource.

Parameters
$actual
string$message
See also
assertIsNotResource()

◆ assertIsNotScalar()

assertIsNotScalar (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type scalar.

Parameters
$actual
string$message
See also
assertIsNotScalar()

◆ assertIsNotString()

assertIsNotString (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of type string.

Parameters
$actual
string$message
See also
assertIsNotString()

◆ assertIsNotWritable()

assertIsNotWritable (   $filename,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file/dir exists and is not writable.

Parameters
$filename
string$message
See also
assertIsNotWritable()

◆ assertIsNumeric()

assertIsNumeric (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type numeric.

Parameters
$actual
string$message
See also
assertIsNumeric()

◆ assertIsObject()

assertIsObject (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type object.

Parameters
$actual
string$message
See also
assertIsObject()

◆ assertIsReadable()

assertIsReadable (   $filename,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file/dir is readable.

Parameters
$filename
string$message
See also
assertIsReadable()

◆ assertIsResource()

assertIsResource (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type resource.

Parameters
$actual
string$message
See also
assertIsResource()

◆ assertIsScalar()

assertIsScalar (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type scalar.

Parameters
$actual
string$message
See also
assertIsScalar()

◆ assertIsString()

assertIsString (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is of type string.

Parameters
$actual
string$message
See also
assertIsString()

◆ assertIsWritable()

assertIsWritable (   $filename,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a file/dir exists and is writable.

Parameters
$filename
string$message
See also
assertIsWritable()

◆ assertJson()

assertJson (   $actualJson,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string is a valid JSON string.

Parameters
string$actualJson
string$message
See also
assertJson()

◆ assertJsonFileEqualsJsonFile()

assertJsonFileEqualsJsonFile (   $expectedFile,
  $actualFile,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two JSON files are equal.

Parameters
string$expectedFile
string$actualFile
string$message
See also
assertJsonFileEqualsJsonFile()

◆ assertJsonFileNotEqualsJsonFile()

assertJsonFileNotEqualsJsonFile (   $expectedFile,
  $actualFile,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two JSON files are not equal.

Parameters
string$expectedFile
string$actualFile
string$message
See also
assertJsonFileNotEqualsJsonFile()

◆ assertJsonStringEqualsJsonFile()

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.

Parameters
string$expectedFile
string$actualJson
string$message
See also
assertJsonStringEqualsJsonFile()

◆ assertJsonStringEqualsJsonString()

assertJsonStringEqualsJsonString (   $expectedJson,
  $actualJson,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two given JSON encoded objects or arrays are equal.

Parameters
string$expectedJson
string$actualJson
string$message
See also
assertJsonStringEqualsJsonString()

◆ assertJsonStringNotEqualsJsonFile()

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.

Parameters
string$expectedFile
string$actualJson
string$message
See also
assertJsonStringNotEqualsJsonFile()

◆ assertJsonStringNotEqualsJsonString()

assertJsonStringNotEqualsJsonString (   $expectedJson,
  $actualJson,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two given JSON encoded objects or arrays are not equal.

Parameters
string$expectedJson
string$actualJson
string$message
See also
assertJsonStringNotEqualsJsonString()

◆ assertLessOrEquals()

assertLessOrEquals (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a value is smaller than or equal to another value.

Parameters
$expected
$actual
string$message
See also
assertLessOrEquals()

◆ assertLessThan()

assertLessThan (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a value is smaller than another value.

Parameters
$expected
$actual
string$message
See also
assertLessThan()

◆ assertLessThanOrEqual()

assertLessThanOrEqual (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a value is smaller than or equal to another value.

Parameters
$expected
$actual
string$message
See also
assertLessThanOrEqual()

◆ assertMatchesRegularExpression()

assertMatchesRegularExpression (   $pattern,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string matches a given regular expression.

Parameters
string$pattern
string$string
string$message
See also
assertMatchesRegularExpression()

◆ assertNan()

assertNan (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is nan.

Parameters
$actual
string$message
See also
assertNan()

◆ assertNotContains()

assertNotContains (   $needle,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a haystack does not contain a needle.

Parameters
$needle
$haystack
string$message
See also
assertNotContains()

◆ assertNotContainsEquals()

assertNotContainsEquals (   $needle,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

See also
assertNotContainsEquals()

◆ assertNotContainsOnly()

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.

Parameters
string$type
$haystack
bool | null$isNativeType
string$message
See also
assertNotContainsOnly()

◆ assertNotCount()

assertNotCount (   $expectedCount,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts the number of elements of an array, Countable or Traversable.

Parameters
int$expectedCount
Countable | iterable$haystack
string$message
See also
assertNotCount()

◆ assertNotEmpty()

assertNotEmpty (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not empty.

Parameters
$actual
string$message
See also
assertNotEmpty()

◆ assertNotEquals()

assertNotEquals (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables are not equal.

Parameters
$expected
$actual
string$message
See also
assertNotEquals()

◆ assertNotEqualsCanonicalizing()

assertNotEqualsCanonicalizing (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables are not equal (canonicalizing).

Parameters
$expected
$actual
string$message
See also
assertNotEqualsCanonicalizing()

◆ assertNotEqualsIgnoringCase()

assertNotEqualsIgnoringCase (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables are not equal (ignoring case).

Parameters
$expected
$actual
string$message
See also
assertNotEqualsIgnoringCase()

◆ assertNotEqualsWithDelta()

assertNotEqualsWithDelta (   $expected,
  $actual,
  $delta,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables are not equal (with delta).

Parameters
$expected
$actual
float$delta
string$message
See also
assertNotEqualsWithDelta()

◆ assertNotFalse()

assertNotFalse (   $condition,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a condition is not false.

Parameters
$condition
string$message
See also
assertNotFalse()

◆ assertNotInstanceOf()

assertNotInstanceOf (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not of a given type.

Parameters
$expected
$actual
string$message
See also
assertNotInstanceOf()

◆ assertNotNull()

assertNotNull (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is not null.

Parameters
$actual
string$message
See also
assertNotNull()

◆ assertNotRegExp()

assertNotRegExp (   $pattern,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string does not match a given regular expression.

Parameters
string$pattern
string$string
string$message
See also
assertNotRegExp()

◆ assertNotSame()

assertNotSame (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables do not have the same type and value.

Parameters
$expected
$actual
string$message
See also
assertNotSame()

◆ assertNotSameSize()

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.

Parameters
Countable | iterable$expected
Countable | iterable$actual
string$message
See also
assertNotSameSize()

◆ assertNotTrue()

assertNotTrue (   $condition,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a condition is not true.

Parameters
$condition
string$message
See also
assertNotTrue()

◆ assertNull()

assertNull (   $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a variable is null.

Parameters
$actual
string$message
See also
assertNull()

◆ assertObjectHasAttribute()

assertObjectHasAttribute (   $attributeName,
  $object,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that an object has a specified attribute.

Parameters
string$attributeName
object$object
string$message
See also
assertObjectHasAttribute()

◆ assertObjectNotHasAttribute()

assertObjectNotHasAttribute (   $attributeName,
  $object,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that an object does not have a specified attribute.

Parameters
string$attributeName
object$object
string$message
See also
assertObjectNotHasAttribute()

◆ assertRegExp()

assertRegExp (   $pattern,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string matches a given regular expression.

Parameters
string$pattern
string$string
string$message
See also
assertRegExp()

◆ assertSame()

assertSame (   $expected,
  $actual,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two variables have the same type and value.

Parameters
$expected
$actual
string$message
See also
assertSame()

◆ assertSameSize()

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.

Parameters
Countable | iterable$expected
Countable | iterable$actual
string$message
See also
assertSameSize()

◆ assertStringContainsString()

assertStringContainsString (   $needle,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Parameters
string$needle
string$haystack
string$message
See also
assertStringContainsString()

◆ assertStringContainsStringIgnoringCase()

assertStringContainsStringIgnoringCase (   $needle,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

See also
assertStringContainsStringIgnoringCase()

◆ assertStringEndsNotWith()

assertStringEndsNotWith (   $suffix,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string ends not with a given suffix.

Parameters
string$suffix
string$string
string$message
See also
assertStringEndsNotWith()

◆ assertStringEndsWith()

assertStringEndsWith (   $suffix,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string ends with a given suffix.

Parameters
string$suffix
string$string
string$message
See also
assertStringEndsWith()

◆ assertStringEqualsFile()

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.

Parameters
string$expectedFile
string$actualString
string$message
See also
assertStringEqualsFile()

◆ assertStringEqualsFileCanonicalizing()

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).

Parameters
string$expectedFile
string$actualString
string$message
See also
assertStringEqualsFileCanonicalizing()

◆ assertStringEqualsFileIgnoringCase()

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).

Parameters
string$expectedFile
string$actualString
string$message
See also
assertStringEqualsFileIgnoringCase()

◆ assertStringMatchesFormat()

assertStringMatchesFormat (   $format,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string matches a given format string.

Parameters
string$format
string$string
string$message
See also
assertStringMatchesFormat()

◆ assertStringMatchesFormatFile()

assertStringMatchesFormatFile (   $formatFile,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string matches a given format file.

Parameters
string$formatFile
string$string
string$message
See also
assertStringMatchesFormatFile()

◆ assertStringNotContainsString()

assertStringNotContainsString (   $needle,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Parameters
string$needle
string$haystack
string$message
See also
assertStringNotContainsString()

◆ assertStringNotContainsStringIgnoringCase()

assertStringNotContainsStringIgnoringCase (   $needle,
  $haystack,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Parameters
string$needle
string$haystack
string$message
See also
assertStringNotContainsStringIgnoringCase()

◆ assertStringNotEqualsFile()

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.

Parameters
string$expectedFile
string$actualString
string$message
See also
assertStringNotEqualsFile()

◆ assertStringNotEqualsFileCanonicalizing()

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).

Parameters
string$expectedFile
string$actualString
string$message
See also
assertStringNotEqualsFileCanonicalizing()

◆ assertStringNotEqualsFileIgnoringCase()

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).

Parameters
string$expectedFile
string$actualString
string$message
See also
assertStringNotEqualsFileIgnoringCase()

◆ assertStringNotMatchesFormat()

assertStringNotMatchesFormat (   $format,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string does not match a given format string.

Parameters
string$format
string$string
string$message
See also
assertStringNotMatchesFormat()

◆ assertStringNotMatchesFormatFile()

assertStringNotMatchesFormatFile (   $formatFile,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string does not match a given format string.

Parameters
string$formatFile
string$string
string$message
See also
assertStringNotMatchesFormatFile()

◆ assertStringStartsNotWith()

assertStringStartsNotWith (   $prefix,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string starts not with a given prefix.

Parameters
string$prefix
string$string
string$message
See also
assertStringStartsNotWith()

◆ assertStringStartsWith()

assertStringStartsWith (   $prefix,
  $string,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a string starts with a given prefix.

Parameters
string$prefix
string$string
string$message
See also
assertStringStartsWith()

◆ assertThat()

assertThat (   $value,
  $constraint,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Evaluates a PHPUnit matcher object.

Parameters
$value
Constraint$constraint
string$message
See also
assertThat()

◆ assertThatItsNot()

assertThatItsNot (   $value,
  $constraint,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Evaluates a PHPUnit matcher object.

Parameters
$value
Constraint$constraint
string$message
See also
assertThatItsNot()

◆ assertTrue()

assertTrue (   $condition,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that a condition is true.

Parameters
$condition
string$message
See also
assertTrue()

◆ assertXmlFileEqualsXmlFile()

assertXmlFileEqualsXmlFile (   $expectedFile,
  $actualFile,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two XML files are equal.

Parameters
string$expectedFile
string$actualFile
string$message
See also
assertXmlFileEqualsXmlFile()

◆ assertXmlFileNotEqualsXmlFile()

assertXmlFileNotEqualsXmlFile (   $expectedFile,
  $actualFile,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two XML files are not equal.

Parameters
string$expectedFile
string$actualFile
string$message
See also
assertXmlFileNotEqualsXmlFile()

◆ assertXmlStringEqualsXmlFile()

assertXmlStringEqualsXmlFile (   $expectedFile,
  $actualXml,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two XML documents are equal.

Parameters
string$expectedFile
DOMDocument | string$actualXml
string$message
See also
assertXmlStringEqualsXmlFile()

◆ assertXmlStringEqualsXmlString()

assertXmlStringEqualsXmlString (   $expectedXml,
  $actualXml,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two XML documents are equal.

Parameters
DOMDocument | string$expectedXml
DOMDocument | string$actualXml
string$message
See also
assertXmlStringEqualsXmlString()

◆ assertXmlStringNotEqualsXmlFile()

assertXmlStringNotEqualsXmlFile (   $expectedFile,
  $actualXml,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two XML documents are not equal.

Parameters
string$expectedFile
DOMDocument | string$actualXml
string$message
See also
assertXmlStringNotEqualsXmlFile()

◆ assertXmlStringNotEqualsXmlString()

assertXmlStringNotEqualsXmlString (   $expectedXml,
  $actualXml,
  $message = "" 
)

[!] Method is generated. Documentation taken from corresponding module.

Asserts that two XML documents are not equal.

Parameters
DOMDocument | string$expectedXml
DOMDocument | string$actualXml
string$message
See also
assertXmlStringNotEqualsXmlString()

◆ createApp()

_generated\createApp (   $credentials,
  $method,
  $pattern,
  $callable,
  $name = NULL 
)

[!] Method is generated. Documentation taken from corresponding module.

Parameters
array$credentials
string$method
string$pattern
callable$callable
?string$name
Returns
See also
createApp()

◆ createRequestBuilder()

_generated\createRequestBuilder (   $credentials = NULL)

[!] Method is generated. Documentation taken from corresponding module.

Parameters
array | null$credentials
Returns
JsonApiRequestBuilder
See also
createRequestBuilder()

◆ expectException()

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
$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
// 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();
});
Parameters
\Exception | string$exception
callable$callback
See also
expectException()

[!] 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
$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
// 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();
});
Parameters
\Exception | string$exception
callable$callback
See also
expectException()

◆ expectThrowable()

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
$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
// 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();
});
Parameters
\Throwable | string$throwable
callable$callback
See also
expectThrowable()

◆ fail()

fail (   $message = "")

[!] Method is generated. Documentation taken from corresponding module.

Fails a test with the given message.

Parameters
string$message
See also
fail()

◆ getCredentialsForRoot()

_generated\getCredentialsForRoot ( )

[!] Method is generated. Documentation taken from corresponding module.

See also
getCredentialsForRoot()

◆ getCredentialsForTestAdmin()

_generated\getCredentialsForTestAdmin ( )

[!] Method is generated. Documentation taken from corresponding module.

See also
getCredentialsForTestAdmin()

◆ getCredentialsForTestAutor()

_generated\getCredentialsForTestAutor ( )

[!] Method is generated. Documentation taken from corresponding module.

See also
getCredentialsForTestAutor()

◆ getCredentialsForTestDozent()

_generated\getCredentialsForTestDozent ( )

[!] Method is generated. Documentation taken from corresponding module.

See also
getCredentialsForTestDozent()

◆ markTestIncomplete()

markTestIncomplete (   $message = "")

[!] Method is generated. Documentation taken from corresponding module.

Mark the test as incomplete.

Parameters
string$message
See also
markTestIncomplete()

◆ markTestSkipped()

markTestSkipped (   $message = "")

[!] Method is generated. Documentation taken from corresponding module.

Mark the test as skipped.

Parameters
string$message
See also
markTestSkipped()

◆ sendMockRequest()

_generated\sendMockRequest (   $app,
\Slim\Psr7\Request  $request 
)

[!] Method is generated. Documentation taken from corresponding module.

Parameters
\Slim\App$app
Returns
JsonApiResponse
See also
sendMockRequest()

◆ storeJsonMD()

_generated\storeJsonMD ( string  $filename,
\Psr\Http\Message\ResponseInterface  $response,
?int  $limit = NULL,
?string  $ellipsis = NULL 
)

[!] Method is generated. Documentation taken from corresponding module.

See also
storeJsonMD()

◆ withPHPLib()

_generated\withPHPLib (   $credentials,
  $function 
)

[!] Method is generated. Documentation taken from corresponding module.

Parameters
array$credentials
callable$function
Returns
mixed

(PHPMD.Superglobals)

See also
withPHPLib()

Variable Documentation

◆ FunctionalTesterActions

trait FunctionalTesterActions
Initial value:
{
abstract protected function getScenario()

◆ JsonapiTesterActions

trait JsonapiTesterActions
Initial value:
{
abstract protected function getScenario()

◆ UnitTesterActions

trait UnitTesterActions
Initial value:
{
abstract protected function getScenario()