abstract class TestCase extends Assert implements Reorderable, SelfDescribing, Test (View source)

Methods

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

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

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

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

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

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

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

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

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

Asserts that an array has a specified key.

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

Asserts that an array does not have a specified key.

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

No description

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

Asserts that a haystack contains a needle.

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

No description

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

Asserts that a haystack does not contain a needle.

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

No description

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

Asserts that a haystack contains only values of type array.

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

Asserts that a haystack contains only values of type bool.

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

Asserts that a haystack contains only values of type callable.

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

Asserts that a haystack contains only values of type float.

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

Asserts that a haystack contains only values of type int.

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

Asserts that a haystack contains only values of type iterable.

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

Asserts that a haystack contains only values of type null.

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

Asserts that a haystack contains only values of type numeric.

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

Asserts that a haystack contains only values of type object.

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

Asserts that a haystack contains only values of type resource.

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

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

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

Asserts that a haystack contains only values of type scalar.

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

Asserts that a haystack contains only values of type string.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Asserts that two variables are equal.

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

Asserts that two variables are equal (canonicalizing).

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

Asserts that two variables are equal (ignoring case).

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

Asserts that two variables are equal (with delta).

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

Asserts that two variables are not equal.

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

Asserts that two variables are not equal (canonicalizing).

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

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

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

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

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

No description

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

No description

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

Asserts that a variable is empty.

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

Asserts that a variable is not empty.

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

Asserts that a value is greater than another value.

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

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

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

Asserts that a value is smaller than another value.

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

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

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

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

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

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

from  Assert
static 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).

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

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

from  Assert
static 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).

from  Assert
static 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).

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

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

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

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

from  Assert
static 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).

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

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

from  Assert
static 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).

from  Assert
static 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).

from  Assert
static void
assertIsReadable(string $filename, string $message = '')

Asserts that a file/dir is readable.

from  Assert
static void
assertIsNotReadable(string $filename, string $message = '')

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

from  Assert
static void
assertIsWritable(string $filename, string $message = '')

Asserts that a file/dir exists and is writable.

from  Assert
static void
assertIsNotWritable(string $filename, string $message = '')

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

from  Assert
static void
assertDirectoryExists(string $directory, string $message = '')

Asserts that a directory exists.

from  Assert
static void
assertDirectoryDoesNotExist(string $directory, string $message = '')

Asserts that a directory does not exist.

from  Assert
static void
assertDirectoryIsReadable(string $directory, string $message = '')

Asserts that a directory exists and is readable.

from  Assert
static void
assertDirectoryIsNotReadable(string $directory, string $message = '')

Asserts that a directory exists and is not readable.

from  Assert
static void
assertDirectoryIsWritable(string $directory, string $message = '')

Asserts that a directory exists and is writable.

from  Assert
static void
assertDirectoryIsNotWritable(string $directory, string $message = '')

Asserts that a directory exists and is not writable.

from  Assert
static void
assertFileExists(string $filename, string $message = '')

Asserts that a file exists.

from  Assert
static void
assertFileDoesNotExist(string $filename, string $message = '')

Asserts that a file does not exist.

from  Assert
static void
assertFileIsReadable(string $file, string $message = '')

Asserts that a file exists and is readable.

from  Assert
static void
assertFileIsNotReadable(string $file, string $message = '')

Asserts that a file exists and is not readable.

from  Assert
static void
assertFileIsWritable(string $file, string $message = '')

Asserts that a file exists and is writable.

from  Assert
static void
assertFileIsNotWritable(string $file, string $message = '')

Asserts that a file exists and is not writable.

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

Asserts that a condition is true.

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

Asserts that a condition is not true.

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

Asserts that a condition is false.

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

Asserts that a condition is not false.

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

Asserts that a variable is null.

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

Asserts that a variable is not null.

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

Asserts that a variable is finite.

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

Asserts that a variable is infinite.

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

Asserts that a variable is nan.

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

Asserts that an object has a specified property.

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

Asserts that an object does not have a specified property.

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

Asserts that two variables have the same type and value.

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

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

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

Asserts that a variable is of a given type.

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

Asserts that a variable is not of a given type.

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

Asserts that a variable is of type array.

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

Asserts that a variable is of type bool.

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

Asserts that a variable is of type float.

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

Asserts that a variable is of type int.

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

Asserts that a variable is of type numeric.

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

Asserts that a variable is of type object.

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

Asserts that a variable is of type resource.

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

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

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

Asserts that a variable is of type string.

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

Asserts that a variable is of type scalar.

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

Asserts that a variable is of type callable.

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

Asserts that a variable is of type iterable.

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

Asserts that a variable is not of type array.

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

Asserts that a variable is not of type bool.

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

Asserts that a variable is not of type float.

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

Asserts that a variable is not of type int.

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

Asserts that a variable is not of type numeric.

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

Asserts that a variable is not of type object.

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

Asserts that a variable is not of type resource.

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

Asserts that a variable is not of type resource.

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

Asserts that a variable is not of type string.

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

Asserts that a variable is not of type scalar.

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

Asserts that a variable is not of type callable.

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

Asserts that a variable is not of type iterable.

from  Assert
static void
assertMatchesRegularExpression(string $pattern, string $string, string $message = '')

Asserts that a string matches a given regular expression.

from  Assert
static void
assertDoesNotMatchRegularExpression(string $pattern, string $string, string $message = '')

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

from  Assert
static 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.

from  Assert
static 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.

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

No description

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

Asserts that two strings are equal except for line endings.

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

Asserts that a string matches a given format string.

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

Asserts that a string matches a given format string.

from  Assert
static void
assertStringMatchesFormat(string $format, string $string, string $message = '')

Asserts that a string matches a given format string.

from  Assert
static void
assertStringMatchesFormatFile(string $formatFile, string $string, string $message = '')

Asserts that a string matches a given format file.

from  Assert
static void
assertStringStartsWith(string $prefix, string $string, string $message = '')

Asserts that a string starts with a given prefix.

from  Assert
static void
assertStringStartsNotWith(string $prefix, string $string, string $message = '')

Asserts that a string starts not with a given prefix.

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

No description

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

No description

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

No description

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

No description

from  Assert
static void
assertStringEndsWith(string $suffix, string $string, string $message = '')

Asserts that a string ends with a given suffix.

from  Assert
static void
assertStringEndsNotWith(string $suffix, string $string, string $message = '')

Asserts that a string ends not with a given suffix.

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

Asserts that two XML files are equal.

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

Asserts that two XML files are not equal.

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

Asserts that two XML documents are equal.

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

Asserts that two XML documents are not equal.

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

Asserts that two XML documents are equal.

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

Asserts that two XML documents are not equal.

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

Evaluates a PHPUnit\Framework\Constraint matcher object.

from  Assert
static void
assertJson(string $actual, string $message = '')

Asserts that a string is a valid JSON string.

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

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

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

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

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

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

from  Assert
static 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.

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

Asserts that two JSON files are equal.

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

Asserts that two JSON files are not equal.

from  Assert
static LogicalAnd
logicalAnd(mixed ...$constraints)

No description

from  Assert
static LogicalOr
logicalOr(mixed ...$constraints)

No description

from  Assert
static LogicalNot
logicalNot(Constraint $constraint)

No description

from  Assert
static LogicalXor
logicalXor(mixed ...$constraints)

No description

from  Assert
static IsAnything
anything()

No description

from  Assert
static IsTrue
isTrue()

No description

from  Assert
static Callback
callback(callable $callback)

No description

from  Assert
static IsFalse
isFalse()

No description

from  Assert
static IsJson
isJson()

No description

from  Assert
static IsNull
isNull()

No description

from  Assert
static IsFinite
isFinite()

No description

from  Assert
static IsInfinite
isInfinite()

No description

from  Assert
static IsNan
isNan()

No description

from  Assert
containsEqual(mixed $value)

No description

from  Assert
containsIdentical(mixed $value)

No description

from  Assert
containsOnlyArray()

No description

from  Assert
containsOnlyBool()

No description

from  Assert
containsOnlyCallable()

No description

from  Assert
containsOnlyFloat()

No description

from  Assert
containsOnlyInt()

No description

from  Assert
containsOnlyIterable()

No description

from  Assert
containsOnlyNull()

No description

from  Assert
containsOnlyNumeric()

No description

from  Assert
containsOnlyObject()

No description

from  Assert
containsOnlyResource()

No description

from  Assert
containsOnlyScalar()

No description

from  Assert
containsOnlyString()

No description

from  Assert
containsOnlyInstancesOf(string $className)

No description

from  Assert
static ArrayHasKey
arrayHasKey(mixed $key)

No description

from  Assert
static IsList
isList()

No description

from  Assert
static IsEqual
equalTo(mixed $value)

No description

from  Assert
equalToCanonicalizing(mixed $value)

No description

from  Assert
equalToIgnoringCase(mixed $value)

No description

from  Assert
equalToWithDelta(mixed $value, float $delta)

No description

from  Assert
static IsEmpty
isEmpty()

No description

from  Assert
static IsWritable
isWritable()

No description

from  Assert
static IsReadable
isReadable()

No description

from  Assert
static DirectoryExists
directoryExists()

No description

from  Assert
static FileExists
fileExists()

No description

from  Assert
static GreaterThan
greaterThan(mixed $value)

No description

from  Assert
static LogicalOr
greaterThanOrEqual(mixed $value)

No description

from  Assert
static IsIdentical
identicalTo(mixed $value)

No description

from  Assert
static IsInstanceOf
isInstanceOf(string $className)

No description

from  Assert
static IsType
isArray()

No description

from  Assert
static IsType
isBool()

No description

from  Assert
static IsType
isCallable()

No description

from  Assert
static IsType
isFloat()

No description

from  Assert
static IsType
isInt()

No description

from  Assert
static IsType
isIterable()

No description

from  Assert
static IsType
isNumeric()

No description

from  Assert
static IsType
isObject()

No description

from  Assert
static IsType
isResource()

No description

from  Assert
static IsType
isClosedResource()

No description

from  Assert
static IsType
isScalar()

No description

from  Assert
static IsType
isString()

No description

from  Assert
static LessThan
lessThan(mixed $value)

No description

from  Assert
static LogicalOr
lessThanOrEqual(mixed $value)

No description

from  Assert
matchesRegularExpression(string $pattern)

No description

from  Assert
matches(string $string)

No description

from  Assert
stringStartsWith(string $prefix)

No description

from  Assert
static StringContains
stringContains(string $string, bool $case = true)

No description

from  Assert
static StringEndsWith
stringEndsWith(string $suffix)

No description

from  Assert
static Count
countOf(int $count)

No description

from  Assert
static ObjectEquals
objectEquals(object $object, string $method = 'equals')

No description

from  Assert
static never
fail(string $message = '')

Fails a test with the given message.

from  Assert
static never
markTestIncomplete(string $message = '')

Mark the test as incomplete.

from  Assert
static never
markTestSkipped(string $message = '')

Mark the test as skipped.

from  Assert
static int
getCount()

Return the current assertion count.

from  Assert
static void
resetCount()

Reset the assertion counter.

from  Assert
__construct(string $name)

No description

static void
setUpBeforeClass()

This method is called before the first test of this test class is run.

static void
tearDownAfterClass()

This method is called after the last test of this test class is run.

void
setUp()

This method is called before each test.

void
assertPreConditions()

Performs assertions shared by all tests of a test case.

void
assertPostConditions()

Performs assertions shared by all tests of a test case.

void
tearDown()

This method is called after each test.

string
toString()

Returns a string representation of the test case.

int
count()

No description

status()

No description

void
run()

No description

array
groups()

No description

void
setGroups(array $groups)

No description

string
nameWithDataSet()

No description

string
name()

No description

size()

No description

bool
hasUnexpectedOutput()

No description

string
output()

No description

bool
doesNotPerformAssertions()

No description

bool
expectsOutput()

No description

void
runBare()

No description

void
setDependencies(array $dependencies)

No description

void
setDependencyInput(array $dependencyInput)

No description

array
dependencyInput()

No description

bool
hasDependencyInput()

No description

void
setBackupGlobals(bool $backupGlobals)

No description

void
setBackupGlobalsExcludeList(array $backupGlobalsExcludeList)

No description

void
setBackupStaticProperties(bool $backupStaticProperties)

No description

void
setBackupStaticPropertiesExcludeList(array $backupStaticPropertiesExcludeList)

No description

void
setRunTestInSeparateProcess(bool $runTestInSeparateProcess)

No description

void
setPreserveGlobalState(bool $preserveGlobalState)

No description

void
setInIsolation(bool $inIsolation)

No description

mixed
result()

No description

void
setResult(mixed $result)

No description

void
registerMockObject(string $type, MockObject $mockObject)

No description

void
addToAssertionCount(int $count)

No description

int
numberOfAssertionsPerformed()

No description

bool
usesDataProvider()

No description

int|string
dataName()

No description

string
dataSetAsString()

No description

string
dataSetAsStringWithData()

No description

array
providedData()

No description

string
sortId()

No description

array
provides()

No description

array
requires()

No description

void
setData(int|string $dataName, array $data)

No description

valueObjectForEvents()

No description

bool
wasPrepared()

No description

any()

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

never()

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

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.

once()

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

exactly(int $count)

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

atMost(int $allowedInvocations)

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

throwException(Throwable $exception)

No description

string
getActualOutputForAssertion()

No description

void
expectOutputRegex(string $expectedRegex)

No description

void
expectOutputString(string $expectedString)

No description

void
expectErrorLog()

No description

void
expectException(string $exception)

No description

void
expectExceptionCode(int|string $code)

No description

void
expectExceptionMessage(string $message)

No description

void
expectExceptionMessageMatches(string $regularExpression)

No description

void
expectExceptionObject(Throwable $exception)

Sets up an expectation for an exception to be raised by the code under test.

void
expectNotToPerformAssertions()

No description

void
expectUserDeprecationMessage(string $expectedUserDeprecationMessage)

No description

void
expectUserDeprecationMessageMatches(string $expectedUserDeprecationMessageRegularExpression)

No description

getMockBuilder(string $className)

Returns a builder object to create mock objects using a fluent interface.

void
registerComparator(Comparator $comparator)

No description

void
registerFailureType(string $classOrInterface)

No description

createMock(string $type)

Creates a mock object for the specified interface or class.

createMockForIntersectionOfInterfaces(array $interfaces)

No description

createConfiguredMock(string $type, array $configuration)

Creates (and configures) a mock object for the specified interface or class.

createPartialMock(string $type, array $methods)

Creates a partial mock object for the specified interface or class.

void
provideAdditionalInformation(string $additionalInformation)

No description

never
onNotSuccessfulTest(Throwable $t)

This method is called when a test method did not execute successfully.

static TestStubBuilder
getStubBuilder(string $className)

Returns a builder object to create test stubs using a fluent interface.

static Stub
createStub(string $type)

Creates a test stub for the specified interface or class.

static Stub
createStubForIntersectionOfInterfaces(array $interfaces)

No description

static Stub
createConfiguredStub(string $type, array $configuration)

Creates (and configures) a test stub for the specified interface or class.

Details

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

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

Parameters

array $expected
array $actual
array $keysToBeConsidered
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

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

Parameters

array $expected
array $actual
array $keysToBeIgnored
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

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

Parameters

array $expected
array $actual
array $keysToBeConsidered
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

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

Parameters

array $expected
array $actual
array $keysToBeIgnored
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that an array has a specified key.

Parameters

mixed $key
array|ArrayAccess $array
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that an array does not have a specified key.

Parameters

mixed $key
array|ArrayAccess $array
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

No description

Parameters

mixed $array
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains a needle.

Parameters

mixed $needle
iterable $haystack
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

No description

Parameters

mixed $needle
iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack does not contain a needle.

Parameters

mixed $needle
iterable $haystack
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

No description

Parameters

mixed $needle
iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type array.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type bool.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type callable.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type float.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type int.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type iterable.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type null.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type numeric.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type object.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type resource.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type scalar.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a haystack contains only values of type string.

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $className
iterable $haystack
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

iterable $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $className
iterable $haystack
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

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

Parameters

int $expectedCount
Countable|iterable $haystack
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException
GeneratorNotSupportedException

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

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

Parameters

int $expectedCount
Countable|iterable $haystack
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException
GeneratorNotSupportedException

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

Asserts that two variables are equal.

Parameters

mixed $expected
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two variables are equal (canonicalizing).

Parameters

mixed $expected
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two variables are equal (ignoring case).

Parameters

mixed $expected
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two variables are equal (with delta).

Parameters

mixed $expected
mixed $actual
float $delta
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two variables are not equal.

Parameters

mixed $expected
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two variables are not equal (canonicalizing).

Parameters

mixed $expected
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

mixed $expected
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

mixed $expected
mixed $actual
float $delta
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

No description

Parameters

object $expected
object $actual
string $method
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

No description

Parameters

object $expected
object $actual
string $method
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a variable is empty.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException
GeneratorNotSupportedException

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

Asserts that a variable is not empty.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException
GeneratorNotSupportedException

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

Asserts that a value is greater than another value.

Parameters

mixed $minimum
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

mixed $minimum
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a value is smaller than another value.

Parameters

mixed $maximum
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

mixed $maximum
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expected
string $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expected
string $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Parameters

string $expected
string $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expected
string $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Parameters

string $expected
string $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Parameters

string $expected
string $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expectedFile
string $actualString
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expectedFile
string $actualString
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Parameters

string $expectedFile
string $actualString
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expectedFile
string $actualString
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Parameters

string $expectedFile
string $actualString
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Parameters

string $expectedFile
string $actualString
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a file/dir is readable.

Parameters

string $filename
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $filename
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a file/dir exists and is writable.

Parameters

string $filename
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $filename
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a directory exists.

Parameters

string $directory
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a directory does not exist.

Parameters

string $directory
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a directory exists and is readable.

Parameters

string $directory
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a directory exists and is not readable.

Parameters

string $directory
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a directory exists and is writable.

Parameters

string $directory
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a directory exists and is not writable.

Parameters

string $directory
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a file exists.

Parameters

string $filename
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a file does not exist.

Parameters

string $filename
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a file exists and is readable.

Parameters

string $file
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a file exists and is not readable.

Parameters

string $file
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a file exists and is writable.

Parameters

string $file
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a file exists and is not writable.

Parameters

string $file
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a condition is true.

Parameters

mixed $condition
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a condition is not true.

Parameters

mixed $condition
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a condition is false.

Parameters

mixed $condition
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a condition is not false.

Parameters

mixed $condition
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a variable is null.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a variable is not null.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a variable is finite.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a variable is infinite.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a variable is nan.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that an object has a specified property.

Parameters

string $propertyName
object $object
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that an object does not have a specified property.

Parameters

string $propertyName
object $object
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two variables have the same type and value.

Used on objects, it asserts that two variables reference the same object.

Parameters

mixed $expected
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Used on objects, it asserts that two variables do not reference the same object.

Parameters

mixed $expected
mixed $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a variable is of a given type.

Parameters

string $expected
mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException
UnknownClassOrInterfaceException

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

Asserts that a variable is not of a given type.

Parameters

string $expected
mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type array.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type bool.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type float.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type int.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type numeric.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type object.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type resource.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

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

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type string.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type scalar.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type callable.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is of type iterable.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type array.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type bool.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type float.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type int.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type numeric.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type object.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type resource.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type resource.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type string.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type scalar.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type callable.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a variable is not of type iterable.

Parameters

mixed $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that a string matches a given regular expression.

Parameters

string $pattern
string $string
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $pattern
string $string
string $message

Return Value

void

Exceptions

ExpectationFailedException

final static 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.

Parameters

Countable|iterable $expected
Countable|iterable $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException
GeneratorNotSupportedException

final static 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.

Parameters

Countable|iterable $expected
Countable|iterable $actual
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException
GeneratorNotSupportedException

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

No description

Parameters

string $needle
string $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two strings are equal except for line endings.

Parameters

string $expected
string $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a string matches a given format string.

Parameters

string $format
string $actualFile
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a string matches a given format string.

Parameters

string $formatFile
string $actualFile
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a string matches a given format string.

Parameters

string $format
string $string
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a string matches a given format file.

Parameters

string $formatFile
string $string
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a string starts with a given prefix.

Parameters

string $prefix
string $string
string $message

Return Value

void

Exceptions

ExpectationFailedException
InvalidArgumentException

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

Asserts that a string starts not with a given prefix.

Parameters

string $prefix
string $string
string $message

Return Value

void

Exceptions

ExpectationFailedException
InvalidArgumentException

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

No description

Parameters

string $needle
string $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

No description

Parameters

string $needle
string $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

No description

Parameters

string $needle
string $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

No description

Parameters

string $needle
string $haystack
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a string ends with a given suffix.

Parameters

string $suffix
string $string
string $message

Return Value

void

Exceptions

ExpectationFailedException
InvalidArgumentException

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

Asserts that a string ends not with a given suffix.

Parameters

string $suffix
string $string
string $message

Return Value

void

Exceptions

ExpectationFailedException
InvalidArgumentException

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

Asserts that two XML files are equal.

Parameters

string $expectedFile
string $actualFile
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException
XmlException

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

Asserts that two XML files are not equal.

Parameters

string $expectedFile
string $actualFile
string $message

Return Value

void

Exceptions

Exception
ExpectationFailedException

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

Asserts that two XML documents are equal.

Parameters

string $expectedFile
string $actualXml
string $message

Return Value

void

Exceptions

ExpectationFailedException
XmlException

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

Asserts that two XML documents are not equal.

Parameters

string $expectedFile
string $actualXml
string $message

Return Value

void

Exceptions

ExpectationFailedException
XmlException

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

Asserts that two XML documents are equal.

Parameters

string $expectedXml
string $actualXml
string $message

Return Value

void

Exceptions

ExpectationFailedException
XmlException

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

Asserts that two XML documents are not equal.

Parameters

string $expectedXml
string $actualXml
string $message

Return Value

void

Exceptions

ExpectationFailedException
XmlException

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

Evaluates a PHPUnit\Framework\Constraint matcher object.

Parameters

mixed $value
Constraint $constraint
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that a string is a valid JSON string.

Parameters

string $actual
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expectedJson
string $actualJson
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expectedJson
string $actualJson
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

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

Parameters

string $expectedFile
string $actualJson
string $message

Return Value

void

Exceptions

ExpectationFailedException

final static 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.

Parameters

string $expectedFile
string $actualJson
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two JSON files are equal.

Parameters

string $expectedFile
string $actualFile
string $message

Return Value

void

Exceptions

ExpectationFailedException

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

Asserts that two JSON files are not equal.

Parameters

string $expectedFile
string $actualFile
string $message

Return Value

void

Exceptions

ExpectationFailedException

final static LogicalAnd logicalAnd(mixed ...$constraints)

No description

Parameters

mixed ...$constraints

Return Value

LogicalAnd

Exceptions

Exception

final static LogicalOr logicalOr(mixed ...$constraints)

No description

Parameters

mixed ...$constraints

Return Value

LogicalOr

final static LogicalNot logicalNot(Constraint $constraint)

No description

Parameters

Constraint $constraint

Return Value

LogicalNot

final static LogicalXor logicalXor(mixed ...$constraints)

No description

Parameters

mixed ...$constraints

Return Value

LogicalXor

final static IsAnything anything()

No description

Return Value

IsAnything

final static IsTrue isTrue()

No description

Return Value

IsTrue

final static Callback callback(callable $callback)

No description

Parameters

callable $callback

Return Value

Callback

final static IsFalse isFalse()

No description

Return Value

IsFalse

final static IsJson isJson()

No description

Return Value

IsJson

final static IsNull isNull()

No description

Return Value

IsNull

final static IsFinite isFinite()

No description

Return Value

IsFinite

final static IsInfinite isInfinite()

No description

Return Value

IsInfinite

final static IsNan isNan()

No description

Return Value

IsNan

final static TraversableContainsEqual containsEqual(mixed $value)

No description

Parameters

mixed $value

Return Value

TraversableContainsEqual

final static TraversableContainsIdentical containsIdentical(mixed $value)

No description

Parameters

mixed $value

Return Value

TraversableContainsIdentical

final static TraversableContainsOnly containsOnlyArray()

No description

final static TraversableContainsOnly containsOnlyBool()

No description

final static TraversableContainsOnly containsOnlyCallable()

No description

final static TraversableContainsOnly containsOnlyFloat()

No description

final static TraversableContainsOnly containsOnlyInt()

No description

final static TraversableContainsOnly containsOnlyIterable()

No description

final static TraversableContainsOnly containsOnlyNull()

No description

final static TraversableContainsOnly containsOnlyNumeric()

No description

final static TraversableContainsOnly containsOnlyObject()

No description

final static TraversableContainsOnly containsOnlyResource()

No description

final static TraversableContainsOnly containsOnlyClosedResource()

No description

final static TraversableContainsOnly containsOnlyScalar()

No description

final static TraversableContainsOnly containsOnlyString()

No description

final static TraversableContainsOnly containsOnlyInstancesOf(string $className)

No description

Parameters

string $className

Return Value

TraversableContainsOnly

Exceptions

Exception

final static ArrayHasKey arrayHasKey(mixed $key)

No description

Parameters

mixed $key

Return Value

ArrayHasKey

final static IsList isList()

No description

Return Value

IsList

final static IsEqual equalTo(mixed $value)

No description

Parameters

mixed $value

Return Value

IsEqual

final static IsEqualCanonicalizing equalToCanonicalizing(mixed $value)

No description

Parameters

mixed $value

Return Value

IsEqualCanonicalizing

final static IsEqualIgnoringCase equalToIgnoringCase(mixed $value)

No description

Parameters

mixed $value

Return Value

IsEqualIgnoringCase

final static IsEqualWithDelta equalToWithDelta(mixed $value, float $delta)

No description

Parameters

mixed $value
float $delta

Return Value

IsEqualWithDelta

final static IsEmpty isEmpty()

No description

Return Value

IsEmpty

final static IsWritable isWritable()

No description

Return Value

IsWritable

final static IsReadable isReadable()

No description

Return Value

IsReadable

final static DirectoryExists directoryExists()

No description

Return Value

DirectoryExists

final static FileExists fileExists()

No description

Return Value

FileExists

final static GreaterThan greaterThan(mixed $value)

No description

Parameters

mixed $value

Return Value

GreaterThan

final static LogicalOr greaterThanOrEqual(mixed $value)

No description

Parameters

mixed $value

Return Value

LogicalOr

final static IsIdentical identicalTo(mixed $value)

No description

Parameters

mixed $value

Return Value

IsIdentical

final static IsInstanceOf isInstanceOf(string $className)

No description

Parameters

string $className

Return Value

IsInstanceOf

Exceptions

UnknownClassOrInterfaceException

final static IsType isArray()

No description

Return Value

IsType

final static IsType isBool()

No description

Return Value

IsType

final static IsType isCallable()

No description

Return Value

IsType

final static IsType isFloat()

No description

Return Value

IsType

final static IsType isInt()

No description

Return Value

IsType

final static IsType isIterable()

No description

Return Value

IsType

final static IsType isNumeric()

No description

Return Value

IsType

final static IsType isObject()

No description

Return Value

IsType

final static IsType isResource()

No description

Return Value

IsType

final static IsType isClosedResource()

No description

Return Value

IsType

final static IsType isScalar()

No description

Return Value

IsType

final static IsType isString()

No description

Return Value

IsType

final static LessThan lessThan(mixed $value)

No description

Parameters

mixed $value

Return Value

LessThan

final static LogicalOr lessThanOrEqual(mixed $value)

No description

Parameters

mixed $value

Return Value

LogicalOr

final static RegularExpression matchesRegularExpression(string $pattern)

No description

Parameters

string $pattern

Return Value

RegularExpression

final static StringMatchesFormatDescription matches(string $string)

No description

Parameters

string $string

Return Value

StringMatchesFormatDescription

final static StringStartsWith stringStartsWith(string $prefix)

No description

Parameters

string $prefix

Return Value

StringStartsWith

Exceptions

InvalidArgumentException

final static StringContains stringContains(string $string, bool $case = true)

No description

Parameters

string $string
bool $case

Return Value

StringContains

final static StringEndsWith stringEndsWith(string $suffix)

No description

Parameters

string $suffix

Return Value

StringEndsWith

Exceptions

InvalidArgumentException

final static StringEqualsStringIgnoringLineEndings stringEqualsStringIgnoringLineEndings(string $string)

No description

Parameters

string $string

Return Value

StringEqualsStringIgnoringLineEndings

final static Count countOf(int $count)

No description

Parameters

int $count

Return Value

Count

final static ObjectEquals objectEquals(object $object, string $method = 'equals')

No description

Parameters

object $object
string $method

Return Value

ObjectEquals

final static never fail(string $message = '')

Fails a test with the given message.

Parameters

string $message

Return Value

never

Exceptions

AssertionFailedError

final static never markTestIncomplete(string $message = '')

Mark the test as incomplete.

Parameters

string $message

Return Value

never

Exceptions

IncompleteTestError

final static never markTestSkipped(string $message = '')

Mark the test as skipped.

Parameters

string $message

Return Value

never

Exceptions

SkippedWithMessageException

final static int getCount()

Return the current assertion count.

Return Value

int

final static void resetCount()

Reset the assertion counter.

Return Value

void

final __construct(string $name)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

string $name

static void setUpBeforeClass()

This method is called before the first test of this test class is run.

Return Value

void

static void tearDownAfterClass()

This method is called after the last test of this test class is run.

Return Value

void

protected void setUp()

This method is called before each test.

Return Value

void

protected void assertPreConditions()

Performs assertions shared by all tests of a test case.

This method is called between setUp() and test.

Return Value

void

protected void assertPostConditions()

Performs assertions shared by all tests of a test case.

This method is called between test and tearDown().

Return Value

void

protected void tearDown()

This method is called after each test.

Return Value

void

string toString()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

Returns a string representation of the test case.

Return Value

string

Exceptions

Exception

final int count()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

int

final TestStatus status()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

TestStatus

final void run()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

void

Exceptions

Exception
Exception
InvalidArgumentException
InvalidArgumentException
Exception
NoPreviousThrowableException
ProcessIsolationException
UnintentionallyCoveredCodeException

final array groups()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

array

final void setGroups(array $groups)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

array $groups

Return Value

void

final string nameWithDataSet()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

string

final string name()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

string

final TestSize size()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

TestSize

final bool hasUnexpectedOutput()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

bool

final string output()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

string

final bool doesNotPerformAssertions()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

bool

final bool expectsOutput()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

bool

final void runBare()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

void

Exceptions

Throwable

final void setDependencies(array $dependencies)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

array $dependencies

Return Value

void

final void setDependencyInput(array $dependencyInput)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

array $dependencyInput

Return Value

void

final array dependencyInput()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

array

final bool hasDependencyInput()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

bool

final void setBackupGlobals(bool $backupGlobals)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

bool $backupGlobals

Return Value

void

final void setBackupGlobalsExcludeList(array $backupGlobalsExcludeList)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

array $backupGlobalsExcludeList

Return Value

void

final void setBackupStaticProperties(bool $backupStaticProperties)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

bool $backupStaticProperties

Return Value

void

final void setBackupStaticPropertiesExcludeList(array $backupStaticPropertiesExcludeList)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

array $backupStaticPropertiesExcludeList

Return Value

void

final void setRunTestInSeparateProcess(bool $runTestInSeparateProcess)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

bool $runTestInSeparateProcess

Return Value

void

final void setPreserveGlobalState(bool $preserveGlobalState)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

bool $preserveGlobalState

Return Value

void

final void setInIsolation(bool $inIsolation)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

bool $inIsolation

Return Value

void

final mixed result()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

mixed

final void setResult(mixed $result)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

mixed $result

Return Value

void

final void registerMockObject(string $type, MockObject $mockObject)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

string $type
MockObject $mockObject

Return Value

void

final void addToAssertionCount(int $count)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

int $count

Return Value

void

final int numberOfAssertionsPerformed()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

int

final bool usesDataProvider()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

bool

final int|string dataName()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

int|string

final string dataSetAsString()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

string

final string dataSetAsStringWithData()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

string

final array providedData()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

array

final string sortId()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

string

final array provides()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

array

final array requires()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

array

final void setData(int|string $dataName, array $data)

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Parameters

int|string $dataName
array $data

Return Value

void

final TestMethod valueObjectForEvents()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

TestMethod

final bool wasPrepared()

internal  This method is not covered by the backward compatibility promise for PHPUnit
 

No description

Return Value

bool

final protected AnyInvokedCount any()

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

Return Value

AnyInvokedCount

final protected InvokedCount never()

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

Return Value

InvokedCount

final protected InvokedAtLeastCount atLeast(int $requiredInvocations)

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

Parameters

int $requiredInvocations

Return Value

InvokedAtLeastCount

final protected InvokedAtLeastOnce atLeastOnce()

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

Return Value

InvokedAtLeastOnce

final protected InvokedCount once()

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

Return Value

InvokedCount

final protected InvokedCount exactly(int $count)

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

Parameters

int $count

Return Value

InvokedCount

final protected InvokedAtMostCount atMost(int $allowedInvocations)

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

Parameters

int $allowedInvocations

Return Value

InvokedAtMostCount

final protected Exception throwException(Throwable $exception)

No description

Parameters

Throwable $exception

Return Value

Exception

final protected string getActualOutputForAssertion()

No description

Return Value

string

final protected void expectOutputRegex(string $expectedRegex)

No description

Parameters

string $expectedRegex

Return Value

void

final protected void expectOutputString(string $expectedString)

No description

Parameters

string $expectedString

Return Value

void

final protected void expectErrorLog()

No description

Return Value

void

final protected void expectException(string $exception)

No description

Parameters

string $exception

Return Value

void

final protected void expectExceptionCode(int|string $code)

No description

Parameters

int|string $code

Return Value

void

final protected void expectExceptionMessage(string $message)

No description

Parameters

string $message

Return Value

void

final protected void expectExceptionMessageMatches(string $regularExpression)

No description

Parameters

string $regularExpression

Return Value

void

final protected void expectExceptionObject(Throwable $exception)

Sets up an expectation for an exception to be raised by the code under test.

Information for expected exception class, expected exception message, and expected exception code are retrieved from a given Exception object.

Parameters

Throwable $exception

Return Value

void

final protected void expectNotToPerformAssertions()

No description

Return Value

void

final protected void expectUserDeprecationMessage(string $expectedUserDeprecationMessage)

No description

Parameters

string $expectedUserDeprecationMessage

Return Value

void

final protected void expectUserDeprecationMessageMatches(string $expectedUserDeprecationMessageRegularExpression)

No description

Parameters

string $expectedUserDeprecationMessageRegularExpression

Return Value

void

final protected MockBuilder getMockBuilder(string $className)

Returns a builder object to create mock objects using a fluent interface.

Parameters

string $className

Return Value

MockBuilder

final protected void registerComparator(Comparator $comparator)

No description

Parameters

Comparator $comparator

Return Value

void

final protected void registerFailureType(string $classOrInterface)

No description

Parameters

string $classOrInterface

Return Value

void

final protected MockObject createMock(string $type)

Creates a mock object for the specified interface or class.

Parameters

string $type

Return Value

MockObject

Exceptions

InvalidArgumentException
Exception
NoPreviousThrowableException

final protected MockObject createMockForIntersectionOfInterfaces(array $interfaces)

No description

Parameters

array $interfaces

Return Value

MockObject

Exceptions

Exception

final protected MockObject createConfiguredMock(string $type, array $configuration)

Creates (and configures) a mock object for the specified interface or class.

Parameters

string $type
array $configuration

Return Value

MockObject

Exceptions

InvalidArgumentException
Exception
NoPreviousThrowableException

final protected MockObject createPartialMock(string $type, array $methods)

Creates a partial mock object for the specified interface or class.

Parameters

string $type
array $methods

Return Value

MockObject

Exceptions

InvalidArgumentException
Exception

final protected void provideAdditionalInformation(string $additionalInformation)

No description

Parameters

string $additionalInformation

Return Value

void

protected Throwable transformException(Throwable $t)

No description

Parameters

Throwable $t

Return Value

Throwable

protected never onNotSuccessfulTest(Throwable $t)

This method is called when a test method did not execute successfully.

Parameters

Throwable $t

Return Value

never

Exceptions

Throwable

final static protected TestStubBuilder getStubBuilder(string $className)

Returns a builder object to create test stubs using a fluent interface.

Parameters

string $className

Return Value

TestStubBuilder

final static protected Stub createStub(string $type)

Creates a test stub for the specified interface or class.

Parameters

string $type

Return Value

Stub

Exceptions

InvalidArgumentException
Exception
NoPreviousThrowableException

final static protected Stub createStubForIntersectionOfInterfaces(array $interfaces)

No description

Parameters

array $interfaces

Return Value

Stub

Exceptions

Exception

final static protected Stub createConfiguredStub(string $type, array $configuration)

Creates (and configures) a test stub for the specified interface or class.

Parameters

string $type
array $configuration

Return Value

Stub

Exceptions

InvalidArgumentException
Exception
NoPreviousThrowableException