SystemTestCase can be extended to implement system tests

  • experimental
  • internal
CloneableInstantiable
ExtendsPHPUnit\Framework\TestCase
PHPUnit\Framework\Assert
ImplementsCountable
PHPUnit\Framework\SelfDescribing
PHPUnit\Framework\Test
Methods
public PHPUnit\Framework\TestCase::__construct( $name = NULL, array $data = [], $dataName = '')
 


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


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


  • internal This method is not covered by the backward compatibility promise for PHPUnit
public static PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::at(int $index) : PHPUnit\Framework\MockObject\Rule\InvokedAtIndex
     
    Returns a matcher that matches when the method is executed at the given index.

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

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

    public static PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::count() : int
    public static PHPUnit\Framework\Assert::countOf(int $count) : PHPUnit\Framework\Constraint\Count
    public static createBucket(Google\Cloud\Storage\StorageClient $client, $bucketName, array $options = [])
     
    Create a bucket and enqueue it for deletion.

    This method provides a means of creating a bucket with pre-configured
    flush+delete functionality. Use in place of StorageClient::createBucket().

    When inserting objects into a bucket created with this method, you do NOT need
    to enqueue those objects for deletion or concern yourself with order of
    operations.

    • return Bucket
    • experimental
    • internal
    public static createDataset(Google\Cloud\BigQuery\BigQueryClient $client, $datasetName, array $options = [])
     
    Create a dataset and enqueue it for deletion.

    This method provides a means of creating a dataset with pre-configured
    flush+delete functionality. Use in place of BigQueryClient::createDataset().

    When inserting tables into a dataset created with this method, you do NOT need
    to enqueue those tables for deletion or concern yourself with order of
    operations.

    • return Dataset
    • experimental
    • internal
    public static createTopic(Google\Cloud\PubSub\PubSubClient $client, $topicName, array $options = [])
     
    Create a topic and enqueue it for deletion.

    This method provides a means of creating a topic with pre-configured
    flush+delete functionality. Use in place of PubSubClient::createTopic().

    When inserting subscriptions into a topic created with this method, you do NOT need
    to enqueue those subscriptions for deletion or concern yourself with order of
    operations.

    • return Topic
    • experimental
    • internal
    public PHPUnit\Framework\TestCase::dataDescription() : string
     


    • internal This method is not covered by the backward compatibility promise for PHPUnit
    public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::doesNotPerformAssertions() : bool
     


    • internal This method is not covered by the backward compatibility promise for PHPUnit
    public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::exactly(int $count) : PHPUnit\Framework\MockObject\Rule\InvokedCount
     
    Returns a matcher that matches when the method is executed exactly $count times.

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


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


      public PHPUnit\Framework\TestCase::expectExceptionMessage(string $message) : void
      public PHPUnit\Framework\TestCase::expectExceptionMessageMatches(string $regularExpression) : void
      public PHPUnit\Framework\TestCase::expectExceptionMessageRegExp(string $regularExpression) : void
       


      • deprecated Use expectExceptionMessageMatches() instead
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::expectNotice() : void
      public PHPUnit\Framework\TestCase::expectNoticeMessage(string $message) : void
      public PHPUnit\Framework\TestCase::expectNoticeMessageMatches(string $regularExpression) : void
      public PHPUnit\Framework\TestCase::expectNotToPerformAssertions() : void
      public PHPUnit\Framework\TestCase::expectOutputRegex(string $expectedRegex) : void
      public PHPUnit\Framework\TestCase::expectOutputString(string $expectedString) : void
      public PHPUnit\Framework\TestCase::expectWarning() : void
      public PHPUnit\Framework\TestCase::expectWarningMessage(string $message) : void
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::getActualOutput() : string
       


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public PHPUnit\Framework\TestCase::getActualOutputForAssertion() : string
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::getDataSetAsString(bool $includeData = true) : string
       


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


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


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


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


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


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


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


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::getName(bool $withDataSet = true) : string
       


      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::getProvidedData() : array
       
      Gets the data set of a TestCase.

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


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::getStatus() : int
      public PHPUnit\Framework\TestCase::getStatusMessage() : string
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::hasDependencies() : bool
       


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


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


      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::isLarge() : bool
       


      • throws SebastianBergmann\RecursionContext\InvalidArgumentException
      • internal This method is not covered by the backward compatibility promise for PHPUnit
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::once() : PHPUnit\Framework\MockObject\Rule\InvokedCount
       
      Returns a matcher that matches when the method is executed exactly once.

      public static PHPUnit\Framework\TestCase::onConsecutiveCalls( $args) : PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls
      public static processQueue()
       
      Process the deletion queue

      • experimental
      • internal
      public static randId()
       
      Create a random integer ID for test entities.

      • return int
      • experimental
      • internal
      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 PHPUnit\Framework\TestCase::registerComparator(SebastianBergmann\Comparator\Comparator $comparator) : void
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::returnArgument(int $argumentIndex) : PHPUnit\Framework\MockObject\Stub\ReturnArgument
      public static PHPUnit\Framework\TestCase::returnCallback( $callback) : PHPUnit\Framework\MockObject\Stub\ReturnCallback
      public static PHPUnit\Framework\TestCase::returnSelf() : PHPUnit\Framework\MockObject\Stub\ReturnSelf
       
      Returns the current object.

      This method is useful when mocking a fluent interface.

      public static PHPUnit\Framework\TestCase::returnValue( $value) : PHPUnit\Framework\MockObject\Stub\ReturnStub
      public static PHPUnit\Framework\TestCase::returnValueMap(array $valueMap) : PHPUnit\Framework\MockObject\Stub\ReturnValueMap
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::runBare() : void
       


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

      public static setupQueue()
       
      Set up the deletion queue

      • experimental
      • internal
      public PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::tearDownAfterClass() : void
       
      This method is called after the last test of this test class is run.

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

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


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


      • var bool
      protected PHPUnit\Framework\TestCase::$backupGlobalsBlacklist
       


      • var string[]
      protected PHPUnit\Framework\TestCase::$backupStaticAttributes
       


      • var bool
      protected PHPUnit\Framework\TestCase::$backupStaticAttributesBlacklist
       


      • var array>
      protected static $deletionQueue
      protected PHPUnit\Framework\TestCase::$preserveGlobalState
       


      • var bool
      protected PHPUnit\Framework\TestCase::$runTestInSeparateProcess
       


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

      This method is called between test and tearDown().

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

      This method is called between setUp() and test.

      protected PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::createResult() : PHPUnit\Framework\TestResult
       
      Creates a default TestResult object.

      • internal This method is not covered by the backward compatibility promise for PHPUnit
      protected PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::getObjectForTrait( $traitName, array $arguments = [], $traitClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true)
         
        Returns an object for the specified trait.

        • return object
        protected PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::onNotSuccessfulTest(Throwable $t) : void
         
        This method is called when a test method did not execute successfully.

        • throws Throwable
        protected PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::runTest()
         
        Override to run the test and assert its state.

        • throws AssertionFailedError
        • throws Exception
        • throws ExpectationFailedException
        • throws SebastianBergmann\ObjectEnumerator\InvalidArgumentException
        • throws Throwable
        protected PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::setUp() : void
         
        This method is called before each test.

        protected PHPUnit\Framework\TestCase::tearDown() : void
         
        This method is called after each test.

        Methods
        private PHPUnit\Framework\TestCase::checkExceptionExpectations(Throwable $throwable) : bool
         


        • throws Exception
        private PHPUnit\Framework\TestCase::checkRequirements() : void
         


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


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


        • throws RiskyTestError
        • throws SebastianBergmann\RecursionContext\InvalidArgumentException
        private PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::getMockObjectGenerator() : PHPUnit\Framework\MockObject\Generator
         
        Get the mock object generator, creating it if it doesn't exist.

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


          private PHPUnit\Framework\TestCase::registerMockObjectsFromTestArguments(array $testArguments, array $visited = []) : void
           


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


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


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


          • throws RiskyTestError
          private PHPUnit\Framework\TestCase::unregisterCustomComparators() : void
          private PHPUnit\Framework\TestCase::verifyMockObjects() : void
           


          • throws Throwable
          private PHPUnit\Framework\TestCase::warnAboutDependencyThatDoesNotExist(string $dependency) : void
          Properties
          protected static $deletionQueue
          Methods
          public static PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::at(int $index) : PHPUnit\Framework\MockObject\Rule\InvokedAtIndex
             
            Returns a matcher that matches when the method is executed at the given index.

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

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

            public static PHPUnit\Framework\TestCase::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
            public static createBucket(Google\Cloud\Storage\StorageClient $client, $bucketName, array $options = [])
             
            Create a bucket and enqueue it for deletion.

            This method provides a means of creating a bucket with pre-configured
            flush+delete functionality. Use in place of StorageClient::createBucket().

            When inserting objects into a bucket created with this method, you do NOT need
            to enqueue those objects for deletion or concern yourself with order of
            operations.

            • return Bucket
            • experimental
            • internal
            public static createDataset(Google\Cloud\BigQuery\BigQueryClient $client, $datasetName, array $options = [])
             
            Create a dataset and enqueue it for deletion.

            This method provides a means of creating a dataset with pre-configured
            flush+delete functionality. Use in place of BigQueryClient::createDataset().

            When inserting tables into a dataset created with this method, you do NOT need
            to enqueue those tables for deletion or concern yourself with order of
            operations.

            • return Dataset
            • experimental
            • internal
            public static createTopic(Google\Cloud\PubSub\PubSubClient $client, $topicName, array $options = [])
             
            Create a topic and enqueue it for deletion.

            This method provides a means of creating a topic with pre-configured
            flush+delete functionality. Use in place of PubSubClient::createTopic().

            When inserting subscriptions into a topic created with this method, you do NOT need
            to enqueue those subscriptions for deletion or concern yourself with order of
            operations.

            • return Topic
            • experimental
            • internal
            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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::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 PHPUnit\Framework\TestCase::once() : PHPUnit\Framework\MockObject\Rule\InvokedCount
             
            Returns a matcher that matches when the method is executed exactly once.

            public static PHPUnit\Framework\TestCase::onConsecutiveCalls( $args) : PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls
            public static processQueue()
             
            Process the deletion queue

            • experimental
            • internal
            public static randId()
             
            Create a random integer ID for test entities.

            • return int
            • experimental
            • internal
            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 PHPUnit\Framework\TestCase::returnArgument(int $argumentIndex) : PHPUnit\Framework\MockObject\Stub\ReturnArgument
            public static PHPUnit\Framework\TestCase::returnCallback( $callback) : PHPUnit\Framework\MockObject\Stub\ReturnCallback
            public static PHPUnit\Framework\TestCase::returnSelf() : PHPUnit\Framework\MockObject\Stub\ReturnSelf
             
            Returns the current object.

            This method is useful when mocking a fluent interface.

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

            public static setupQueue()
             
            Set up the deletion queue

            • experimental
            • internal
            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 PHPUnit\Framework\TestCase::tearDownAfterClass() : void
             
            This method is called after the last test of this test class is run.

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