InheritedAsserts
Table of Contents
Methods
- assertArrayHasKey() : mixed
- Asserts that an array has a specified key.
- assertArrayNotHasKey() : mixed
- Asserts that an array does not have a specified key.
- assertClassHasAttribute() : mixed
- Asserts that a class has a specified attribute.
- assertClassHasStaticAttribute() : mixed
- Asserts that a class has a specified static attribute.
- assertClassNotHasAttribute() : mixed
- Asserts that a class does not have a specified attribute.
- assertClassNotHasStaticAttribute() : mixed
- Asserts that a class does not have a specified static attribute.
- assertContains() : mixed
- Asserts that a haystack contains a needle.
- assertContainsEquals() : mixed
- assertContainsOnly() : mixed
- Asserts that a haystack contains only values of a given type.
- assertContainsOnlyInstancesOf() : mixed
- Asserts that a haystack contains only instances of a given class name.
- assertCount() : mixed
- Asserts the number of elements of an array, Countable or Traversable.
- assertDirectoryDoesNotExist() : mixed
- Asserts that a directory does not exist.
- assertDirectoryExists() : mixed
- Asserts that a directory exists.
- assertDirectoryIsNotReadable() : mixed
- Asserts that a directory exists and is not readable.
- assertDirectoryIsNotWritable() : mixed
- Asserts that a directory exists and is not writable.
- assertDirectoryIsReadable() : mixed
- Asserts that a directory exists and is readable.
- assertDirectoryIsWritable() : mixed
- Asserts that a directory exists and is writable.
- assertDoesNotMatchRegularExpression() : mixed
- Asserts that a string does not match a given regular expression.
- assertEmpty() : mixed
- Asserts that a variable is empty.
- assertEquals() : mixed
- Asserts that two variables are equal.
- assertEqualsCanonicalizing() : mixed
- Asserts that two variables are equal (canonicalizing).
- assertEqualsIgnoringCase() : mixed
- Asserts that two variables are equal (ignoring case).
- assertEqualsWithDelta() : mixed
- Asserts that two variables are equal (with delta).
- assertFalse() : mixed
- Asserts that a condition is false.
- assertFileDoesNotExist() : mixed
- Asserts that a file does not exist.
- assertFileEquals() : mixed
- Asserts that the contents of one file is equal to the contents of another file.
- assertFileEqualsCanonicalizing() : mixed
- Asserts that the contents of one file is equal to the contents of another file (canonicalizing).
- assertFileEqualsIgnoringCase() : mixed
- Asserts that the contents of one file is equal to the contents of another file (ignoring case).
- assertFileExists() : mixed
- Asserts that a file exists.
- assertFileIsNotReadable() : mixed
- Asserts that a file exists and is not readable.
- assertFileIsNotWritable() : mixed
- Asserts that a file exists and is not writable.
- assertFileIsReadable() : mixed
- Asserts that a file exists and is readable.
- assertFileIsWritable() : mixed
- Asserts that a file exists and is writable.
- assertFileNotEquals() : mixed
- Asserts that the contents of one file is not equal to the contents of another file.
- assertFileNotEqualsCanonicalizing() : mixed
- Asserts that the contents of one file is not equal to the contents of another file (canonicalizing).
- assertFileNotEqualsIgnoringCase() : mixed
- Asserts that the contents of one file is not equal to the contents of another file (ignoring case).
- assertFinite() : mixed
- Asserts that a variable is finite.
- assertGreaterThan() : mixed
- Asserts that a value is greater than another value.
- assertGreaterThanOrEqual() : mixed
- Asserts that a value is greater than or equal to another value.
- assertInfinite() : mixed
- Asserts that a variable is infinite.
- assertInstanceOf() : mixed
- Asserts that a variable is of a given type.
- assertIsArray() : mixed
- Asserts that a variable is of type array.
- assertIsBool() : mixed
- Asserts that a variable is of type bool.
- assertIsCallable() : mixed
- Asserts that a variable is of type callable.
- assertIsClosedResource() : mixed
- Asserts that a variable is of type resource and is closed.
- assertIsFloat() : mixed
- Asserts that a variable is of type float.
- assertIsInt() : mixed
- Asserts that a variable is of type int.
- assertIsIterable() : mixed
- Asserts that a variable is of type iterable.
- assertIsNotArray() : mixed
- Asserts that a variable is not of type array.
- assertIsNotBool() : mixed
- Asserts that a variable is not of type bool.
- assertIsNotCallable() : mixed
- Asserts that a variable is not of type callable.
- assertIsNotClosedResource() : mixed
- Asserts that a variable is not of type resource.
- assertIsNotFloat() : mixed
- Asserts that a variable is not of type float.
- assertIsNotInt() : mixed
- Asserts that a variable is not of type int.
- assertIsNotIterable() : mixed
- Asserts that a variable is not of type iterable.
- assertIsNotNumeric() : mixed
- Asserts that a variable is not of type numeric.
- assertIsNotObject() : mixed
- Asserts that a variable is not of type object.
- assertIsNotReadable() : mixed
- Asserts that a file/dir exists and is not readable.
- assertIsNotResource() : mixed
- Asserts that a variable is not of type resource.
- assertIsNotScalar() : mixed
- Asserts that a variable is not of type scalar.
- assertIsNotString() : mixed
- Asserts that a variable is not of type string.
- assertIsNotWritable() : mixed
- Asserts that a file/dir exists and is not writable.
- assertIsNumeric() : mixed
- Asserts that a variable is of type numeric.
- assertIsObject() : mixed
- Asserts that a variable is of type object.
- assertIsReadable() : mixed
- Asserts that a file/dir is readable.
- assertIsResource() : mixed
- Asserts that a variable is of type resource.
- assertIsScalar() : mixed
- Asserts that a variable is of type scalar.
- assertIsString() : mixed
- Asserts that a variable is of type string.
- assertIsWritable() : mixed
- Asserts that a file/dir exists and is writable.
- assertJson() : mixed
- Asserts that a string is a valid JSON string.
- assertJsonFileEqualsJsonFile() : mixed
- Asserts that two JSON files are equal.
- assertJsonFileNotEqualsJsonFile() : mixed
- Asserts that two JSON files are not equal.
- assertJsonStringEqualsJsonFile() : mixed
- Asserts that the generated JSON encoded object and the content of the given file are equal.
- assertJsonStringEqualsJsonString() : mixed
- Asserts that two given JSON encoded objects or arrays are equal.
- assertJsonStringNotEqualsJsonFile() : mixed
- Asserts that the generated JSON encoded object and the content of the given file are not equal.
- assertJsonStringNotEqualsJsonString() : mixed
- Asserts that two given JSON encoded objects or arrays are not equal.
- assertLessThan() : mixed
- Asserts that a value is smaller than another value.
- assertLessThanOrEqual() : mixed
- Asserts that a value is smaller than or equal to another value.
- assertMatchesRegularExpression() : mixed
- Asserts that a string matches a given regular expression.
- assertNan() : mixed
- Asserts that a variable is nan.
- assertNotContains() : mixed
- Asserts that a haystack does not contain a needle.
- assertNotContainsEquals() : mixed
- assertNotContainsOnly() : mixed
- Asserts that a haystack does not contain only values of a given type.
- assertNotCount() : mixed
- Asserts the number of elements of an array, Countable or Traversable.
- assertNotEmpty() : mixed
- Asserts that a variable is not empty.
- assertNotEquals() : mixed
- Asserts that two variables are not equal.
- assertNotEqualsCanonicalizing() : mixed
- Asserts that two variables are not equal (canonicalizing).
- assertNotEqualsIgnoringCase() : mixed
- Asserts that two variables are not equal (ignoring case).
- assertNotEqualsWithDelta() : mixed
- Asserts that two variables are not equal (with delta).
- assertNotFalse() : mixed
- Asserts that a condition is not false.
- assertNotInstanceOf() : mixed
- Asserts that a variable is not of a given type.
- assertNotNull() : mixed
- Asserts that a variable is not null.
- assertNotSame() : mixed
- Asserts that two variables do not have the same type and value.
- assertNotSameSize() : mixed
- Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
- assertNotTrue() : mixed
- Asserts that a condition is not true.
- assertNull() : mixed
- Asserts that a variable is null.
- assertObjectHasAttribute() : mixed
- Asserts that an object has a specified attribute.
- assertObjectNotHasAttribute() : mixed
- Asserts that an object does not have a specified attribute.
- assertSame() : mixed
- Asserts that two variables have the same type and value.
- assertSameSize() : mixed
- Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
- assertStringContainsString() : mixed
- assertStringContainsStringIgnoringCase() : mixed
- assertStringEndsNotWith() : mixed
- Asserts that a string ends not with a given suffix.
- assertStringEndsWith() : mixed
- Asserts that a string ends with a given suffix.
- assertStringEqualsFile() : mixed
- Asserts that the contents of a string is equal to the contents of a file.
- assertStringEqualsFileCanonicalizing() : mixed
- Asserts that the contents of a string is equal to the contents of a file (canonicalizing).
- assertStringEqualsFileIgnoringCase() : mixed
- Asserts that the contents of a string is equal to the contents of a file (ignoring case).
- assertStringMatchesFormat() : mixed
- Asserts that a string matches a given format string.
- assertStringMatchesFormatFile() : mixed
- Asserts that a string matches a given format file.
- assertStringNotContainsString() : mixed
- assertStringNotContainsStringIgnoringCase() : mixed
- assertStringNotEqualsFile() : mixed
- Asserts that the contents of a string is not equal to the contents of a file.
- assertStringNotEqualsFileCanonicalizing() : mixed
- Asserts that the contents of a string is not equal to the contents of a file (canonicalizing).
- assertStringNotEqualsFileIgnoringCase() : mixed
- Asserts that the contents of a string is not equal to the contents of a file (ignoring case).
- assertStringNotMatchesFormat() : mixed
- Asserts that a string does not match a given format string.
- assertStringNotMatchesFormatFile() : mixed
- Asserts that a string does not match a given format string.
- assertStringStartsNotWith() : mixed
- Asserts that a string starts not with a given prefix.
- assertStringStartsWith() : mixed
- Asserts that a string starts with a given prefix.
- assertThat() : mixed
- Evaluates a PHPUnit\Framework\Constraint matcher object.
- assertTrue() : mixed
- Asserts that a condition is true.
- assertXmlFileEqualsXmlFile() : mixed
- Asserts that two XML files are equal.
- assertXmlFileNotEqualsXmlFile() : mixed
- Asserts that two XML files are not equal.
- assertXmlStringEqualsXmlFile() : mixed
- Asserts that two XML documents are equal.
- assertXmlStringEqualsXmlString() : mixed
- Asserts that two XML documents are equal.
- assertXmlStringNotEqualsXmlFile() : mixed
- Asserts that two XML documents are not equal.
- assertXmlStringNotEqualsXmlString() : mixed
- Asserts that two XML documents are not equal.
- fail() : mixed
- Fails a test with the given message.
- markTestIncomplete() : mixed
- Mark the test as incomplete.
- markTestSkipped() : mixed
- Mark the test as skipped.
Methods
assertArrayHasKey()
Asserts that an array has a specified key.
protected
assertArrayHasKey(int|string $key, array<string|int, mixed>|ArrayAccess $array[, string $message = '' ]) : mixed
Parameters
- $key : int|string
- $array : array<string|int, mixed>|ArrayAccess
- $message : string = ''
assertArrayNotHasKey()
Asserts that an array does not have a specified key.
protected
assertArrayNotHasKey(int|string $key, array<string|int, mixed>|ArrayAccess $array[, string $message = '' ]) : mixed
Parameters
- $key : int|string
- $array : array<string|int, mixed>|ArrayAccess
- $message : string = ''
assertClassHasAttribute()
Asserts that a class has a specified attribute.
protected
assertClassHasAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Parameters
- $attributeName : string
- $className : string
- $message : string = ''
assertClassHasStaticAttribute()
Asserts that a class has a specified static attribute.
protected
assertClassHasStaticAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Parameters
- $attributeName : string
- $className : string
- $message : string = ''
assertClassNotHasAttribute()
Asserts that a class does not have a specified attribute.
protected
assertClassNotHasAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Parameters
- $attributeName : string
- $className : string
- $message : string = ''
assertClassNotHasStaticAttribute()
Asserts that a class does not have a specified static attribute.
protected
assertClassNotHasStaticAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Parameters
- $attributeName : string
- $className : string
- $message : string = ''
assertContains()
Asserts that a haystack contains a needle.
protected
assertContains(mixed $needle, mixed $haystack[, string $message = '' ]) : mixed
Parameters
- $needle : mixed
- $haystack : mixed
- $message : string = ''
assertContainsEquals()
protected
assertContainsEquals(mixed $needle, mixed $haystack[, string $message = '' ]) : mixed
Parameters
- $needle : mixed
- $haystack : mixed
- $message : string = ''
assertContainsOnly()
Asserts that a haystack contains only values of a given type.
protected
assertContainsOnly(string $type, mixed $haystack[, bool|null $isNativeType = null ][, string $message = '' ]) : mixed
Parameters
- $type : string
- $haystack : mixed
- $isNativeType : bool|null = null
- $message : string = ''
assertContainsOnlyInstancesOf()
Asserts that a haystack contains only instances of a given class name.
protected
assertContainsOnlyInstancesOf(string $className, mixed $haystack[, string $message = '' ]) : mixed
Parameters
- $className : string
- $haystack : mixed
- $message : string = ''
assertCount()
Asserts the number of elements of an array, Countable or Traversable.
protected
assertCount(int $expectedCount, Countable|iterable<string|int, mixed> $haystack[, string $message = '' ]) : mixed
Parameters
- $expectedCount : int
- $haystack : Countable|iterable<string|int, mixed>
- $message : string = ''
assertDirectoryDoesNotExist()
Asserts that a directory does not exist.
protected
assertDirectoryDoesNotExist(string $directory[, string $message = '' ]) : mixed
Parameters
- $directory : string
- $message : string = ''
assertDirectoryExists()
Asserts that a directory exists.
protected
assertDirectoryExists(string $directory[, string $message = '' ]) : mixed
Parameters
- $directory : string
- $message : string = ''
assertDirectoryIsNotReadable()
Asserts that a directory exists and is not readable.
protected
assertDirectoryIsNotReadable(string $directory[, string $message = '' ]) : mixed
Parameters
- $directory : string
- $message : string = ''
assertDirectoryIsNotWritable()
Asserts that a directory exists and is not writable.
protected
assertDirectoryIsNotWritable(string $directory[, string $message = '' ]) : mixed
Parameters
- $directory : string
- $message : string = ''
assertDirectoryIsReadable()
Asserts that a directory exists and is readable.
protected
assertDirectoryIsReadable(string $directory[, string $message = '' ]) : mixed
Parameters
- $directory : string
- $message : string = ''
assertDirectoryIsWritable()
Asserts that a directory exists and is writable.
protected
assertDirectoryIsWritable(string $directory[, string $message = '' ]) : mixed
Parameters
- $directory : string
- $message : string = ''
assertDoesNotMatchRegularExpression()
Asserts that a string does not match a given regular expression.
protected
assertDoesNotMatchRegularExpression(string $pattern, string $string[, string $message = '' ]) : mixed
Parameters
- $pattern : string
- $string : string
- $message : string = ''
assertEmpty()
Asserts that a variable is empty.
protected
assertEmpty(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertEquals()
Asserts that two variables are equal.
protected
assertEquals(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertEqualsCanonicalizing()
Asserts that two variables are equal (canonicalizing).
protected
assertEqualsCanonicalizing(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertEqualsIgnoringCase()
Asserts that two variables are equal (ignoring case).
protected
assertEqualsIgnoringCase(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertEqualsWithDelta()
Asserts that two variables are equal (with delta).
protected
assertEqualsWithDelta(mixed $expected, mixed $actual, float $delta[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $delta : float
- $message : string = ''
assertFalse()
Asserts that a condition is false.
protected
assertFalse(mixed $condition[, string $message = '' ]) : mixed
Parameters
- $condition : mixed
- $message : string = ''
assertFileDoesNotExist()
Asserts that a file does not exist.
protected
assertFileDoesNotExist(string $filename[, string $message = '' ]) : mixed
Parameters
- $filename : string
- $message : string = ''
assertFileEquals()
Asserts that the contents of one file is equal to the contents of another file.
protected
assertFileEquals(string $expected, string $actual[, string $message = '' ]) : mixed
Parameters
- $expected : string
- $actual : string
- $message : string = ''
assertFileEqualsCanonicalizing()
Asserts that the contents of one file is equal to the contents of another file (canonicalizing).
protected
assertFileEqualsCanonicalizing(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertFileEqualsIgnoringCase()
Asserts that the contents of one file is equal to the contents of another file (ignoring case).
protected
assertFileEqualsIgnoringCase(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertFileExists()
Asserts that a file exists.
protected
assertFileExists(string $filename[, string $message = '' ]) : mixed
Parameters
- $filename : string
- $message : string = ''
assertFileIsNotReadable()
Asserts that a file exists and is not readable.
protected
assertFileIsNotReadable(string $file[, string $message = '' ]) : mixed
Parameters
- $file : string
- $message : string = ''
assertFileIsNotWritable()
Asserts that a file exists and is not writable.
protected
assertFileIsNotWritable(string $file[, string $message = '' ]) : mixed
Parameters
- $file : string
- $message : string = ''
assertFileIsReadable()
Asserts that a file exists and is readable.
protected
assertFileIsReadable(string $file[, string $message = '' ]) : mixed
Parameters
- $file : string
- $message : string = ''
assertFileIsWritable()
Asserts that a file exists and is writable.
protected
assertFileIsWritable(string $file[, string $message = '' ]) : mixed
Parameters
- $file : string
- $message : string = ''
assertFileNotEquals()
Asserts that the contents of one file is not equal to the contents of another file.
protected
assertFileNotEquals(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertFileNotEqualsCanonicalizing()
Asserts that the contents of one file is not equal to the contents of another file (canonicalizing).
protected
assertFileNotEqualsCanonicalizing(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertFileNotEqualsIgnoringCase()
Asserts that the contents of one file is not equal to the contents of another file (ignoring case).
protected
assertFileNotEqualsIgnoringCase(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertFinite()
Asserts that a variable is finite.
protected
assertFinite(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertGreaterThan()
Asserts that a value is greater than another value.
protected
assertGreaterThan(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertGreaterThanOrEqual()
Asserts that a value is greater than or equal to another value.
protected
assertGreaterThanOrEqual(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertInfinite()
Asserts that a variable is infinite.
protected
assertInfinite(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertInstanceOf()
Asserts that a variable is of a given type.
protected
assertInstanceOf(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertIsArray()
Asserts that a variable is of type array.
protected
assertIsArray(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsBool()
Asserts that a variable is of type bool.
protected
assertIsBool(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsCallable()
Asserts that a variable is of type callable.
protected
assertIsCallable(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsClosedResource()
Asserts that a variable is of type resource and is closed.
protected
assertIsClosedResource(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsFloat()
Asserts that a variable is of type float.
protected
assertIsFloat(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsInt()
Asserts that a variable is of type int.
protected
assertIsInt(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsIterable()
Asserts that a variable is of type iterable.
protected
assertIsIterable(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotArray()
Asserts that a variable is not of type array.
protected
assertIsNotArray(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotBool()
Asserts that a variable is not of type bool.
protected
assertIsNotBool(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotCallable()
Asserts that a variable is not of type callable.
protected
assertIsNotCallable(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotClosedResource()
Asserts that a variable is not of type resource.
protected
assertIsNotClosedResource(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotFloat()
Asserts that a variable is not of type float.
protected
assertIsNotFloat(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotInt()
Asserts that a variable is not of type int.
protected
assertIsNotInt(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotIterable()
Asserts that a variable is not of type iterable.
protected
assertIsNotIterable(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotNumeric()
Asserts that a variable is not of type numeric.
protected
assertIsNotNumeric(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotObject()
Asserts that a variable is not of type object.
protected
assertIsNotObject(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotReadable()
Asserts that a file/dir exists and is not readable.
protected
assertIsNotReadable(string $filename[, string $message = '' ]) : mixed
Parameters
- $filename : string
- $message : string = ''
assertIsNotResource()
Asserts that a variable is not of type resource.
protected
assertIsNotResource(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotScalar()
Asserts that a variable is not of type scalar.
protected
assertIsNotScalar(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotString()
Asserts that a variable is not of type string.
protected
assertIsNotString(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsNotWritable()
Asserts that a file/dir exists and is not writable.
protected
assertIsNotWritable(mixed $filename[, string $message = '' ]) : mixed
Parameters
- $filename : mixed
- $message : string = ''
assertIsNumeric()
Asserts that a variable is of type numeric.
protected
assertIsNumeric(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsObject()
Asserts that a variable is of type object.
protected
assertIsObject(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsReadable()
Asserts that a file/dir is readable.
protected
assertIsReadable(mixed $filename[, string $message = '' ]) : mixed
Parameters
- $filename : mixed
- $message : string = ''
assertIsResource()
Asserts that a variable is of type resource.
protected
assertIsResource(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsScalar()
Asserts that a variable is of type scalar.
protected
assertIsScalar(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsString()
Asserts that a variable is of type string.
protected
assertIsString(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertIsWritable()
Asserts that a file/dir exists and is writable.
protected
assertIsWritable(mixed $filename[, string $message = '' ]) : mixed
Parameters
- $filename : mixed
- $message : string = ''
assertJson()
Asserts that a string is a valid JSON string.
protected
assertJson(string $actualJson[, string $message = '' ]) : mixed
Parameters
- $actualJson : string
- $message : string = ''
assertJsonFileEqualsJsonFile()
Asserts that two JSON files are equal.
protected
assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualFile : string
- $message : string = ''
assertJsonFileNotEqualsJsonFile()
Asserts that two JSON files are not equal.
protected
assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualFile : string
- $message : string = ''
assertJsonStringEqualsJsonFile()
Asserts that the generated JSON encoded object and the content of the given file are equal.
protected
assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualJson : string
- $message : string = ''
assertJsonStringEqualsJsonString()
Asserts that two given JSON encoded objects or arrays are equal.
protected
assertJsonStringEqualsJsonString(string $expectedJson, string $actualJson[, string $message = '' ]) : mixed
Parameters
- $expectedJson : string
- $actualJson : string
- $message : string = ''
assertJsonStringNotEqualsJsonFile()
Asserts that the generated JSON encoded object and the content of the given file are not equal.
protected
assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJson[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualJson : string
- $message : string = ''
assertJsonStringNotEqualsJsonString()
Asserts that two given JSON encoded objects or arrays are not equal.
protected
assertJsonStringNotEqualsJsonString(string $expectedJson, string $actualJson[, string $message = '' ]) : mixed
Parameters
- $expectedJson : string
- $actualJson : string
- $message : string = ''
assertLessThan()
Asserts that a value is smaller than another value.
protected
assertLessThan(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertLessThanOrEqual()
Asserts that a value is smaller than or equal to another value.
protected
assertLessThanOrEqual(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertMatchesRegularExpression()
Asserts that a string matches a given regular expression.
protected
assertMatchesRegularExpression(string $pattern, string $string[, string $message = '' ]) : mixed
Parameters
- $pattern : string
- $string : string
- $message : string = ''
assertNan()
Asserts that a variable is nan.
protected
assertNan(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertNotContains()
Asserts that a haystack does not contain a needle.
protected
assertNotContains(mixed $needle, mixed $haystack[, string $message = '' ]) : mixed
Parameters
- $needle : mixed
- $haystack : mixed
- $message : string = ''
assertNotContainsEquals()
protected
assertNotContainsEquals(mixed $needle, mixed $haystack[, mixed $message = '' ]) : mixed
Parameters
- $needle : mixed
- $haystack : mixed
- $message : mixed = ''
assertNotContainsOnly()
Asserts that a haystack does not contain only values of a given type.
protected
assertNotContainsOnly(string $type, mixed $haystack[, bool|null $isNativeType = null ][, string $message = '' ]) : mixed
Parameters
- $type : string
- $haystack : mixed
- $isNativeType : bool|null = null
- $message : string = ''
assertNotCount()
Asserts the number of elements of an array, Countable or Traversable.
protected
assertNotCount(int $expectedCount, Countable|iterable<string|int, mixed> $haystack[, string $message = '' ]) : mixed
Parameters
- $expectedCount : int
- $haystack : Countable|iterable<string|int, mixed>
- $message : string = ''
assertNotEmpty()
Asserts that a variable is not empty.
protected
assertNotEmpty(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertNotEquals()
Asserts that two variables are not equal.
protected
assertNotEquals(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertNotEqualsCanonicalizing()
Asserts that two variables are not equal (canonicalizing).
protected
assertNotEqualsCanonicalizing(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertNotEqualsIgnoringCase()
Asserts that two variables are not equal (ignoring case).
protected
assertNotEqualsIgnoringCase(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertNotEqualsWithDelta()
Asserts that two variables are not equal (with delta).
protected
assertNotEqualsWithDelta(mixed $expected, mixed $actual, float $delta[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $delta : float
- $message : string = ''
assertNotFalse()
Asserts that a condition is not false.
protected
assertNotFalse(mixed $condition[, string $message = '' ]) : mixed
Parameters
- $condition : mixed
- $message : string = ''
assertNotInstanceOf()
Asserts that a variable is not of a given type.
protected
assertNotInstanceOf(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertNotNull()
Asserts that a variable is not null.
protected
assertNotNull(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertNotSame()
Asserts that two variables do not have the same type and value.
protected
assertNotSame(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertNotSameSize()
Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
protected
assertNotSameSize(Countable|iterable<string|int, mixed> $expected, Countable|iterable<string|int, mixed> $actual[, string $message = '' ]) : mixed
Parameters
- $expected : Countable|iterable<string|int, mixed>
- $actual : Countable|iterable<string|int, mixed>
- $message : string = ''
assertNotTrue()
Asserts that a condition is not true.
protected
assertNotTrue(mixed $condition[, string $message = '' ]) : mixed
Parameters
- $condition : mixed
- $message : string = ''
assertNull()
Asserts that a variable is null.
protected
assertNull(mixed $actual[, string $message = '' ]) : mixed
Parameters
- $actual : mixed
- $message : string = ''
assertObjectHasAttribute()
Asserts that an object has a specified attribute.
protected
assertObjectHasAttribute(string $attributeName, object $object[, string $message = '' ]) : mixed
Parameters
- $attributeName : string
- $object : object
- $message : string = ''
assertObjectNotHasAttribute()
Asserts that an object does not have a specified attribute.
protected
assertObjectNotHasAttribute(string $attributeName, object $object[, string $message = '' ]) : mixed
Parameters
- $attributeName : string
- $object : object
- $message : string = ''
assertSame()
Asserts that two variables have the same type and value.
protected
assertSame(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertSameSize()
Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
protected
assertSameSize(Countable|iterable<string|int, mixed> $expected, Countable|iterable<string|int, mixed> $actual[, string $message = '' ]) : mixed
Parameters
- $expected : Countable|iterable<string|int, mixed>
- $actual : Countable|iterable<string|int, mixed>
- $message : string = ''
assertStringContainsString()
protected
assertStringContainsString(string $needle, string $haystack[, string $message = '' ]) : mixed
Parameters
- $needle : string
- $haystack : string
- $message : string = ''
assertStringContainsStringIgnoringCase()
protected
assertStringContainsStringIgnoringCase(mixed $needle, mixed $haystack[, mixed $message = '' ]) : mixed
Parameters
- $needle : mixed
- $haystack : mixed
- $message : mixed = ''
assertStringEndsNotWith()
Asserts that a string ends not with a given suffix.
protected
assertStringEndsNotWith(string $suffix, string $string[, string $message = '' ]) : mixed
Parameters
- $suffix : string
- $string : string
- $message : string = ''
assertStringEndsWith()
Asserts that a string ends with a given suffix.
protected
assertStringEndsWith(string $suffix, string $string[, string $message = '' ]) : mixed
Parameters
- $suffix : string
- $string : string
- $message : string = ''
assertStringEqualsFile()
Asserts that the contents of a string is equal to the contents of a file.
protected
assertStringEqualsFile(string $expectedFile, string $actualString[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualString : string
- $message : string = ''
assertStringEqualsFileCanonicalizing()
Asserts that the contents of a string is equal to the contents of a file (canonicalizing).
protected
assertStringEqualsFileCanonicalizing(string $expectedFile, string $actualString[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualString : string
- $message : string = ''
assertStringEqualsFileIgnoringCase()
Asserts that the contents of a string is equal to the contents of a file (ignoring case).
protected
assertStringEqualsFileIgnoringCase(string $expectedFile, string $actualString[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualString : string
- $message : string = ''
assertStringMatchesFormat()
Asserts that a string matches a given format string.
protected
assertStringMatchesFormat(string $format, string $string[, string $message = '' ]) : mixed
Parameters
- $format : string
- $string : string
- $message : string = ''
assertStringMatchesFormatFile()
Asserts that a string matches a given format file.
protected
assertStringMatchesFormatFile(string $formatFile, string $string[, string $message = '' ]) : mixed
Parameters
- $formatFile : string
- $string : string
- $message : string = ''
assertStringNotContainsString()
protected
assertStringNotContainsString(string $needle, string $haystack[, string $message = '' ]) : mixed
Parameters
- $needle : string
- $haystack : string
- $message : string = ''
assertStringNotContainsStringIgnoringCase()
protected
assertStringNotContainsStringIgnoringCase(string $needle, string $haystack[, string $message = '' ]) : mixed
Parameters
- $needle : string
- $haystack : string
- $message : string = ''
assertStringNotEqualsFile()
Asserts that the contents of a string is not equal to the contents of a file.
protected
assertStringNotEqualsFile(string $expectedFile, string $actualString[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualString : string
- $message : string = ''
assertStringNotEqualsFileCanonicalizing()
Asserts that the contents of a string is not equal to the contents of a file (canonicalizing).
protected
assertStringNotEqualsFileCanonicalizing(string $expectedFile, string $actualString[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualString : string
- $message : string = ''
assertStringNotEqualsFileIgnoringCase()
Asserts that the contents of a string is not equal to the contents of a file (ignoring case).
protected
assertStringNotEqualsFileIgnoringCase(string $expectedFile, string $actualString[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualString : string
- $message : string = ''
assertStringNotMatchesFormat()
Asserts that a string does not match a given format string.
protected
assertStringNotMatchesFormat(string $format, string $string[, string $message = '' ]) : mixed
Parameters
- $format : string
- $string : string
- $message : string = ''
assertStringNotMatchesFormatFile()
Asserts that a string does not match a given format string.
protected
assertStringNotMatchesFormatFile(string $formatFile, string $string[, string $message = '' ]) : mixed
Parameters
- $formatFile : string
- $string : string
- $message : string = ''
assertStringStartsNotWith()
Asserts that a string starts not with a given prefix.
protected
assertStringStartsNotWith(string $prefix, string $string[, string $message = '' ]) : mixed
Parameters
- $prefix : string
- $string : string
- $message : string = ''
assertStringStartsWith()
Asserts that a string starts with a given prefix.
protected
assertStringStartsWith(string $prefix, string $string[, string $message = '' ]) : mixed
Parameters
- $prefix : string
- $string : string
- $message : string = ''
assertThat()
Evaluates a PHPUnit\Framework\Constraint matcher object.
protected
assertThat(mixed $value, Constraint $constraint[, string $message = '' ]) : mixed
Parameters
- $value : mixed
- $constraint : Constraint
- $message : string = ''
assertTrue()
Asserts that a condition is true.
protected
assertTrue(mixed $condition[, string $message = '' ]) : mixed
Parameters
- $condition : mixed
- $message : string = ''
assertXmlFileEqualsXmlFile()
Asserts that two XML files are equal.
protected
assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualFile : string
- $message : string = ''
assertXmlFileNotEqualsXmlFile()
Asserts that two XML files are not equal.
protected
assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualFile : string
- $message : string = ''
assertXmlStringEqualsXmlFile()
Asserts that two XML documents are equal.
protected
assertXmlStringEqualsXmlFile(string $expectedFile, DOMDocument|string $actualXml[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualXml : DOMDocument|string
- $message : string = ''
assertXmlStringEqualsXmlString()
Asserts that two XML documents are equal.
protected
assertXmlStringEqualsXmlString(DOMDocument|string $expectedXml, DOMDocument|string $actualXml[, string $message = '' ]) : mixed
Parameters
- $expectedXml : DOMDocument|string
- $actualXml : DOMDocument|string
- $message : string = ''
assertXmlStringNotEqualsXmlFile()
Asserts that two XML documents are not equal.
protected
assertXmlStringNotEqualsXmlFile(string $expectedFile, DOMDocument|string $actualXml[, string $message = '' ]) : mixed
Parameters
- $expectedFile : string
- $actualXml : DOMDocument|string
- $message : string = ''
assertXmlStringNotEqualsXmlString()
Asserts that two XML documents are not equal.
protected
assertXmlStringNotEqualsXmlString(DOMDocument|string $expectedXml, DOMDocument|string $actualXml[, string $message = '' ]) : mixed
Parameters
- $expectedXml : DOMDocument|string
- $actualXml : DOMDocument|string
- $message : string = ''
fail()
Fails a test with the given message.
protected
fail([string $message = '' ]) : mixed
Parameters
- $message : string = ''
markTestIncomplete()
Mark the test as incomplete.
protected
markTestIncomplete([string $message = '' ]) : mixed
Parameters
- $message : string = ''
markTestSkipped()
Mark the test as skipped.
protected
markTestSkipped([string $message = '' ]) : mixed
Parameters
- $message : string = ''