Abstract
ExtendsPHPUnit\Framework\Assert
ImplementsCountable
PHPUnit\Framework\SelfDescribing
PHPUnit\Framework\Test
Methods
public __construct( $name = NULL, array $data = [], $dataName = '')
 


  • internal This method is not covered by the backward compatibility promise for PHPUnit
public addToAssertionCount(int $count) : void
 


  • internal This method is not covered by the backward compatibility promise for PHPUnit
public addWarning(string $warning) : void
 


  • internal This method is not covered by the backward compatibility promise for PHPUnit
public static any() : PHPUnit\Framework\MockObject\Rule\AnyInvokedCount
 
Returns a matcher that matches when the method is executed zero or more times.

public static PHPUnit\Framework\Assert::anything() : PHPUnit\Framework\Constraint\IsAnything
public static PHPUnit\Framework\Assert::arrayHasKey( $key) : PHPUnit\Framework\Constraint\ArrayHasKey
 


    public static PHPUnit\Framework\Assert::assertArrayHasKey( $key, $array, string $message = '') : void
     
    Asserts that an array has a specified key.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::assertArrayNotHasKey( $key, $array, string $message = '') : void
     
    Asserts that an array does not have a specified key.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertClassHasAttribute(string $attributeName, string $className, string $message = '') : void
     
    Asserts that a class has a specified attribute.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertContainsEquals( $needle, iterable $haystack, string $message = '') : void
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertDirectoryExists(string $directory, string $message = '') : void
     
    Asserts that a directory exists.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertDirectoryIsReadable(string $directory, string $message = '') : void
     
    Asserts that a directory exists and is readable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertDirectoryIsWritable(string $directory, string $message = '') : void
     
    Asserts that a directory exists and is writable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertDirectoryNotExists(string $directory, string $message = '') : void
     
    Asserts that a directory does not exist.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertDirectoryNotIsReadable(string $directory, string $message = '') : void
     
    Asserts that a directory exists and is not readable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertDirectoryNotIsWritable(string $directory, string $message = '') : void
     
    Asserts that a directory exists and is not writable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertEmpty( $actual, string $message = '') : void
     
    Asserts that a variable is empty.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert empty $actual
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertEqualsCanonicalizing( $expected, $actual, string $message = '') : void
     
    Asserts that two variables are equal (canonicalizing).

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertEqualsIgnoringCase( $expected, $actual, string $message = '') : void
     
    Asserts that two variables are equal (ignoring case).

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertEqualsWithDelta( $expected, $actual, float $delta, string $message = '') : void
     
    Asserts that two variables are equal (with delta).

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertFalse( $condition, string $message = '') : void
     
    Asserts that a condition is false.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert false $condition
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertFileExists(string $filename, string $message = '') : void
     
    Asserts that a file exists.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertFileIsReadable(string $file, string $message = '') : void
     
    Asserts that a file exists and is readable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertFileIsWritable(string $file, string $message = '') : void
     
    Asserts that a file exists and is writable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertFileNotExists(string $filename, string $message = '') : void
     
    Asserts that a file does not exist.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertFileNotIsReadable(string $file, string $message = '') : void
     
    Asserts that a file exists and is not readable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertFileNotIsWritable(string $file, string $message = '') : void
     
    Asserts that a file exists and is not writable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertFinite( $actual, string $message = '') : void
     
    Asserts that a variable is finite.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertGreaterThan( $expected, $actual, string $message = '') : void
     
    Asserts that a value is greater than another value.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertGreaterThanOrEqual( $expected, $actual, string $message = '') : void
     
    Asserts that a value is greater than or equal to another value.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertInfinite( $actual, string $message = '') : void
     
    Asserts that a variable is infinite.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertIsArray( $actual, string $message = '') : void
     
    Asserts that a variable is of type array.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert array $actual
    public static PHPUnit\Framework\Assert::assertIsBool( $actual, string $message = '') : void
     
    Asserts that a variable is of type bool.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert bool $actual
    public static PHPUnit\Framework\Assert::assertIsCallable( $actual, string $message = '') : void
     
    Asserts that a variable is of type callable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert callable $actual
    public static PHPUnit\Framework\Assert::assertIsFloat( $actual, string $message = '') : void
     
    Asserts that a variable is of type float.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert float $actual
    public static PHPUnit\Framework\Assert::assertIsInt( $actual, string $message = '') : void
     
    Asserts that a variable is of type int.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert int $actual
    public static PHPUnit\Framework\Assert::assertIsIterable( $actual, string $message = '') : void
     
    Asserts that a variable is of type iterable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert iterable $actual
    public static PHPUnit\Framework\Assert::assertIsNotArray( $actual, string $message = '') : void
     
    Asserts that a variable is not of type array.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !array $actual
    public static PHPUnit\Framework\Assert::assertIsNotBool( $actual, string $message = '') : void
     
    Asserts that a variable is not of type bool.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !bool $actual
    public static PHPUnit\Framework\Assert::assertIsNotCallable( $actual, string $message = '') : void
     
    Asserts that a variable is not of type callable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !callable $actual
    public static PHPUnit\Framework\Assert::assertIsNotFloat( $actual, string $message = '') : void
     
    Asserts that a variable is not of type float.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !float $actual
    public static PHPUnit\Framework\Assert::assertIsNotInt( $actual, string $message = '') : void
     
    Asserts that a variable is not of type int.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !int $actual
    public static PHPUnit\Framework\Assert::assertIsNotIterable( $actual, string $message = '') : void
     
    Asserts that a variable is not of type iterable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !iterable $actual
    public static PHPUnit\Framework\Assert::assertIsNotNumeric( $actual, string $message = '') : void
     
    Asserts that a variable is not of type numeric.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !numeric $actual
    public static PHPUnit\Framework\Assert::assertIsNotObject( $actual, string $message = '') : void
     
    Asserts that a variable is not of type object.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !object $actual
    public static PHPUnit\Framework\Assert::assertIsNotResource( $actual, string $message = '') : void
     
    Asserts that a variable is not of type resource.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !resource $actual
    public static PHPUnit\Framework\Assert::assertIsNotScalar( $actual, string $message = '') : void
     
    Asserts that a variable is not of type scalar.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !scalar $actual
    public static PHPUnit\Framework\Assert::assertIsNotString( $actual, string $message = '') : void
     
    Asserts that a variable is not of type string.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !string $actual
    public static PHPUnit\Framework\Assert::assertIsNumeric( $actual, string $message = '') : void
     
    Asserts that a variable is of type numeric.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert numeric $actual
    public static PHPUnit\Framework\Assert::assertIsObject( $actual, string $message = '') : void
     
    Asserts that a variable is of type object.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert object $actual
    public static PHPUnit\Framework\Assert::assertIsReadable(string $filename, string $message = '') : void
     
    Asserts that a file/dir is readable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertIsResource( $actual, string $message = '') : void
     
    Asserts that a variable is of type resource.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert resource $actual
    public static PHPUnit\Framework\Assert::assertIsScalar( $actual, string $message = '') : void
     
    Asserts that a variable is of type scalar.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert scalar $actual
    public static PHPUnit\Framework\Assert::assertIsString( $actual, string $message = '') : void
     
    Asserts that a variable is of type string.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert string $actual
    public static PHPUnit\Framework\Assert::assertIsWritable(string $filename, string $message = '') : void
     
    Asserts that a file/dir exists and is writable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertJson(string $actualJson, string $message = '') : void
     
    Asserts that a string is a valid JSON string.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile, string $message = '') : void
     
    Asserts that two JSON files are equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile, string $message = '') : void
     
    Asserts that two JSON files are not equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertJsonStringNotEqualsJsonString( $expectedJson, $actualJson, string $message = '') : void
     
    Asserts that two given JSON encoded objects or arrays are not equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertLessThan( $expected, $actual, string $message = '') : void
     
    Asserts that a value is smaller than another value.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertLessThanOrEqual( $expected, $actual, string $message = '') : void
     
    Asserts that a value is smaller than or equal to another value.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertNan( $actual, string $message = '') : void
     
    Asserts that a variable is nan.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertNotContainsEquals( $needle, iterable $haystack, string $message = '') : void
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertNotEmpty( $actual, string $message = '') : void
     
    Asserts that a variable is not empty.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !empty $actual
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertNotEqualsCanonicalizing( $expected, $actual, string $message = '') : void
     
    Asserts that two variables are not equal (canonicalizing).

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertNotEqualsIgnoringCase( $expected, $actual, string $message = '') : void
     
    Asserts that two variables are not equal (ignoring case).

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertNotEqualsWithDelta( $expected, $actual, float $delta, string $message = '') : void
     
    Asserts that two variables are not equal (with delta).

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertNotFalse( $condition, string $message = '') : void
     
    Asserts that a condition is not false.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !false $condition
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertNotIsReadable(string $filename, string $message = '') : void
     
    Asserts that a file/dir exists and is not readable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertNotIsWritable(string $filename, string $message = '') : void
     
    Asserts that a file/dir exists and is not writable.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertNotNull( $actual, string $message = '') : void
     
    Asserts that a variable is not null.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !null $actual
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertNotTrue( $condition, string $message = '') : void
     
    Asserts that a condition is not true.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert !true $condition
    public static PHPUnit\Framework\Assert::assertNull( $actual, string $message = '') : void
     
    Asserts that a variable is null.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert null $actual
    public static PHPUnit\Framework\Assert::assertObjectHasAttribute(string $attributeName, $object, string $message = '') : void
     
    Asserts that an object has a specified attribute.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertRegExp(string $pattern, string $string, string $message = '') : void
     
    Asserts that a string matches a given regular expression.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertStringContainsString(string $needle, string $haystack, string $message = '') : void
     


    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') : void
     


    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertStringEndsNotWith(string $suffix, string $string, string $message = '') : void
     
    Asserts that a string ends not with a given suffix.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertStringEndsWith(string $suffix, string $string, string $message = '') : void
     
    Asserts that a string ends with a given suffix.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertStringMatchesFormat(string $format, string $string, string $message = '') : void
     
    Asserts that a string matches a given format string.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertStringMatchesFormatFile(string $formatFile, string $string, string $message = '') : void
     
    Asserts that a string matches a given format file.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertStringNotContainsString(string $needle, string $haystack, string $message = '') : void
     


    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertStringNotContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') : void
     


    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::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
    public static PHPUnit\Framework\Assert::assertStringStartsNotWith( $prefix, $string, string $message = '') : void
     
    Asserts that a string starts not with a given prefix.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertStringStartsWith(string $prefix, string $string, string $message = '') : void
     
    Asserts that a string starts with a given prefix.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertThat( $value, PHPUnit\Framework\Constraint\Constraint $constraint, string $message = '') : void
     
    Evaluates a PHPUnit\Framework\Constraint matcher object.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    public static PHPUnit\Framework\Assert::assertTrue( $condition, string $message = '') : void
     
    Asserts that a condition is true.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • psalm-assert true $condition
    public static PHPUnit\Framework\Assert::assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile, string $message = '') : void
     
    Asserts that two XML files are equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile, string $message = '') : void
     
    Asserts that two XML files are not equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml, string $message = '') : void
     
    Asserts that two XML documents are equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::assertXmlStringEqualsXmlString( $expectedXml, $actualXml, string $message = '') : void
     
    Asserts that two XML documents are equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::assertXmlStringNotEqualsXmlFile(string $expectedFile, $actualXml, string $message = '') : void
     
    Asserts that two XML documents are not equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static PHPUnit\Framework\Assert::assertXmlStringNotEqualsXmlString( $expectedXml, $actualXml, string $message = '') : void
     
    Asserts that two XML documents are not equal.

    • throws ExpectationFailedException
    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    • throws Exception
    public static at(int $index) : PHPUnit\Framework\MockObject\Rule\InvokedAtIndex
     
    Returns a matcher that matches when the method is executed at the given index.

    public static atLeast(int $requiredInvocations) : PHPUnit\Framework\MockObject\Rule\InvokedAtLeastCount
     
    Returns a matcher that matches when the method is executed at least N times.

    public static atLeastOnce() : PHPUnit\Framework\MockObject\Rule\InvokedAtLeastOnce
     
    Returns a matcher that matches when the method is executed at least once.

    public static atMost(int $allowedInvocations) : PHPUnit\Framework\MockObject\Rule\InvokedAtMostCount
     
    Returns a matcher that matches when the method is executed at most N times.

    public static PHPUnit\Framework\Assert::attribute(PHPUnit\Framework\Constraint\Constraint $constraint, string $attributeName) : PHPUnit\Framework\Constraint\Attribute
     


    • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
    • codeCoverageIgnore
    public static PHPUnit\Framework\Assert::attributeEqualTo(string $attributeName, $value, float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : PHPUnit\Framework\Constraint\Attribute
     


    • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
    • codeCoverageIgnore
    public static PHPUnit\Framework\Assert::callback(callable $callback) : PHPUnit\Framework\Constraint\Callback
    public static PHPUnit\Framework\Assert::classHasAttribute(string $attributeName) : PHPUnit\Framework\Constraint\ClassHasAttribute
    public static PHPUnit\Framework\Assert::classHasStaticAttribute(string $attributeName) : PHPUnit\Framework\Constraint\ClassHasStaticAttribute
    public static PHPUnit\Framework\Assert::contains( $value, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false) : PHPUnit\Framework\Constraint\TraversableContains
     


    • deprecated Use containsEqual() or containsIdentical() instead
    public static PHPUnit\Framework\Assert::containsEqual( $value) : PHPUnit\Framework\Constraint\TraversableContainsEqual
    public static PHPUnit\Framework\Assert::containsIdentical( $value) : PHPUnit\Framework\Constraint\TraversableContainsIdentical
    public static PHPUnit\Framework\Assert::containsOnly(string $type) : PHPUnit\Framework\Constraint\TraversableContainsOnly
    public static PHPUnit\Framework\Assert::containsOnlyInstancesOf(string $className) : PHPUnit\Framework\Constraint\TraversableContainsOnly
    public count() : int
    public static PHPUnit\Framework\Assert::countOf(int $count) : PHPUnit\Framework\Constraint\Count
    public dataDescription() : string
     


    • internal This method is not covered by the backward compatibility promise for PHPUnit
    public dataName()
     


    • return int|string
    • internal This method is not covered by the backward compatibility promise for PHPUnit
    public static PHPUnit\Framework\Assert::directoryExists() : PHPUnit\Framework\Constraint\DirectoryExists
    public doesNotPerformAssertions() : bool
     


    • internal This method is not covered by the backward compatibility promise for PHPUnit
    public doubledTypes() : array
     


    • return string[]
    • internal This method is not covered by the backward compatibility promise for PHPUnit
    public static PHPUnit\Framework\Assert::equalTo( $value, float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : PHPUnit\Framework\Constraint\IsEqual
    public static exactly(int $count) : PHPUnit\Framework\MockObject\Rule\InvokedCount
     
    Returns a matcher that matches when the method is executed exactly $count times.

    public expectDeprecation() : void
    public expectDeprecationMessage(string $message) : void
    public expectDeprecationMessageMatches(string $regularExpression) : void
    public expectError() : void
    public expectErrorMessage(string $message) : void
    public expectErrorMessageMatches(string $regularExpression) : void
    public expectException(string $exception) : void
     


    • psalm-param class-string<\Throwable> $exception
    public expectExceptionCode( $code) : void
     


      public expectExceptionMessage(string $message) : void
      public expectExceptionMessageMatches(string $regularExpression) : void
      public expectExceptionMessageRegExp(string $regularExpression) : void
       


      • deprecated Use expectExceptionMessageMatches() instead
      public expectExceptionObject(Exception $exception) : void
       
      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.

      public expectNotice() : void
      public expectNoticeMessage(string $message) : void
      public expectNoticeMessageMatches(string $regularExpression) : void
      public expectNotToPerformAssertions() : void
      public expectOutputRegex(string $expectedRegex) : void
      public expectOutputString(string $expectedString) : void
      public expectWarning() : void
      public expectWarningMessage(string $message) : void
      public expectWarningMessageMatches(string $regularExpression) : void
      public static PHPUnit\Framework\Assert::fail(string $message = '') : void
       
      Fails a test with the given message.

      • throws AssertionFailedError
      • psalm-return never-return
      public static PHPUnit\Framework\Assert::fileExists() : PHPUnit\Framework\Constraint\FileExists
      public getActualOutput() : string
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getActualOutputForAssertion() : string
      public getAnnotations() : array
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::getCount() : int
       
      Return the current assertion count.

      public getDataSetAsString(bool $includeData = true) : string
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getDependencies() : array
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getDependencyInput() : array
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getExpectedException() : string
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getExpectedExceptionCode()
       


      • return null|int|string
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getExpectedExceptionMessage() : string
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getExpectedExceptionMessageRegExp() : string
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getGroups() : array
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getMockBuilder( $className) : PHPUnit\Framework\MockObject\MockBuilder
       
      Returns a builder object to create mock objects using a fluent interface.

      • psalm-template RealInstanceType of object
      • psalm-param class-string|string[] $className
      • psalm-return MockBuilder
      public getName(bool $withDataSet = true) : string
       


      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getNumAssertions() : int
       
      Returns the number of assertions performed by this test.

      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::getObjectAttribute( $object, string $attributeName)
       
      Returns the value of an object's attribute.

      This also works for attributes that are declared protected or private.

      • throws Exception
      • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
      • codeCoverageIgnore
      public getProvidedData() : array
       
      Gets the data set of a TestCase.

      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getResult()
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public getSize() : int
       
      Returns the size of the test.

      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::getStaticAttribute(string $className, string $attributeName)
       
      Returns the value of a static attribute.

      This also works for attributes that are declared protected or private.

      • throws Exception
      • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
      • codeCoverageIgnore
      public getStatus() : int
      public getStatusMessage() : string
      public getTestResultObject() : PHPUnit\Framework\TestResult
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::greaterThan( $value) : PHPUnit\Framework\Constraint\GreaterThan
      public static PHPUnit\Framework\Assert::greaterThanOrEqual( $value) : PHPUnit\Framework\Constraint\LogicalOr
      public hasDependencies() : bool
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public hasExpectationOnOutput() : bool
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public hasFailed() : bool
      public hasOutput() : bool
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public hasSize() : bool
       


      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::identicalTo( $value) : PHPUnit\Framework\Constraint\IsIdentical
      public static PHPUnit\Framework\Assert::isEmpty() : PHPUnit\Framework\Constraint\IsEmpty
      public static PHPUnit\Framework\Assert::isFalse() : PHPUnit\Framework\Constraint\IsFalse
      public static PHPUnit\Framework\Assert::isFinite() : PHPUnit\Framework\Constraint\IsFinite
      public static PHPUnit\Framework\Assert::isInfinite() : PHPUnit\Framework\Constraint\IsInfinite
      public isInIsolation() : bool
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::isInstanceOf(string $className) : PHPUnit\Framework\Constraint\IsInstanceOf
      public static PHPUnit\Framework\Assert::isJson() : PHPUnit\Framework\Constraint\IsJson
      public isLarge() : bool
       


      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public isMedium() : bool
       


      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::isNan() : PHPUnit\Framework\Constraint\IsNan
      public static PHPUnit\Framework\Assert::isNull() : PHPUnit\Framework\Constraint\IsNull
      public static PHPUnit\Framework\Assert::isReadable() : PHPUnit\Framework\Constraint\IsReadable
      public isSmall() : bool
       


      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::isTrue() : PHPUnit\Framework\Constraint\IsTrue
      public static PHPUnit\Framework\Assert::isType(string $type) : PHPUnit\Framework\Constraint\IsType
      public static PHPUnit\Framework\Assert::isWritable() : PHPUnit\Framework\Constraint\IsWritable
      public static PHPUnit\Framework\Assert::lessThan( $value) : PHPUnit\Framework\Constraint\LessThan
      public static PHPUnit\Framework\Assert::lessThanOrEqual( $value) : PHPUnit\Framework\Constraint\LogicalOr
      public static PHPUnit\Framework\Assert::logicalAnd() : PHPUnit\Framework\Constraint\LogicalAnd
       


      • throws Exception
      public static PHPUnit\Framework\Assert::logicalNot(PHPUnit\Framework\Constraint\Constraint $constraint) : PHPUnit\Framework\Constraint\LogicalNot
      public static PHPUnit\Framework\Assert::logicalOr() : PHPUnit\Framework\Constraint\LogicalOr
      public static PHPUnit\Framework\Assert::logicalXor() : PHPUnit\Framework\Constraint\LogicalXor
      public markAsRisky() : void
      public static PHPUnit\Framework\Assert::markTestIncomplete(string $message = '') : void
       
      Mark the test as incomplete.

      • throws IncompleteTestError
      public static PHPUnit\Framework\Assert::markTestSkipped(string $message = '') : void
       
      Mark the test as skipped.

      • throws SkippedTestError
      • throws SyntheticSkippedError
      public static PHPUnit\Framework\Assert::matches(string $string) : PHPUnit\Framework\Constraint\StringMatchesFormatDescription
      public static PHPUnit\Framework\Assert::matchesRegularExpression(string $pattern) : PHPUnit\Framework\Constraint\RegularExpression
      public static never() : PHPUnit\Framework\MockObject\Rule\InvokedCount
       
      Returns a matcher that matches when the method is never executed.

      public static PHPUnit\Framework\Assert::objectHasAttribute( $attributeName) : PHPUnit\Framework\Constraint\ObjectHasAttribute
      public static once() : PHPUnit\Framework\MockObject\Rule\InvokedCount
       
      Returns a matcher that matches when the method is executed exactly once.

      public static onConsecutiveCalls( $args) : PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls
      public static PHPUnit\Framework\Assert::readAttribute( $classOrObject, string $attributeName)
       
      Returns the value of an attribute of a class or an object.

      This also works for attributes that are declared protected or private.

      • throws Exception
      • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
      • codeCoverageIgnore
      public registerComparator(SebastianBergmann\Comparator\Comparator $comparator) : void
      public registerMockObject(PHPUnit\Framework\MockObject\MockObject $mockObject) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static PHPUnit\Framework\Assert::resetCount() : void
       
      Reset the assertion counter.

      public static returnArgument(int $argumentIndex) : PHPUnit\Framework\MockObject\Stub\ReturnArgument
      public static returnCallback( $callback) : PHPUnit\Framework\MockObject\Stub\ReturnCallback
      public static returnSelf() : PHPUnit\Framework\MockObject\Stub\ReturnSelf
       
      Returns the current object.

      This method is useful when mocking a fluent interface.

      public static returnValue( $value) : PHPUnit\Framework\MockObject\Stub\ReturnStub
      public static returnValueMap(array $valueMap) : PHPUnit\Framework\MockObject\Stub\ReturnValueMap
      public run(?PHPUnit\Framework\TestResult $result = NULL) : PHPUnit\Framework\TestResult
       
      Runs the test case and collects the results in a TestResult object.

      If no TestResult object is passed a new one will be created.

      • throws CodeCoverageException
      • throws UtilException
      • throws SebastianBergmann\CodeCoverage\CoveredCodeNotExecutedException
      • throws SebastianBergmann\CodeCoverage\InvalidArgumentException
      • throws SebastianBergmann\CodeCoverage\MissingCoversAnnotationException
      • throws SebastianBergmann\CodeCoverage\RuntimeException
      • throws SebastianBergmann\CodeCoverage\UnintentionallyCoveredCodeException
      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      public runBare() : void
       


      • throws Throwable
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setBackupGlobals(?bool $backupGlobals) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setBackupStaticAttributes(?bool $backupStaticAttributes) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setBeStrictAboutChangesToGlobalState(?bool $beStrictAboutChangesToGlobalState) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setDependencies(array $dependencies) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setDependencyInput(array $dependencyInput) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setGroups(array $groups) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setInIsolation(bool $inIsolation) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setName(string $name) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setOutputCallback(callable $callback) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setPreserveGlobalState(bool $preserveGlobalState) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setRegisterMockObjectsFromTestArgumentsRecursively(bool $flag) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setResult( $result) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setRunClassInSeparateProcess(bool $runClassInSeparateProcess) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setRunTestInSeparateProcess(bool $runTestInSeparateProcess) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public setTestResultObject(PHPUnit\Framework\TestResult $result) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public static setUpBeforeClass() : void
       
      This method is called before the first test of this test class is run.

      public setUseErrorHandler(bool $useErrorHandler) : void
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      • deprecated Invoking this method has no effect; it will be removed in PHPUnit 9
      public static PHPUnit\Framework\Assert::stringContains(string $string, bool $case = true) : PHPUnit\Framework\Constraint\StringContains
      public static PHPUnit\Framework\Assert::stringEndsWith(string $suffix) : PHPUnit\Framework\Constraint\StringEndsWith
      public static PHPUnit\Framework\Assert::stringStartsWith( $prefix) : PHPUnit\Framework\Constraint\StringStartsWith
      public static tearDownAfterClass() : void
       
      This method is called after the last test of this test class is run.

      public static throwException(Throwable $exception) : PHPUnit\Framework\MockObject\Stub\Exception
      public toString() : string
       
      Returns a string representation of the test case.

      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • throws Exception
      public usesDataProvider() : bool
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      Properties
      protected $backupGlobals
       


      • var bool
      protected $backupGlobalsBlacklist
       


      • var string[]
      protected $backupStaticAttributes
       


      • var bool
      protected $backupStaticAttributesBlacklist
       


      • var array>
      protected $preserveGlobalState
       


      • var bool
      protected $runTestInSeparateProcess
       


      • var bool
      Methods
      protected assertPostConditions() : void
       
      Performs assertions shared by all tests of a test case.

      This method is called between test and tearDown().

      protected assertPreConditions() : void
       
      Performs assertions shared by all tests of a test case.

      This method is called between setUp() and test.

      protected createConfiguredMock( $originalClassName, array $configuration) : PHPUnit\Framework\MockObject\MockObject
       
      Returns a configured mock object for the specified class.

      • psalm-template RealInstanceType of object
      • psalm-param class-string|string[] $originalClassName
      • psalm-return MockObject&RealInstanceType
      protected createMock( $originalClassName) : PHPUnit\Framework\MockObject\MockObject
       
      Returns a mock object for the specified class.

      • psalm-template RealInstanceType of object
      • psalm-param class-string|string[] $originalClassName
      • psalm-return MockObject&RealInstanceType
      protected createPartialMock( $originalClassName, array $methods) : PHPUnit\Framework\MockObject\MockObject
       
      Returns a partial mock object for the specified class.

      • psalm-template RealInstanceType of object
      • psalm-param class-string|string[] $originalClassName
      • psalm-return MockObject&RealInstanceType
      protected createResult() : PHPUnit\Framework\TestResult
       
      Creates a default TestResult object.

      • internal This method is not covered by the backward compatibility promise for PHPUnit
      protected createStub(string $originalClassName) : PHPUnit\Framework\MockObject\Stub
       
      Makes configurable stub for the specified class.

      • psalm-template RealInstanceType of object
      • psalm-param class-string $originalClassName
      • psalm-return Stub&RealInstanceType
      protected createTestProxy(string $originalClassName, array $constructorArguments = []) : PHPUnit\Framework\MockObject\MockObject
       
      Returns a test proxy for the specified class.

      • psalm-template RealInstanceType of object
      • psalm-param class-string $originalClassName
      • psalm-return MockObject&RealInstanceType
      protected getMockClass( $originalClassName, $methods = [], array $arguments = [], $mockClassName = '', $callOriginalConstructor = false, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false) : string
       
      Mocks the specified class and returns the name of the mocked class.

      • psalm-template RealInstanceType of object
      • psalm-param class-string|string $originalClassName
      • psalm-return class-string
      protected getMockForAbstractClass( $originalClassName, array $arguments = [], $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $mockedMethods = [], $cloneArguments = false) : PHPUnit\Framework\MockObject\MockObject
       
      Returns a mock object for the specified abstract class with all abstract methods of the class mocked. Concrete methods are not mocked by default.

      To mock concrete methods, use the 7th parameter ($mockedMethods).

      • psalm-template RealInstanceType of object
      • psalm-param class-string $originalClassName
      • psalm-return MockObject&RealInstanceType
      protected getMockForTrait( $traitName, array $arguments = [], $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $mockedMethods = [], $cloneArguments = false) : PHPUnit\Framework\MockObject\MockObject
       
      Returns a mock object for the specified trait with all abstract methods of the trait mocked. Concrete methods to mock can be specified with the `$mockedMethods` parameter.

        protected getMockFromWsdl( $wsdlFile, $originalClassName = '', $mockClassName = '', array $methods = [], $callOriginalConstructor = true, array $options = []) : PHPUnit\Framework\MockObject\MockObject
         
        Returns a mock object based on the given WSDL file.

        • psalm-template RealInstanceType of object
        • psalm-param class-string|string $originalClassName
        • psalm-return MockObject&RealInstanceType
        protected getObjectForTrait( $traitName, array $arguments = [], $traitClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true)
         
        Returns an object for the specified trait.

        • return object
        protected iniSet(string $varName, string $newValue) : void
         
        This method is a wrapper for the ini_set() function that automatically resets the modified php.ini setting to its original value after the test is run.

        • throws Exception
        protected onNotSuccessfulTest(Throwable $t) : void
         
        This method is called when a test method did not execute successfully.

        • throws Throwable
        protected prophesize( $classOrInterface = NULL) : Prophecy\Prophecy\ObjectProphecy
         


        • throws Prophecy\Exception\Doubler\ClassNotFoundException
        • throws Prophecy\Exception\Doubler\DoubleException
        • throws Prophecy\Exception\Doubler\InterfaceNotFoundException
        • psalm-param class-string|null $classOrInterface
        protected runTest()
         
        Override to run the test and assert its state.

        • throws AssertionFailedError
        • throws Exception
        • throws ExpectationFailedException
        • throws SebastianBergmann\ObjectEnumerator\InvalidArgumentException
        • throws Throwable
        protected setLocale( $args) : void
         
        This method is a wrapper for the setlocale() function that automatically resets the locale to its original value after the test is run.

        • throws Exception
        protected setUp() : void
         
        This method is called before each test.

        protected tearDown() : void
         
        This method is called after each test.

        Constants
        private PHPUnit\Framework\TestCase::LOCALE_CATEGORIES = [6, 3, 0, 4, 1, 2]
        Properties
        private $beStrictAboutChangesToGlobalState
         


        • var bool
        private $customComparators
         


        • var Comparator[]
        private $data
         


        • var array
        private $dataName
         


        • var string
        private $dependencies
         


        • var string[]
        private $dependencyInput
         


        • var array
        private $doesNotPerformAssertions
         


        • var bool
        private $doubledTypes
         


        • var string[]
        private $expectedException
         


        • var null|string
        private $expectedExceptionCode
         


        • var null|int|string
        private $expectedExceptionMessage
         


        • var null|string
        private $expectedExceptionMessageRegExp
         


        • var null|string
        private $groups
         


        • var string[]
        private $iniSettings
         


        • var array
        private $inIsolation
         


        • var bool
        private $locale
         


        • var array
        private $mockObjectGenerator
         


        • var MockGenerator
        private $mockObjects
         


        • var MockObject[]
        private $name
         


        • var string
        private $numAssertions
         


        • var int
        private $output
         


        • var string
        private $outputBufferingActive
         


        • var bool
        private $outputBufferingLevel
         


        • var int
        private $outputCallback
         


        • var mixed
        private $outputExpectedRegex
         


        • var string
        private $outputExpectedString
         


        • var string
        private $outputRetrievedForAssertion
         


        • var bool
        private $prophet
         


        • var Prophecy\Prophet
        private $registerMockObjectsFromTestArgumentsRecursively
         


        • var bool
        private $result
        private $runClassInSeparateProcess
         


        • var bool
        private $snapshot
         


        • var Snapshot
        private $status
         


        • var int
        private $statusMessage
         


        • var string
        private $testResult
         


        • var mixed
        private $warnings
         


        • var string[]
        Methods
        private checkExceptionExpectations(Throwable $throwable) : bool
         


        • throws Exception
        private checkRequirements() : void
         


        • throws Warning
        • throws SkippedTestError
        • throws SyntheticSkippedError
        private cleanupIniSettings() : void
        private cleanupLocaleSettings() : void
        private compareGlobalStateSnapshotPart(array $before, array $after, string $header) : void
         


        • throws RiskyTestError
        private compareGlobalStateSnapshots(SebastianBergmann\GlobalState\Snapshot $before, SebastianBergmann\GlobalState\Snapshot $after) : void
         


        • throws RiskyTestError
        • throws SebastianBergmann\RecursionContext\InvalidArgumentException
        private createGlobalStateSnapshot(bool $backupGlobals) : SebastianBergmann\GlobalState\Snapshot
        private static PHPUnit\Framework\Assert::createWarning(string $warning) : void
         


        • codeCoverageIgnore
        private static PHPUnit\Framework\Assert::detectLocationHint(string $message) : array
        private getMockObjectGenerator() : PHPUnit\Framework\MockObject\Generator
         
        Get the mock object generator, creating it if it doesn't exist.

        private getProphet() : Prophecy\Prophet
        private handleDependencies() : bool
        private isCallableTestMethod(string $dependency) : bool
        private static PHPUnit\Framework\Assert::isValidClassAttributeName(string $attributeName) : bool
        private static PHPUnit\Framework\Assert::isValidObjectAttributeName(string $attributeName) : bool
        private markSkippedForMissingDependency(string $dependency) : void
        private markSkippedForNotSpecifyingDependency() : void
        private recordDoubledType( $originalClassName) : void
         


          private registerMockObjectsFromTestArguments(array $testArguments, array $visited = []) : void
           


          • throws SebastianBergmann\ObjectEnumerator\InvalidArgumentException
          • throws SebastianBergmann\ObjectReflector\InvalidArgumentException
          • throws SebastianBergmann\RecursionContext\InvalidArgumentException
          private restoreGlobalState() : void
           


          • throws RiskyTestError
          • throws SebastianBergmann\RecursionContext\InvalidArgumentException
          private runInSeparateProcess() : bool
          private setDoesNotPerformAssertionsFromAnnotation() : void
          private setExpectedExceptionFromAnnotation() : void
          private shouldInvocationMockerBeReset(PHPUnit\Framework\MockObject\MockObject $mock) : bool
           


          • throws SebastianBergmann\ObjectEnumerator\InvalidArgumentException
          private snapshotGlobalState() : void
          private startOutputBuffering() : void
          private stopOutputBuffering() : void
           


          • throws RiskyTestError
          private unregisterCustomComparators() : void
          private verifyMockObjects() : void
           


          • throws Throwable
          private warnAboutDependencyThatDoesNotExist(string $dependency) : void
          Methods
          public static any() : PHPUnit\Framework\MockObject\Rule\AnyInvokedCount
           
          Returns a matcher that matches when the method is executed zero or more times.

          public static PHPUnit\Framework\Assert::anything() : PHPUnit\Framework\Constraint\IsAnything
          public static PHPUnit\Framework\Assert::arrayHasKey( $key) : PHPUnit\Framework\Constraint\ArrayHasKey
           


            public static PHPUnit\Framework\Assert::assertArrayHasKey( $key, $array, string $message = '') : void
             
            Asserts that an array has a specified key.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::assertArrayNotHasKey( $key, $array, string $message = '') : void
             
            Asserts that an array does not have a specified key.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertClassHasAttribute(string $attributeName, string $className, string $message = '') : void
             
            Asserts that a class has a specified attribute.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertContainsEquals( $needle, iterable $haystack, string $message = '') : void
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertDirectoryExists(string $directory, string $message = '') : void
             
            Asserts that a directory exists.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertDirectoryIsReadable(string $directory, string $message = '') : void
             
            Asserts that a directory exists and is readable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertDirectoryIsWritable(string $directory, string $message = '') : void
             
            Asserts that a directory exists and is writable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertDirectoryNotExists(string $directory, string $message = '') : void
             
            Asserts that a directory does not exist.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertDirectoryNotIsReadable(string $directory, string $message = '') : void
             
            Asserts that a directory exists and is not readable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertDirectoryNotIsWritable(string $directory, string $message = '') : void
             
            Asserts that a directory exists and is not writable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertEmpty( $actual, string $message = '') : void
             
            Asserts that a variable is empty.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert empty $actual
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertEqualsCanonicalizing( $expected, $actual, string $message = '') : void
             
            Asserts that two variables are equal (canonicalizing).

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertEqualsIgnoringCase( $expected, $actual, string $message = '') : void
             
            Asserts that two variables are equal (ignoring case).

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertEqualsWithDelta( $expected, $actual, float $delta, string $message = '') : void
             
            Asserts that two variables are equal (with delta).

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertFalse( $condition, string $message = '') : void
             
            Asserts that a condition is false.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert false $condition
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertFileExists(string $filename, string $message = '') : void
             
            Asserts that a file exists.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertFileIsReadable(string $file, string $message = '') : void
             
            Asserts that a file exists and is readable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertFileIsWritable(string $file, string $message = '') : void
             
            Asserts that a file exists and is writable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertFileNotExists(string $filename, string $message = '') : void
             
            Asserts that a file does not exist.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertFileNotIsReadable(string $file, string $message = '') : void
             
            Asserts that a file exists and is not readable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertFileNotIsWritable(string $file, string $message = '') : void
             
            Asserts that a file exists and is not writable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertFinite( $actual, string $message = '') : void
             
            Asserts that a variable is finite.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertGreaterThan( $expected, $actual, string $message = '') : void
             
            Asserts that a value is greater than another value.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertGreaterThanOrEqual( $expected, $actual, string $message = '') : void
             
            Asserts that a value is greater than or equal to another value.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertInfinite( $actual, string $message = '') : void
             
            Asserts that a variable is infinite.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertIsArray( $actual, string $message = '') : void
             
            Asserts that a variable is of type array.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert array $actual
            public static PHPUnit\Framework\Assert::assertIsBool( $actual, string $message = '') : void
             
            Asserts that a variable is of type bool.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert bool $actual
            public static PHPUnit\Framework\Assert::assertIsCallable( $actual, string $message = '') : void
             
            Asserts that a variable is of type callable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert callable $actual
            public static PHPUnit\Framework\Assert::assertIsFloat( $actual, string $message = '') : void
             
            Asserts that a variable is of type float.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert float $actual
            public static PHPUnit\Framework\Assert::assertIsInt( $actual, string $message = '') : void
             
            Asserts that a variable is of type int.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert int $actual
            public static PHPUnit\Framework\Assert::assertIsIterable( $actual, string $message = '') : void
             
            Asserts that a variable is of type iterable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert iterable $actual
            public static PHPUnit\Framework\Assert::assertIsNotArray( $actual, string $message = '') : void
             
            Asserts that a variable is not of type array.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !array $actual
            public static PHPUnit\Framework\Assert::assertIsNotBool( $actual, string $message = '') : void
             
            Asserts that a variable is not of type bool.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !bool $actual
            public static PHPUnit\Framework\Assert::assertIsNotCallable( $actual, string $message = '') : void
             
            Asserts that a variable is not of type callable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !callable $actual
            public static PHPUnit\Framework\Assert::assertIsNotFloat( $actual, string $message = '') : void
             
            Asserts that a variable is not of type float.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !float $actual
            public static PHPUnit\Framework\Assert::assertIsNotInt( $actual, string $message = '') : void
             
            Asserts that a variable is not of type int.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !int $actual
            public static PHPUnit\Framework\Assert::assertIsNotIterable( $actual, string $message = '') : void
             
            Asserts that a variable is not of type iterable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !iterable $actual
            public static PHPUnit\Framework\Assert::assertIsNotNumeric( $actual, string $message = '') : void
             
            Asserts that a variable is not of type numeric.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !numeric $actual
            public static PHPUnit\Framework\Assert::assertIsNotObject( $actual, string $message = '') : void
             
            Asserts that a variable is not of type object.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !object $actual
            public static PHPUnit\Framework\Assert::assertIsNotResource( $actual, string $message = '') : void
             
            Asserts that a variable is not of type resource.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !resource $actual
            public static PHPUnit\Framework\Assert::assertIsNotScalar( $actual, string $message = '') : void
             
            Asserts that a variable is not of type scalar.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !scalar $actual
            public static PHPUnit\Framework\Assert::assertIsNotString( $actual, string $message = '') : void
             
            Asserts that a variable is not of type string.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !string $actual
            public static PHPUnit\Framework\Assert::assertIsNumeric( $actual, string $message = '') : void
             
            Asserts that a variable is of type numeric.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert numeric $actual
            public static PHPUnit\Framework\Assert::assertIsObject( $actual, string $message = '') : void
             
            Asserts that a variable is of type object.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert object $actual
            public static PHPUnit\Framework\Assert::assertIsReadable(string $filename, string $message = '') : void
             
            Asserts that a file/dir is readable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertIsResource( $actual, string $message = '') : void
             
            Asserts that a variable is of type resource.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert resource $actual
            public static PHPUnit\Framework\Assert::assertIsScalar( $actual, string $message = '') : void
             
            Asserts that a variable is of type scalar.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert scalar $actual
            public static PHPUnit\Framework\Assert::assertIsString( $actual, string $message = '') : void
             
            Asserts that a variable is of type string.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert string $actual
            public static PHPUnit\Framework\Assert::assertIsWritable(string $filename, string $message = '') : void
             
            Asserts that a file/dir exists and is writable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertJson(string $actualJson, string $message = '') : void
             
            Asserts that a string is a valid JSON string.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile, string $message = '') : void
             
            Asserts that two JSON files are equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile, string $message = '') : void
             
            Asserts that two JSON files are not equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertJsonStringNotEqualsJsonString( $expectedJson, $actualJson, string $message = '') : void
             
            Asserts that two given JSON encoded objects or arrays are not equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertLessThan( $expected, $actual, string $message = '') : void
             
            Asserts that a value is smaller than another value.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertLessThanOrEqual( $expected, $actual, string $message = '') : void
             
            Asserts that a value is smaller than or equal to another value.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertNan( $actual, string $message = '') : void
             
            Asserts that a variable is nan.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertNotContainsEquals( $needle, iterable $haystack, string $message = '') : void
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertNotEmpty( $actual, string $message = '') : void
             
            Asserts that a variable is not empty.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !empty $actual
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertNotEqualsCanonicalizing( $expected, $actual, string $message = '') : void
             
            Asserts that two variables are not equal (canonicalizing).

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertNotEqualsIgnoringCase( $expected, $actual, string $message = '') : void
             
            Asserts that two variables are not equal (ignoring case).

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertNotEqualsWithDelta( $expected, $actual, float $delta, string $message = '') : void
             
            Asserts that two variables are not equal (with delta).

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertNotFalse( $condition, string $message = '') : void
             
            Asserts that a condition is not false.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !false $condition
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertNotIsReadable(string $filename, string $message = '') : void
             
            Asserts that a file/dir exists and is not readable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertNotIsWritable(string $filename, string $message = '') : void
             
            Asserts that a file/dir exists and is not writable.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertNotNull( $actual, string $message = '') : void
             
            Asserts that a variable is not null.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !null $actual
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertNotTrue( $condition, string $message = '') : void
             
            Asserts that a condition is not true.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert !true $condition
            public static PHPUnit\Framework\Assert::assertNull( $actual, string $message = '') : void
             
            Asserts that a variable is null.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert null $actual
            public static PHPUnit\Framework\Assert::assertObjectHasAttribute(string $attributeName, $object, string $message = '') : void
             
            Asserts that an object has a specified attribute.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertRegExp(string $pattern, string $string, string $message = '') : void
             
            Asserts that a string matches a given regular expression.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertStringContainsString(string $needle, string $haystack, string $message = '') : void
             


            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') : void
             


            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertStringEndsNotWith(string $suffix, string $string, string $message = '') : void
             
            Asserts that a string ends not with a given suffix.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertStringEndsWith(string $suffix, string $string, string $message = '') : void
             
            Asserts that a string ends with a given suffix.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertStringMatchesFormat(string $format, string $string, string $message = '') : void
             
            Asserts that a string matches a given format string.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertStringMatchesFormatFile(string $formatFile, string $string, string $message = '') : void
             
            Asserts that a string matches a given format file.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertStringNotContainsString(string $needle, string $haystack, string $message = '') : void
             


            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertStringNotContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') : void
             


            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::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
            public static PHPUnit\Framework\Assert::assertStringStartsNotWith( $prefix, $string, string $message = '') : void
             
            Asserts that a string starts not with a given prefix.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertStringStartsWith(string $prefix, string $string, string $message = '') : void
             
            Asserts that a string starts with a given prefix.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertThat( $value, PHPUnit\Framework\Constraint\Constraint $constraint, string $message = '') : void
             
            Evaluates a PHPUnit\Framework\Constraint matcher object.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            public static PHPUnit\Framework\Assert::assertTrue( $condition, string $message = '') : void
             
            Asserts that a condition is true.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • psalm-assert true $condition
            public static PHPUnit\Framework\Assert::assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile, string $message = '') : void
             
            Asserts that two XML files are equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile, string $message = '') : void
             
            Asserts that two XML files are not equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml, string $message = '') : void
             
            Asserts that two XML documents are equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::assertXmlStringEqualsXmlString( $expectedXml, $actualXml, string $message = '') : void
             
            Asserts that two XML documents are equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::assertXmlStringNotEqualsXmlFile(string $expectedFile, $actualXml, string $message = '') : void
             
            Asserts that two XML documents are not equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static PHPUnit\Framework\Assert::assertXmlStringNotEqualsXmlString( $expectedXml, $actualXml, string $message = '') : void
             
            Asserts that two XML documents are not equal.

            • throws ExpectationFailedException
            • throws SebastianBergmann\RecursionContext\InvalidArgumentException
            • throws Exception
            public static at(int $index) : PHPUnit\Framework\MockObject\Rule\InvokedAtIndex
             
            Returns a matcher that matches when the method is executed at the given index.

            public static atLeast(int $requiredInvocations) : PHPUnit\Framework\MockObject\Rule\InvokedAtLeastCount
             
            Returns a matcher that matches when the method is executed at least N times.

            public static atLeastOnce() : PHPUnit\Framework\MockObject\Rule\InvokedAtLeastOnce
             
            Returns a matcher that matches when the method is executed at least once.

            public static atMost(int $allowedInvocations) : PHPUnit\Framework\MockObject\Rule\InvokedAtMostCount
             
            Returns a matcher that matches when the method is executed at most N times.

            public static PHPUnit\Framework\Assert::attribute(PHPUnit\Framework\Constraint\Constraint $constraint, string $attributeName) : PHPUnit\Framework\Constraint\Attribute
             


            • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
            • codeCoverageIgnore
            public static PHPUnit\Framework\Assert::attributeEqualTo(string $attributeName, $value, float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : PHPUnit\Framework\Constraint\Attribute
             


            • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
            • codeCoverageIgnore
            public static PHPUnit\Framework\Assert::callback(callable $callback) : PHPUnit\Framework\Constraint\Callback
            public static PHPUnit\Framework\Assert::classHasAttribute(string $attributeName) : PHPUnit\Framework\Constraint\ClassHasAttribute
            public static PHPUnit\Framework\Assert::classHasStaticAttribute(string $attributeName) : PHPUnit\Framework\Constraint\ClassHasStaticAttribute
            public static PHPUnit\Framework\Assert::contains( $value, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false) : PHPUnit\Framework\Constraint\TraversableContains
             


            • deprecated Use containsEqual() or containsIdentical() instead
            public static PHPUnit\Framework\Assert::containsEqual( $value) : PHPUnit\Framework\Constraint\TraversableContainsEqual
            public static PHPUnit\Framework\Assert::containsIdentical( $value) : PHPUnit\Framework\Constraint\TraversableContainsIdentical
            public static PHPUnit\Framework\Assert::containsOnly(string $type) : PHPUnit\Framework\Constraint\TraversableContainsOnly
            public static PHPUnit\Framework\Assert::containsOnlyInstancesOf(string $className) : PHPUnit\Framework\Constraint\TraversableContainsOnly
            public static PHPUnit\Framework\Assert::countOf(int $count) : PHPUnit\Framework\Constraint\Count
            private static PHPUnit\Framework\Assert::createWarning(string $warning) : void
             


            • codeCoverageIgnore
            private static PHPUnit\Framework\Assert::detectLocationHint(string $message) : array
            public static PHPUnit\Framework\Assert::directoryExists() : PHPUnit\Framework\Constraint\DirectoryExists
            public static PHPUnit\Framework\Assert::equalTo( $value, float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false) : PHPUnit\Framework\Constraint\IsEqual
            public static exactly(int $count) : PHPUnit\Framework\MockObject\Rule\InvokedCount
             
            Returns a matcher that matches when the method is executed exactly $count times.

            public static PHPUnit\Framework\Assert::fail(string $message = '') : void
             
            Fails a test with the given message.

            • throws AssertionFailedError
            • psalm-return never-return
            public static PHPUnit\Framework\Assert::fileExists() : PHPUnit\Framework\Constraint\FileExists
            public static PHPUnit\Framework\Assert::getCount() : int
             
            Return the current assertion count.

            public static PHPUnit\Framework\Assert::getObjectAttribute( $object, string $attributeName)
             
            Returns the value of an object's attribute.

            This also works for attributes that are declared protected or private.

            • throws Exception
            • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
            • codeCoverageIgnore
            public static PHPUnit\Framework\Assert::getStaticAttribute(string $className, string $attributeName)
             
            Returns the value of a static attribute.

            This also works for attributes that are declared protected or private.

            • throws Exception
            • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
            • codeCoverageIgnore
            public static PHPUnit\Framework\Assert::greaterThan( $value) : PHPUnit\Framework\Constraint\GreaterThan
            public static PHPUnit\Framework\Assert::greaterThanOrEqual( $value) : PHPUnit\Framework\Constraint\LogicalOr
            public static PHPUnit\Framework\Assert::identicalTo( $value) : PHPUnit\Framework\Constraint\IsIdentical
            public static PHPUnit\Framework\Assert::isEmpty() : PHPUnit\Framework\Constraint\IsEmpty
            public static PHPUnit\Framework\Assert::isFalse() : PHPUnit\Framework\Constraint\IsFalse
            public static PHPUnit\Framework\Assert::isFinite() : PHPUnit\Framework\Constraint\IsFinite
            public static PHPUnit\Framework\Assert::isInfinite() : PHPUnit\Framework\Constraint\IsInfinite
            public static PHPUnit\Framework\Assert::isInstanceOf(string $className) : PHPUnit\Framework\Constraint\IsInstanceOf
            public static PHPUnit\Framework\Assert::isJson() : PHPUnit\Framework\Constraint\IsJson
            public static PHPUnit\Framework\Assert::isNan() : PHPUnit\Framework\Constraint\IsNan
            public static PHPUnit\Framework\Assert::isNull() : PHPUnit\Framework\Constraint\IsNull
            public static PHPUnit\Framework\Assert::isReadable() : PHPUnit\Framework\Constraint\IsReadable
            public static PHPUnit\Framework\Assert::isTrue() : PHPUnit\Framework\Constraint\IsTrue
            public static PHPUnit\Framework\Assert::isType(string $type) : PHPUnit\Framework\Constraint\IsType
            private static PHPUnit\Framework\Assert::isValidClassAttributeName(string $attributeName) : bool
            private static PHPUnit\Framework\Assert::isValidObjectAttributeName(string $attributeName) : bool
            public static PHPUnit\Framework\Assert::isWritable() : PHPUnit\Framework\Constraint\IsWritable
            public static PHPUnit\Framework\Assert::lessThan( $value) : PHPUnit\Framework\Constraint\LessThan
            public static PHPUnit\Framework\Assert::lessThanOrEqual( $value) : PHPUnit\Framework\Constraint\LogicalOr
            public static PHPUnit\Framework\Assert::logicalAnd() : PHPUnit\Framework\Constraint\LogicalAnd
             


            • throws Exception
            public static PHPUnit\Framework\Assert::logicalNot(PHPUnit\Framework\Constraint\Constraint $constraint) : PHPUnit\Framework\Constraint\LogicalNot
            public static PHPUnit\Framework\Assert::logicalOr() : PHPUnit\Framework\Constraint\LogicalOr
            public static PHPUnit\Framework\Assert::logicalXor() : PHPUnit\Framework\Constraint\LogicalXor
            public static PHPUnit\Framework\Assert::markTestIncomplete(string $message = '') : void
             
            Mark the test as incomplete.

            • throws IncompleteTestError
            public static PHPUnit\Framework\Assert::markTestSkipped(string $message = '') : void
             
            Mark the test as skipped.

            • throws SkippedTestError
            • throws SyntheticSkippedError
            public static PHPUnit\Framework\Assert::matches(string $string) : PHPUnit\Framework\Constraint\StringMatchesFormatDescription
            public static PHPUnit\Framework\Assert::matchesRegularExpression(string $pattern) : PHPUnit\Framework\Constraint\RegularExpression
            public static never() : PHPUnit\Framework\MockObject\Rule\InvokedCount
             
            Returns a matcher that matches when the method is never executed.

            public static PHPUnit\Framework\Assert::objectHasAttribute( $attributeName) : PHPUnit\Framework\Constraint\ObjectHasAttribute
            public static once() : PHPUnit\Framework\MockObject\Rule\InvokedCount
             
            Returns a matcher that matches when the method is executed exactly once.

            public static onConsecutiveCalls( $args) : PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls
            public static PHPUnit\Framework\Assert::readAttribute( $classOrObject, string $attributeName)
             
            Returns the value of an attribute of a class or an object.

            This also works for attributes that are declared protected or private.

            • throws Exception
            • deprecated https://github.com/sebastianbergmann/phpunit/issues/3338
            • codeCoverageIgnore
            public static PHPUnit\Framework\Assert::resetCount() : void
             
            Reset the assertion counter.

            public static returnArgument(int $argumentIndex) : PHPUnit\Framework\MockObject\Stub\ReturnArgument
            public static returnCallback( $callback) : PHPUnit\Framework\MockObject\Stub\ReturnCallback
            public static returnSelf() : PHPUnit\Framework\MockObject\Stub\ReturnSelf
             
            Returns the current object.

            This method is useful when mocking a fluent interface.

            public static returnValue( $value) : PHPUnit\Framework\MockObject\Stub\ReturnStub
            public static returnValueMap(array $valueMap) : PHPUnit\Framework\MockObject\Stub\ReturnValueMap
            public static setUpBeforeClass() : void
             
            This method is called before the first test of this test class is run.

            public static PHPUnit\Framework\Assert::stringContains(string $string, bool $case = true) : PHPUnit\Framework\Constraint\StringContains
            public static PHPUnit\Framework\Assert::stringEndsWith(string $suffix) : PHPUnit\Framework\Constraint\StringEndsWith
            public static PHPUnit\Framework\Assert::stringStartsWith( $prefix) : PHPUnit\Framework\Constraint\StringStartsWith
            public static tearDownAfterClass() : void
             
            This method is called after the last test of this test class is run.

            public static throwException(Throwable $exception) : PHPUnit\Framework\MockObject\Stub\Exception
            © 2020 Bruce Wells
            Search Namespaces \ Classes
            ConfigurationNumbers (0-9.) only