Namespaces

Classes

Interfaces

Functions

any()

Returns a matcher that matches when the method is executed zero or more times.

anything()

No description

arrayHasKey(mixed $key)

No description

void
assertArrayHasKey(mixed $key, array|ArrayAccess $array, string $message = '')

Asserts that an array has a specified key.

void
assertArrayIsEqualToArrayIgnoringListOfKeys(array $expected, array $actual, array $keysToBeIgnored, string $message = '')

Asserts that two arrays are equal while ignoring a list of keys.

void
assertArrayIsEqualToArrayOnlyConsideringListOfKeys(array $expected, array $actual, array $keysToBeConsidered, string $message = '')

Asserts that two arrays are equal while only considering a list of keys.

void
assertArrayIsIdenticalToArrayIgnoringListOfKeys(array $expected, array $actual, array $keysToBeIgnored, string $message = '')

Asserts that two arrays are equal while ignoring a list of keys.

void
assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys(array $expected, array $actual, array $keysToBeConsidered, string $message = '')

Asserts that two arrays are identical while only considering a list of keys.

void
assertArrayNotHasKey(mixed $key, array|ArrayAccess $array, string $message = '')

Asserts that an array does not have a specified key.

void
assertContains(mixed $needle, iterable $haystack, string $message = '')

Asserts that a haystack contains a needle.

void
assertContainsEquals(mixed $needle, iterable $haystack, string $message = '')

No description

void
assertContainsNotOnlyArray(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type array.

void
assertContainsNotOnlyBool(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type bool.

void
assertContainsNotOnlyCallable(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type callable.

void
assertContainsNotOnlyClosedResource(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type closed resource.

void
assertContainsNotOnlyFloat(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type float.

void
assertContainsNotOnlyInstancesOf(string $className, iterable $haystack, string $message = '')

Asserts that a haystack does not contain only instances of a specified interface or class name.

void
assertContainsNotOnlyInt(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type int.

void
assertContainsNotOnlyIterable(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type iterable.

void
assertContainsNotOnlyNull(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type null.

void
assertContainsNotOnlyNumeric(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type numeric.

void
assertContainsNotOnlyObject(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type object.

void
assertContainsNotOnlyResource(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type resource.

void
assertContainsNotOnlyScalar(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type scalar.

void
assertContainsNotOnlyString(iterable $haystack, string $message = '')

Asserts that a haystack does not contain only values of type string.

void
assertContainsOnlyArray(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type array.

void
assertContainsOnlyBool(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type bool.

void
assertContainsOnlyCallable(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type callable.

void
assertContainsOnlyClosedResource(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type closed resource.

void
assertContainsOnlyFloat(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type float.

void
assertContainsOnlyInstancesOf(string $className, iterable $haystack, string $message = '')

Asserts that a haystack contains only instances of a specified interface or class name.

void
assertContainsOnlyInt(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type int.

void
assertContainsOnlyIterable(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type iterable.

void
assertContainsOnlyNull(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type null.

void
assertContainsOnlyNumeric(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type numeric.

void
assertContainsOnlyObject(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type object.

void
assertContainsOnlyResource(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type resource.

void
assertContainsOnlyScalar(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type scalar.

void
assertContainsOnlyString(iterable $haystack, string $message = '')

Asserts that a haystack contains only values of type string.

void
assertCount(int $expectedCount, Countable|iterable $haystack, string $message = '')

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

void
assertDirectoryDoesNotExist(string $directory, string $message = '')

Asserts that a directory does not exist.

void
assertDirectoryExists(string $directory, string $message = '')

Asserts that a directory exists.

void
assertDirectoryIsNotReadable(string $directory, string $message = '')

Asserts that a directory exists and is not readable.

void
assertDirectoryIsNotWritable(string $directory, string $message = '')

Asserts that a directory exists and is not writable.

void
assertDirectoryIsReadable(string $directory, string $message = '')

Asserts that a directory exists and is readable.

void
assertDirectoryIsWritable(string $directory, string $message = '')

Asserts that a directory exists and is writable.

void
assertDoesNotMatchRegularExpression(string $pattern, string $string, string $message = '')

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

void
assertEmpty(mixed $actual, string $message = '')

Asserts that a variable is empty.

void
assertEquals(mixed $expected, mixed $actual, string $message = '')

Asserts that two variables are equal.

void
assertEqualsCanonicalizing(mixed $expected, mixed $actual, string $message = '')

Asserts that two variables are equal (canonicalizing).

void
assertEqualsIgnoringCase(mixed $expected, mixed $actual, string $message = '')

Asserts that two variables are equal (ignoring case).

void
assertEqualsWithDelta(mixed $expected, mixed $actual, float $delta, string $message = '')

Asserts that two variables are equal (with delta).

void
assertFalse(mixed $condition, string $message = '')

Asserts that a condition is false.

void
assertFileDoesNotExist(string $filename, string $message = '')

Asserts that a file does not exist.

void
assertFileEquals(string $expected, string $actual, string $message = '')

Asserts that the contents of one file is equal to the contents of another file.

void
assertFileEqualsCanonicalizing(string $expected, string $actual, string $message = '')

Asserts that the contents of one file is equal to the contents of another file (canonicalizing).

void
assertFileEqualsIgnoringCase(string $expected, string $actual, string $message = '')

Asserts that the contents of one file is equal to the contents of another file (ignoring case).

void
assertFileExists(string $filename, string $message = '')

Asserts that a file exists.

void
assertFileIsNotReadable(string $file, string $message = '')

Asserts that a file exists and is not readable.

void
assertFileIsNotWritable(string $file, string $message = '')

Asserts that a file exists and is not writable.

void
assertFileIsReadable(string $file, string $message = '')

Asserts that a file exists and is readable.

void
assertFileIsWritable(string $file, string $message = '')

Asserts that a file exists and is writable.

void
assertFileMatchesFormat(string $format, string $actualFile, string $message = '')

Asserts that a string matches a given format string.

void
assertFileMatchesFormatFile(string $formatFile, string $actualFile, string $message = '')

Asserts that a string matches a given format string.

void
assertFileNotEquals(string $expected, string $actual, string $message = '')

Asserts that the contents of one file is not equal to the contents of another file.

void
assertFileNotEqualsCanonicalizing(string $expected, string $actual, string $message = '')

Asserts that the contents of one file is not equal to the contents of another file (canonicalizing).

void
assertFileNotEqualsIgnoringCase(string $expected, string $actual, string $message = '')

Asserts that the contents of one file is not equal to the contents of another file (ignoring case).

void
assertFinite(mixed $actual, string $message = '')

Asserts that a variable is finite.

void
assertGreaterThan(mixed $minimum, mixed $actual, string $message = '')

Asserts that a value is greater than another value.

void
assertGreaterThanOrEqual(mixed $minimum, mixed $actual, string $message = '')

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

void
assertInfinite(mixed $actual, string $message = '')

Asserts that a variable is infinite.

void
assertInstanceOf(string $expected, mixed $actual, string $message = '')

Asserts that a variable is of a given type.

void
assertIsArray(mixed $actual, string $message = '')

Asserts that a variable is of type array.

void
assertIsBool(mixed $actual, string $message = '')

Asserts that a variable is of type bool.

void
assertIsCallable(mixed $actual, string $message = '')

Asserts that a variable is of type callable.

void
assertIsClosedResource(mixed $actual, string $message = '')

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

void
assertIsFloat(mixed $actual, string $message = '')

Asserts that a variable is of type float.

void
assertIsInt(mixed $actual, string $message = '')

Asserts that a variable is of type int.

void
assertIsIterable(mixed $actual, string $message = '')

Asserts that a variable is of type iterable.

void
assertIsList(mixed $array, string $message = '')

No description

void
assertIsNotArray(mixed $actual, string $message = '')

Asserts that a variable is not of type array.

void
assertIsNotBool(mixed $actual, string $message = '')

Asserts that a variable is not of type bool.

void
assertIsNotCallable(mixed $actual, string $message = '')

Asserts that a variable is not of type callable.

void
assertIsNotClosedResource(mixed $actual, string $message = '')

Asserts that a variable is not of type resource.

void
assertIsNotFloat(mixed $actual, string $message = '')

Asserts that a variable is not of type float.

void
assertIsNotInt(mixed $actual, string $message = '')

Asserts that a variable is not of type int.

void
assertIsNotIterable(mixed $actual, string $message = '')

Asserts that a variable is not of type iterable.

void
assertIsNotNumeric(mixed $actual, string $message = '')

Asserts that a variable is not of type numeric.

void
assertIsNotObject(mixed $actual, string $message = '')

Asserts that a variable is not of type object.

void
assertIsNotReadable(string $filename, string $message = '')

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

void
assertIsNotResource(mixed $actual, string $message = '')

Asserts that a variable is not of type resource.

void
assertIsNotScalar(mixed $actual, string $message = '')

Asserts that a variable is not of type scalar.

void
assertIsNotString(mixed $actual, string $message = '')

Asserts that a variable is not of type string.

void
assertIsNotWritable(string $filename, string $message = '')

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

void
assertIsNumeric(mixed $actual, string $message = '')

Asserts that a variable is of type numeric.

void
assertIsObject(mixed $actual, string $message = '')

Asserts that a variable is of type object.

void
assertIsReadable(string $filename, string $message = '')

Asserts that a file/dir is readable.

void
assertIsResource(mixed $actual, string $message = '')

Asserts that a variable is of type resource.

void
assertIsScalar(mixed $actual, string $message = '')

Asserts that a variable is of type scalar.

void
assertIsString(mixed $actual, string $message = '')

Asserts that a variable is of type string.

void
assertIsWritable(string $filename, string $message = '')

Asserts that a file/dir exists and is writable.

void
assertJson(string $actual, string $message = '')

Asserts that a string is a valid JSON string.

void
assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile, string $message = '')

Asserts that two JSON files are equal.

void
assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile, string $message = '')

Asserts that two JSON files are not equal.

void
assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson, string $message = '')

Asserts that the generated JSON encoded object and the content of the given file are equal.

void
assertJsonStringEqualsJsonString(string $expectedJson, string $actualJson, string $message = '')

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

void
assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJson, string $message = '')

Asserts that the generated JSON encoded object and the content of the given file are not equal.

void
assertJsonStringNotEqualsJsonString(string $expectedJson, string $actualJson, string $message = '')

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

void
assertLessThan(mixed $maximum, mixed $actual, string $message = '')

Asserts that a value is smaller than another value.

void
assertLessThanOrEqual(mixed $maximum, mixed $actual, string $message = '')

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

void
assertMatchesRegularExpression(string $pattern, string $string, string $message = '')

Asserts that a string matches a given regular expression.

void
assertNan(mixed $actual, string $message = '')

Asserts that a variable is nan.

void
assertNotContains(mixed $needle, iterable $haystack, string $message = '')

Asserts that a haystack does not contain a needle.

void
assertNotContainsEquals(mixed $needle, iterable $haystack, string $message = '')

No description

void
assertNotCount(int $expectedCount, Countable|iterable $haystack, string $message = '')

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

void
assertNotEmpty(mixed $actual, string $message = '')

Asserts that a variable is not empty.

void
assertNotEquals(mixed $expected, mixed $actual, string $message = '')

Asserts that two variables are not equal.

void
assertNotEqualsCanonicalizing(mixed $expected, mixed $actual, string $message = '')

Asserts that two variables are not equal (canonicalizing).

void
assertNotEqualsIgnoringCase(mixed $expected, mixed $actual, string $message = '')

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

void
assertNotEqualsWithDelta(mixed $expected, mixed $actual, float $delta, string $message = '')

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

void
assertNotFalse(mixed $condition, string $message = '')

Asserts that a condition is not false.

void
assertNotInstanceOf(string $expected, mixed $actual, string $message = '')

Asserts that a variable is not of a given type.

void
assertNotNull(mixed $actual, string $message = '')

Asserts that a variable is not null.

void
assertNotSame(mixed $expected, mixed $actual, string $message = '')

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

void
assertNotSameSize(Countable|iterable $expected, Countable|iterable $actual, string $message = '')

Assert that the size of two arrays (or Countable or Traversable objects) is not the same.

void
assertNotTrue(mixed $condition, string $message = '')

Asserts that a condition is not true.

void
assertNull(mixed $actual, string $message = '')

Asserts that a variable is null.

void
assertObjectEquals(object $expected, object $actual, string $method = 'equals', string $message = '')

No description

void
assertObjectHasProperty(string $propertyName, object $object, string $message = '')

Asserts that an object has a specified property.

void
assertObjectNotEquals(object $expected, object $actual, string $method = 'equals', string $message = '')

No description

void
assertObjectNotHasProperty(string $propertyName, object $object, string $message = '')

Asserts that an object does not have a specified property.

void
assertSame(mixed $expected, mixed $actual, string $message = '')

Asserts that two variables have the same type and value.

void
assertSameSize(Countable|iterable $expected, Countable|iterable $actual, string $message = '')

Assert that the size of two arrays (or Countable or Traversable objects) is the same.

void
assertStringContainsString(string $needle, string $haystack, string $message = '')

No description

void
assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = '')

No description

void
assertStringContainsStringIgnoringLineEndings(string $needle, string $haystack, string $message = '')

No description

void
assertStringEndsNotWith(string $suffix, string $string, string $message = '')

Asserts that a string ends not with a given suffix.

void
assertStringEndsWith(string $suffix, string $string, string $message = '')

Asserts that a string ends with a given suffix.

void
assertStringEqualsFile(string $expectedFile, string $actualString, string $message = '')

Asserts that the contents of a string is equal to the contents of a file.

void
assertStringEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = '')

Asserts that the contents of a string is equal to the contents of a file (canonicalizing).

void
assertStringEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = '')

Asserts that the contents of a string is equal to the contents of a file (ignoring case).

void
assertStringEqualsStringIgnoringLineEndings(string $expected, string $actual, string $message = '')

Asserts that two strings are equal except for line endings.

void
assertStringMatchesFormat(string $format, string $string, string $message = '')

Asserts that a string matches a given format string.

void
assertStringMatchesFormatFile(string $formatFile, string $string, string $message = '')

Asserts that a string matches a given format file.

void
assertStringNotContainsString(string $needle, string $haystack, string $message = '')

No description

void
assertStringNotContainsStringIgnoringCase(string $needle, string $haystack, string $message = '')

No description

void
assertStringNotEqualsFile(string $expectedFile, string $actualString, string $message = '')

Asserts that the contents of a string is not equal to the contents of a file.

void
assertStringNotEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = '')

Asserts that the contents of a string is not equal to the contents of a file (canonicalizing).

void
assertStringNotEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = '')

Asserts that the contents of a string is not equal to the contents of a file (ignoring case).

void
assertStringStartsNotWith(string $prefix, string $string, string $message = '')

Asserts that a string starts not with a given prefix.

void
assertStringStartsWith(string $prefix, string $string, string $message = '')

Asserts that a string starts with a given prefix.

void
assertThat(mixed $value, Constraint $constraint, string $message = '')

Evaluates a PHPUnit\Framework\Constraint matcher object.

void
assertTrue(mixed $condition, string $message = '')

Asserts that a condition is true.

void
assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile, string $message = '')

Asserts that two XML files are equal.

void
assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile, string $message = '')

Asserts that two XML files are not equal.

void
assertXmlStringEqualsXmlFile(string $expectedFile, string $actualXml, string $message = '')

Asserts that two XML documents are equal.

void
assertXmlStringEqualsXmlString(string $expectedXml, string $actualXml, string $message = '')

Asserts that two XML documents are equal.

void
assertXmlStringNotEqualsXmlFile(string $expectedFile, string $actualXml, string $message = '')

Asserts that two XML documents are not equal.

void
assertXmlStringNotEqualsXmlString(string $expectedXml, string $actualXml, string $message = '')

Asserts that two XML documents are not equal.

atLeast(int $requiredInvocations)

Returns a matcher that matches when the method is executed at least N times.

atLeastOnce()

Returns a matcher that matches when the method is executed at least once.

atMost(int $allowedInvocations)

Returns a matcher that matches when the method is executed at most N times.

callback(callable $callback)

No description

containsEqual(mixed $value)

No description

containsIdentical(mixed $value)

No description

containsOnlyArray()

No description

containsOnlyBool()

No description

containsOnlyCallable()

No description

containsOnlyClosedResource()

No description

containsOnlyFloat()

No description

containsOnlyInstancesOf(string $className)

No description

containsOnlyInt()

No description

containsOnlyIterable()

No description

containsOnlyNull()

No description

containsOnlyNumeric()

No description

containsOnlyObject()

No description

containsOnlyResource()

No description

containsOnlyScalar()

No description

containsOnlyString()

No description

countOf(int $count)

No description

directoryExists()

No description

equalTo(mixed $value)

No description

equalToCanonicalizing(mixed $value)

No description

equalToIgnoringCase(mixed $value)

No description

equalToWithDelta(mixed $value, float $delta)

No description

exactly(int $count)

Returns a matcher that matches when the method is executed exactly $count times.

fileExists()

No description

greaterThan(mixed $value)

No description

greaterThanOrEqual(mixed $value)

No description

identicalTo(mixed $value)

No description

isArray()

No description

isBool()

No description

isCallable()

No description

isClosedResource()

No description

isEmpty()

No description

isFalse()

No description

isFinite()

No description

isFloat()

No description

isInfinite()

No description

isInstanceOf(string $className)

No description

isInt()

No description

isIterable()

No description

isJson()

No description

isList()

No description

isNan()

No description

isNull()

No description

isNumeric()

No description

isObject()

No description

isReadable()

No description

isResource()

No description

isScalar()

No description

isString()

No description

isTrue()

No description

isWritable()

No description

lessThan(mixed $value)

No description

lessThanOrEqual(mixed $value)

No description

logicalAnd(mixed ...$constraints)

No description

logicalNot(Constraint $constraint)

No description

logicalOr(mixed ...$constraints)

No description

logicalXor(mixed ...$constraints)

No description

matches(string $string)

No description

matchesRegularExpression(string $pattern)

No description

never()

Returns a matcher that matches when the method is never executed.

objectEquals(object $object, string $method = 'equals')

No description

once()

Returns a matcher that matches when the method is executed exactly once.

stringContains(string $string, bool $case = true)

No description

stringEndsWith(string $suffix)

No description

stringEqualsStringIgnoringLineEndings(string $string)

No description

stringStartsWith(string $prefix)

No description

throwException(Throwable $exception)

No description