function any() : PHPUnit\Framework\MockObject\Rule\AnyInvokedCount
 

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


function anything() : PHPUnit\Framework\Constraint\IsAnything
function arrayHasKey( $key) : PHPUnit\Framework\Constraint\ArrayHasKey
function assertArrayHasKey( $key, $array, string $message = '') : void
 

Asserts that an array has a specified key.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertArrayHasKey

function assertArrayNotHasKey( $key, $array, string $message = '') : void
 

Asserts that an array does not have a specified key.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertArrayNotHasKey

function assertArraySubset( $subset, $array, bool $checkForObjectIdentity = false, string $message = '') : void
 

Asserts that an array has a specified subset.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • codeCoverageIgnore
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3494
  • see \Assert::assertArraySubset

function assertAttributeContains( $needle, string $haystackAttributeName, $haystackClassOrObject, string $message = '', bool $ignoreCase = false, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false) : void
 

Asserts that a haystack that is stored in a static attribute of a class
or an attribute of an object contains a needle.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeContains

function assertAttributeContainsOnly(string $type, string $haystackAttributeName, $haystackClassOrObject, ?bool $isNativeType = NULL, string $message = '') : void
 

Asserts that a haystack that is stored in a static attribute of a class
or an attribute of an object contains only values of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeContainsOnly

function assertAttributeCount(int $expectedCount, string $haystackAttributeName, $haystackClassOrObject, string $message = '') : void
 

Asserts the number of elements of an array, Countable or Traversable
that is stored in an attribute.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeCount

function assertAttributeEmpty(string $haystackAttributeName, $haystackClassOrObject, string $message = '') : void
 

Asserts that a static attribute of a class or an attribute of an object
is empty.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeEmpty

function assertAttributeEquals( $expected, string $actualAttributeName, $actualClassOrObject, string $message = '', float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : void
 

Asserts that a variable is equal to an attribute of an object.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeEquals

function assertAttributeGreaterThan( $expected, string $actualAttributeName, $actualClassOrObject, string $message = '') : void
 

Asserts that an attribute is greater than another value.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeGreaterThan

function assertAttributeGreaterThanOrEqual( $expected, string $actualAttributeName, $actualClassOrObject, string $message = '') : void
 

Asserts that an attribute is greater than or equal to another value.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeGreaterThanOrEqual

function assertAttributeInstanceOf(string $expected, string $attributeName, $classOrObject, string $message = '') : void
 

Asserts that an attribute is of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • psalm-param class-string $expected
  • see \Assert::assertAttributeInstanceOf

function assertAttributeInternalType(string $expected, string $attributeName, $classOrObject, string $message = '') : void
 

Asserts that an attribute is of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeInternalType

function assertAttributeLessThan( $expected, string $actualAttributeName, $actualClassOrObject, string $message = '') : void
 

Asserts that an attribute is smaller than another value.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeLessThan

function assertAttributeLessThanOrEqual( $expected, string $actualAttributeName, $actualClassOrObject, string $message = '') : void
 

Asserts that an attribute is smaller than or equal to another value.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeLessThanOrEqual

function assertAttributeNotContains( $needle, string $haystackAttributeName, $haystackClassOrObject, string $message = '', bool $ignoreCase = false, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false) : void
 

Asserts that a haystack that is stored in a static attribute of a class
or an attribute of an object does not contain a needle.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeNotContains

function assertAttributeNotContainsOnly(string $type, string $haystackAttributeName, $haystackClassOrObject, ?bool $isNativeType = NULL, string $message = '') : void
 

Asserts that a haystack that is stored in a static attribute of a class
or an attribute of an object does not contain only values of a given
type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeNotContainsOnly

function assertAttributeNotCount(int $expectedCount, string $haystackAttributeName, $haystackClassOrObject, string $message = '') : void
 

Asserts the number of elements of an array, Countable or Traversable
that is stored in an attribute.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeNotCount

function assertAttributeNotEmpty(string $haystackAttributeName, $haystackClassOrObject, string $message = '') : void
 

Asserts that a static attribute of a class or an attribute of an object
is not empty.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeNotEmpty

function assertAttributeNotEquals( $expected, string $actualAttributeName, $actualClassOrObject, string $message = '', float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : void
 

Asserts that a variable is not equal to an attribute of an object.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeNotEquals

function assertAttributeNotInstanceOf(string $expected, string $attributeName, $classOrObject, string $message = '') : void
 

Asserts that an attribute is of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • psalm-param class-string $expected
  • see \Assert::assertAttributeNotInstanceOf

function assertAttributeNotInternalType(string $expected, string $attributeName, $classOrObject, string $message = '') : void
 

Asserts that an attribute is of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeNotInternalType

function assertAttributeNotSame( $expected, string $actualAttributeName, $actualClassOrObject, string $message = '') : void
 

Asserts that a variable and an attribute of an object do not have the
same type and value.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeNotSame

function assertAttributeSame( $expected, string $actualAttributeName, $actualClassOrObject, string $message = '') : void
 

Asserts that a variable and an attribute of an object have the same type
and value.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
  • codeCoverageIgnore
  • see \Assert::assertAttributeSame

function assertClassHasAttribute(string $attributeName, string $className, string $message = '') : void
 

Asserts that a class has a specified attribute.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertClassHasAttribute

function assertClassHasStaticAttribute(string $attributeName, string $className, string $message = '') : void
 

Asserts that a class has a specified static attribute.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertClassHasStaticAttribute

function assertClassNotHasAttribute(string $attributeName, string $className, string $message = '') : void
 

Asserts that a class does not have a specified attribute.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertClassNotHasAttribute

function assertClassNotHasStaticAttribute(string $attributeName, string $className, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertClassNotHasStaticAttribute

function assertContains( $needle, $haystack, string $message = '', bool $ignoreCase = false, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false) : void
 

Asserts that a haystack contains a needle.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertContains

function assertContainsEquals( $needle, iterable $haystack, string $message = '') : void
function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = NULL, string $message = '') : void
 

Asserts that a haystack contains only values of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertContainsOnly

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertContainsOnlyInstancesOf

function assertCount(int $expectedCount, $haystack, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertCount

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

Asserts that a directory exists.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertDirectoryExists

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

Asserts that a directory exists and is readable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertDirectoryIsReadable

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

Asserts that a directory exists and is writable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertDirectoryIsWritable

function assertDirectoryNotExists(string $directory, string $message = '') : void
 

Asserts that a directory does not exist.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertDirectoryNotExists

function assertDirectoryNotIsReadable(string $directory, string $message = '') : void
 

Asserts that a directory exists and is not readable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertDirectoryNotIsReadable

function assertDirectoryNotIsWritable(string $directory, string $message = '') : void
 

Asserts that a directory exists and is not writable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertDirectoryNotIsWritable

function assertEmpty( $actual, string $message = '') : void
 

Asserts that a variable is empty.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert empty $actual
  • see \Assert::assertEmpty

function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement, bool $checkAttributes = false, string $message = '') : void
 

Asserts that a hierarchy of DOMElements matches.

  • throws AssertionFailedError
  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertEqualXMLStructure

function assertEquals( $expected, $actual, string $message = '', float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : void
 

Asserts that two variables are equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertEquals

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

Asserts that two variables are equal (canonicalizing).

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertEqualsCanonicalizing

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

Asserts that two variables are equal (ignoring case).

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertEqualsIgnoringCase

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

Asserts that two variables are equal (with delta).

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertEqualsWithDelta

function assertFalse( $condition, string $message = '') : void
 

Asserts that a condition is false.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert false $condition
  • see \Assert::assertFalse

function assertFileEquals(string $expected, string $actual, string $message = '', bool $canonicalize = false, bool $ignoreCase = false) : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileEquals

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileEqualsCanonicalizing

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileEqualsIgnoringCase

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

Asserts that a file exists.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileExists

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

Asserts that a file exists and is readable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileIsReadable

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

Asserts that a file exists and is writable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileIsWritable

function assertFileNotEquals(string $expected, string $actual, string $message = '', bool $canonicalize = false, bool $ignoreCase = false) : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileNotEquals

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileNotEqualsCanonicalizing

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileNotEqualsIgnoringCase

function assertFileNotExists(string $filename, string $message = '') : void
 

Asserts that a file does not exist.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileNotExists

function assertFileNotIsReadable(string $file, string $message = '') : void
 

Asserts that a file exists and is not readable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileNotIsReadable

function assertFileNotIsWritable(string $file, string $message = '') : void
 

Asserts that a file exists and is not writable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFileNotIsWritable

function assertFinite( $actual, string $message = '') : void
 

Asserts that a variable is finite.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertFinite

function assertGreaterThan( $expected, $actual, string $message = '') : void
 

Asserts that a value is greater than another value.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertGreaterThan

function assertGreaterThanOrEqual( $expected, $actual, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertGreaterThanOrEqual

function assertInfinite( $actual, string $message = '') : void
 

Asserts that a variable is infinite.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertInfinite

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

Asserts that a variable is of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • psalm-template ExpectedType of object
  • psalm-param class-string $expected
  • psalm-assert ExpectedType $actual
  • see \Assert::assertInstanceOf

function assertInternalType(string $expected, $actual, string $message = '') : void
 

Asserts that a variable is of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3369
  • codeCoverageIgnore
  • see \Assert::assertInternalType

function assertIsArray( $actual, string $message = '') : void
 

Asserts that a variable is of type array.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert array $actual
  • see \Assert::assertIsArray

function assertIsBool( $actual, string $message = '') : void
 

Asserts that a variable is of type bool.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert bool $actual
  • see \Assert::assertIsBool

function assertIsCallable( $actual, string $message = '') : void
 

Asserts that a variable is of type callable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert callable $actual
  • see \Assert::assertIsCallable

function assertIsFloat( $actual, string $message = '') : void
 

Asserts that a variable is of type float.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert float $actual
  • see \Assert::assertIsFloat

function assertIsInt( $actual, string $message = '') : void
 

Asserts that a variable is of type int.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert int $actual
  • see \Assert::assertIsInt

function assertIsIterable( $actual, string $message = '') : void
 

Asserts that a variable is of type iterable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert iterable $actual
  • see \Assert::assertIsIterable

function assertIsNotArray( $actual, string $message = '') : void
 

Asserts that a variable is not of type array.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !array $actual
  • see \Assert::assertIsNotArray

function assertIsNotBool( $actual, string $message = '') : void
 

Asserts that a variable is not of type bool.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !bool $actual
  • see \Assert::assertIsNotBool

function assertIsNotCallable( $actual, string $message = '') : void
 

Asserts that a variable is not of type callable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !callable $actual
  • see \Assert::assertIsNotCallable

function assertIsNotFloat( $actual, string $message = '') : void
 

Asserts that a variable is not of type float.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !float $actual
  • see \Assert::assertIsNotFloat

function assertIsNotInt( $actual, string $message = '') : void
 

Asserts that a variable is not of type int.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !int $actual
  • see \Assert::assertIsNotInt

function assertIsNotIterable( $actual, string $message = '') : void
 

Asserts that a variable is not of type iterable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !iterable $actual
  • see \Assert::assertIsNotIterable

function assertIsNotNumeric( $actual, string $message = '') : void
 

Asserts that a variable is not of type numeric.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !numeric $actual
  • see \Assert::assertIsNotNumeric

function assertIsNotObject( $actual, string $message = '') : void
 

Asserts that a variable is not of type object.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !object $actual
  • see \Assert::assertIsNotObject

function assertIsNotResource( $actual, string $message = '') : void
 

Asserts that a variable is not of type resource.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !resource $actual
  • see \Assert::assertIsNotResource

function assertIsNotScalar( $actual, string $message = '') : void
 

Asserts that a variable is not of type scalar.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !scalar $actual
  • see \Assert::assertIsNotScalar

function assertIsNotString( $actual, string $message = '') : void
 

Asserts that a variable is not of type string.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !string $actual
  • see \Assert::assertIsNotString

function assertIsNumeric( $actual, string $message = '') : void
 

Asserts that a variable is of type numeric.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert numeric $actual
  • see \Assert::assertIsNumeric

function assertIsObject( $actual, string $message = '') : void
 

Asserts that a variable is of type object.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert object $actual
  • see \Assert::assertIsObject

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

Asserts that a file/dir is readable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertIsReadable

function assertIsResource( $actual, string $message = '') : void
 

Asserts that a variable is of type resource.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert resource $actual
  • see \Assert::assertIsResource

function assertIsScalar( $actual, string $message = '') : void
 

Asserts that a variable is of type scalar.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert scalar $actual
  • see \Assert::assertIsScalar

function assertIsString( $actual, string $message = '') : void
 

Asserts that a variable is of type string.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert string $actual
  • see \Assert::assertIsString

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

Asserts that a file/dir exists and is writable.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertIsWritable

function assertJson(string $actualJson, string $message = '') : void
 

Asserts that a string is a valid JSON string.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertJson

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

Asserts that two JSON files are equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertJsonFileEqualsJsonFile

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

Asserts that two JSON files are not equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertJsonFileNotEqualsJsonFile

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertJsonStringEqualsJsonFile

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertJsonStringEqualsJsonString

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertJsonStringNotEqualsJsonFile

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertJsonStringNotEqualsJsonString

function assertLessThan( $expected, $actual, string $message = '') : void
 

Asserts that a value is smaller than another value.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertLessThan

function assertLessThanOrEqual( $expected, $actual, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertLessThanOrEqual

function assertNan( $actual, string $message = '') : void
 

Asserts that a variable is nan.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNan

function assertNotContains( $needle, $haystack, string $message = '', bool $ignoreCase = false, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false) : void
 

Asserts that a haystack does not contain a needle.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertNotContains

function assertNotContainsEquals( $needle, iterable $haystack, string $message = '') : void
function assertNotContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = NULL, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotContainsOnly

function assertNotCount(int $expectedCount, $haystack, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertNotCount

function assertNotEmpty( $actual, string $message = '') : void
 

Asserts that a variable is not empty.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !empty $actual
  • see \Assert::assertNotEmpty

function assertNotEquals( $expected, $actual, string $message = '', $delta = 0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false) : void
 

Asserts that two variables are not equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotEquals

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

Asserts that two variables are not equal (canonicalizing).

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotEqualsCanonicalizing

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotEqualsIgnoringCase

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotEqualsWithDelta

function assertNotFalse( $condition, string $message = '') : void
 

Asserts that a condition is not false.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !false $condition
  • see \Assert::assertNotFalse

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

Asserts that a variable is not of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • psalm-template ExpectedType of object
  • psalm-param class-string $expected
  • psalm-assert !ExpectedType $actual
  • see \Assert::assertNotInstanceOf

function assertNotInternalType(string $expected, $actual, string $message = '') : void
 

Asserts that a variable is not of a given type.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • deprecated https://github.com/sebastianbergmann/phpunit/issues/3369
  • codeCoverageIgnore
  • see \Assert::assertNotInternalType

function assertNotIsReadable(string $filename, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotIsReadable

function assertNotIsWritable(string $filename, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotIsWritable

function assertNotNull( $actual, string $message = '') : void
 

Asserts that a variable is not null.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !null $actual
  • see \Assert::assertNotNull

function assertNotRegExp(string $pattern, string $string, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotRegExp

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

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.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertNotSame

function assertNotSameSize( $expected, $actual, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertNotSameSize

function assertNotTrue( $condition, string $message = '') : void
 

Asserts that a condition is not true.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert !true $condition
  • see \Assert::assertNotTrue

function assertNull( $actual, string $message = '') : void
 

Asserts that a variable is null.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert null $actual
  • see \Assert::assertNull

function assertObjectHasAttribute(string $attributeName, $object, string $message = '') : void
 

Asserts that an object has a specified attribute.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertObjectHasAttribute

function assertObjectNotHasAttribute(string $attributeName, $object, string $message = '') : void
 

Asserts that an object does not have a specified attribute.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertObjectNotHasAttribute

function assertRegExp(string $pattern, string $string, string $message = '') : void
 

Asserts that a string matches a given regular expression.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertRegExp

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

Asserts that two variables have the same type and value.

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-template ExpectedType
  • psalm-param ExpectedType $expected
  • psalm-assert =ExpectedType $actual
  • see \Assert::assertSame

function assertSameSize( $expected, $actual, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertSameSize

function assertStringContainsString(string $needle, string $haystack, string $message = '') : void
 
  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringContainsString

function assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') : void
 
  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringContainsStringIgnoringCase

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

Asserts that a string ends not with a given suffix.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringEndsNotWith

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

Asserts that a string ends with a given suffix.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringEndsWith

function assertStringEqualsFile(string $expectedFile, string $actualString, string $message = '', bool $canonicalize = false, bool $ignoreCase = false) : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringEqualsFile

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringEqualsFileCanonicalizing

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringEqualsFileIgnoringCase

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

Asserts that a string matches a given format string.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringMatchesFormat

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

Asserts that a string matches a given format file.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringMatchesFormatFile

function assertStringNotContainsString(string $needle, string $haystack, string $message = '') : void
 
  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringNotContainsString

function assertStringNotContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') : void
 
  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringNotContainsStringIgnoringCase

function assertStringNotEqualsFile(string $expectedFile, string $actualString, string $message = '', bool $canonicalize = false, bool $ignoreCase = false) : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringNotEqualsFile

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringNotEqualsFileCanonicalizing

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

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringNotEqualsFileIgnoringCase

function assertStringNotMatchesFormat(string $format, string $string, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringNotMatchesFormat

function assertStringNotMatchesFormatFile(string $formatFile, string $string, string $message = '') : void
 

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

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringNotMatchesFormatFile

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

Asserts that a string starts not with a given prefix.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringStartsNotWith

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

Asserts that a string starts with a given prefix.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertStringStartsWith

function assertThat( $value, PHPUnit\Framework\Constraint\Constraint $constraint, string $message = '') : void
 

Evaluates a PHPUnit\Framework\Constraint matcher object.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • see \Assert::assertThat

function assertTrue( $condition, string $message = '') : void
 

Asserts that a condition is true.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • psalm-assert true $condition
  • see \Assert::assertTrue

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

Asserts that two XML files are equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertXmlFileEqualsXmlFile

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

Asserts that two XML files are not equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertXmlFileNotEqualsXmlFile

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

Asserts that two XML documents are equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertXmlStringEqualsXmlFile

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

Asserts that two XML documents are equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertXmlStringEqualsXmlString

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

Asserts that two XML documents are not equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertXmlStringNotEqualsXmlFile

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

Asserts that two XML documents are not equal.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
  • throws Exception
  • see \Assert::assertXmlStringNotEqualsXmlString

function at(int $index) : PHPUnit\Framework\MockObject\Rule\InvokedAtIndex
 

Returns a matcher that matches when the method is executed
at the given index.


function atLeast(int $requiredInvocations) : PHPUnit\Framework\MockObject\Rule\InvokedAtLeastCount
 

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


function atLeastOnce() : PHPUnit\Framework\MockObject\Rule\InvokedAtLeastOnce
 

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


function atMost(int $allowedInvocations) : PHPUnit\Framework\MockObject\Rule\InvokedAtMostCount
 

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


function attribute(PHPUnit\Framework\Constraint\Constraint $constraint, string $attributeName) : PHPUnit\Framework\Constraint\Attribute
function attributeEqualTo(string $attributeName, $value, float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : PHPUnit\Framework\Constraint\Attribute
function callback(callable $callback) : PHPUnit\Framework\Constraint\Callback
function classHasAttribute(string $attributeName) : PHPUnit\Framework\Constraint\ClassHasAttribute
function classHasStaticAttribute(string $attributeName) : PHPUnit\Framework\Constraint\ClassHasStaticAttribute
function contains( $value, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false) : PHPUnit\Framework\Constraint\TraversableContains
function containsEqual( $value) : PHPUnit\Framework\Constraint\TraversableContainsEqual
function containsIdentical( $value) : PHPUnit\Framework\Constraint\TraversableContainsIdentical
function containsOnly(string $type) : PHPUnit\Framework\Constraint\TraversableContainsOnly
function containsOnlyInstancesOf(string $className) : PHPUnit\Framework\Constraint\TraversableContainsOnly
function countOf(int $count) : PHPUnit\Framework\Constraint\Count
function directoryExists() : PHPUnit\Framework\Constraint\DirectoryExists
function equalTo( $value, float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : PHPUnit\Framework\Constraint\IsEqual
function exactly(int $count) : PHPUnit\Framework\MockObject\Rule\InvokedCount
 

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


function fileExists() : PHPUnit\Framework\Constraint\FileExists
function greaterThan( $value) : PHPUnit\Framework\Constraint\GreaterThan
function greaterThanOrEqual( $value) : PHPUnit\Framework\Constraint\LogicalOr
function identicalTo( $value) : PHPUnit\Framework\Constraint\IsIdentical
function isEmpty() : PHPUnit\Framework\Constraint\IsEmpty
function isFalse() : PHPUnit\Framework\Constraint\IsFalse
function isFinite() : PHPUnit\Framework\Constraint\IsFinite
function isInfinite() : PHPUnit\Framework\Constraint\IsInfinite
function isInstanceOf(string $className) : PHPUnit\Framework\Constraint\IsInstanceOf
function isJson() : PHPUnit\Framework\Constraint\IsJson
function isNan() : PHPUnit\Framework\Constraint\IsNan
function isNull() : PHPUnit\Framework\Constraint\IsNull
function isReadable() : PHPUnit\Framework\Constraint\IsReadable
function isTrue() : PHPUnit\Framework\Constraint\IsTrue
function isType(string $type) : PHPUnit\Framework\Constraint\IsType
function isWritable() : PHPUnit\Framework\Constraint\IsWritable
function lessThan( $value) : PHPUnit\Framework\Constraint\LessThan
function lessThanOrEqual( $value) : PHPUnit\Framework\Constraint\LogicalOr
function logicalAnd() : PHPUnit\Framework\Constraint\LogicalAnd
function logicalNot(PHPUnit\Framework\Constraint\Constraint $constraint) : PHPUnit\Framework\Constraint\LogicalNot
function logicalOr() : PHPUnit\Framework\Constraint\LogicalOr
function logicalXor() : PHPUnit\Framework\Constraint\LogicalXor
function matches(string $string) : PHPUnit\Framework\Constraint\StringMatchesFormatDescription
function matchesRegularExpression(string $pattern) : PHPUnit\Framework\Constraint\RegularExpression
function never() : PHPUnit\Framework\MockObject\Rule\InvokedCount
 

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


function objectHasAttribute( $attributeName) : PHPUnit\Framework\Constraint\ObjectHasAttribute
function onConsecutiveCalls() : PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls
function once() : PHPUnit\Framework\MockObject\Rule\InvokedCount
 

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


function returnArgument(int $argumentIndex) : PHPUnit\Framework\MockObject\Stub\ReturnArgument
function returnCallback( $callback) : PHPUnit\Framework\MockObject\Stub\ReturnCallback
function returnSelf() : PHPUnit\Framework\MockObject\Stub\ReturnSelf
 

Returns the current object.

This method is useful when mocking a fluent interface.


function returnValue( $value) : PHPUnit\Framework\MockObject\Stub\ReturnStub
function returnValueMap(array $valueMap) : PHPUnit\Framework\MockObject\Stub\ReturnValueMap
function stringContains(string $string, bool $case = true) : PHPUnit\Framework\Constraint\StringContains
function stringEndsWith(string $suffix) : PHPUnit\Framework\Constraint\StringEndsWith
function stringStartsWith( $prefix) : PHPUnit\Framework\Constraint\StringStartsWith
function throwException(Throwable $exception) : PHPUnit\Framework\MockObject\Stub\Exception
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only