file-fetcher
|
A set of assertion methods.
Static Public Member Functions | |
static | assertArrayHasKey ($key, $array, string $message='') |
static | assertArraySubset ($subset, $array, bool $checkForObjectIdentity=false, string $message='') |
static | assertArrayNotHasKey ($key, $array, string $message='') |
static | assertContains ($needle, $haystack, string $message='', bool $ignoreCase=false, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false) |
static | assertContainsEquals ($needle, iterable $haystack, string $message='') |
static | assertAttributeContains ($needle, string $haystackAttributeName, $haystackClassOrObject, string $message='', bool $ignoreCase=false, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false) |
static | assertNotContains ($needle, $haystack, string $message='', bool $ignoreCase=false, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false) |
static | assertNotContainsEquals ($needle, iterable $haystack, string $message='') |
static | assertAttributeNotContains ($needle, string $haystackAttributeName, $haystackClassOrObject, string $message='', bool $ignoreCase=false, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false) |
static | assertContainsOnly (string $type, iterable $haystack, ?bool $isNativeType=null, string $message='') |
static | assertContainsOnlyInstancesOf (string $className, iterable $haystack, string $message='') |
static | assertAttributeContainsOnly (string $type, string $haystackAttributeName, $haystackClassOrObject, ?bool $isNativeType=null, string $message='') |
static | assertNotContainsOnly (string $type, iterable $haystack, ?bool $isNativeType=null, string $message='') |
static | assertAttributeNotContainsOnly (string $type, string $haystackAttributeName, $haystackClassOrObject, ?bool $isNativeType=null, string $message='') |
static | assertCount (int $expectedCount, $haystack, string $message='') |
static | assertAttributeCount (int $expectedCount, string $haystackAttributeName, $haystackClassOrObject, string $message='') |
static | assertNotCount (int $expectedCount, $haystack, string $message='') |
static | assertAttributeNotCount (int $expectedCount, string $haystackAttributeName, $haystackClassOrObject, string $message='') |
static | assertEquals ($expected, $actual, string $message='', float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false) |
static | assertEqualsCanonicalizing ($expected, $actual, string $message='') |
static | assertEqualsIgnoringCase ($expected, $actual, string $message='') |
static | assertEqualsWithDelta ($expected, $actual, float $delta, string $message='') |
static | assertAttributeEquals ($expected, string $actualAttributeName, $actualClassOrObject, string $message='', float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false) |
static | assertNotEquals ($expected, $actual, string $message='', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false) |
static | assertNotEqualsCanonicalizing ($expected, $actual, string $message='') |
static | assertNotEqualsIgnoringCase ($expected, $actual, string $message='') |
static | assertNotEqualsWithDelta ($expected, $actual, float $delta, string $message='') |
static | assertAttributeNotEquals ($expected, string $actualAttributeName, $actualClassOrObject, string $message='', float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false) |
static | assertEmpty ($actual, string $message='') |
static | assertAttributeEmpty (string $haystackAttributeName, $haystackClassOrObject, string $message='') |
static | assertNotEmpty ($actual, string $message='') |
static | assertAttributeNotEmpty (string $haystackAttributeName, $haystackClassOrObject, string $message='') |
static | assertGreaterThan ($expected, $actual, string $message='') |
static | assertAttributeGreaterThan ($expected, string $actualAttributeName, $actualClassOrObject, string $message='') |
static | assertGreaterThanOrEqual ($expected, $actual, string $message='') |
static | assertAttributeGreaterThanOrEqual ($expected, string $actualAttributeName, $actualClassOrObject, string $message='') |
static | assertLessThan ($expected, $actual, string $message='') |
static | assertAttributeLessThan ($expected, string $actualAttributeName, $actualClassOrObject, string $message='') |
static | assertLessThanOrEqual ($expected, $actual, string $message='') |
static | assertAttributeLessThanOrEqual ($expected, string $actualAttributeName, $actualClassOrObject, string $message='') |
static | assertFileEquals (string $expected, string $actual, string $message='', bool $canonicalize=false, bool $ignoreCase=false) |
static | assertFileEqualsCanonicalizing (string $expected, string $actual, string $message='') |
static | assertFileEqualsIgnoringCase (string $expected, string $actual, string $message='') |
static | assertFileNotEquals (string $expected, string $actual, string $message='', bool $canonicalize=false, bool $ignoreCase=false) |
static | assertFileNotEqualsCanonicalizing (string $expected, string $actual, string $message='') |
static | assertFileNotEqualsIgnoringCase (string $expected, string $actual, string $message='') |
static | assertStringEqualsFile (string $expectedFile, string $actualString, string $message='', bool $canonicalize=false, bool $ignoreCase=false) |
static | assertStringEqualsFileCanonicalizing (string $expectedFile, string $actualString, string $message='') |
static | assertStringEqualsFileIgnoringCase (string $expectedFile, string $actualString, string $message='') |
static | assertStringNotEqualsFile (string $expectedFile, string $actualString, string $message='', bool $canonicalize=false, bool $ignoreCase=false) |
static | assertStringNotEqualsFileCanonicalizing (string $expectedFile, string $actualString, string $message='') |
static | assertStringNotEqualsFileIgnoringCase (string $expectedFile, string $actualString, string $message='') |
static | assertIsReadable (string $filename, string $message='') |
static | assertNotIsReadable (string $filename, string $message='') |
static | assertIsWritable (string $filename, string $message='') |
static | assertNotIsWritable (string $filename, string $message='') |
static | assertDirectoryExists (string $directory, string $message='') |
static | assertDirectoryNotExists (string $directory, string $message='') |
static | assertDirectoryIsReadable (string $directory, string $message='') |
static | assertDirectoryNotIsReadable (string $directory, string $message='') |
static | assertDirectoryIsWritable (string $directory, string $message='') |
static | assertDirectoryNotIsWritable (string $directory, string $message='') |
static | assertFileExists (string $filename, string $message='') |
static | assertFileNotExists (string $filename, string $message='') |
static | assertFileIsReadable (string $file, string $message='') |
static | assertFileNotIsReadable (string $file, string $message='') |
static | assertFileIsWritable (string $file, string $message='') |
static | assertFileNotIsWritable (string $file, string $message='') |
static | assertTrue ($condition, string $message='') |
static | assertNotTrue ($condition, string $message='') |
static | assertFalse ($condition, string $message='') |
static | assertNotFalse ($condition, string $message='') |
static | assertNull ($actual, string $message='') |
static | assertNotNull ($actual, string $message='') |
static | assertFinite ($actual, string $message='') |
static | assertInfinite ($actual, string $message='') |
static | assertNan ($actual, string $message='') |
static | assertClassHasAttribute (string $attributeName, string $className, string $message='') |
static | assertClassNotHasAttribute (string $attributeName, string $className, string $message='') |
static | assertClassHasStaticAttribute (string $attributeName, string $className, string $message='') |
static | assertClassNotHasStaticAttribute (string $attributeName, string $className, string $message='') |
static | assertObjectHasAttribute (string $attributeName, $object, string $message='') |
static | assertObjectNotHasAttribute (string $attributeName, $object, string $message='') |
static | assertSame ($expected, $actual, string $message='') |
static | assertAttributeSame ($expected, string $actualAttributeName, $actualClassOrObject, string $message='') |
static | assertNotSame ($expected, $actual, string $message='') |
static | assertAttributeNotSame ($expected, string $actualAttributeName, $actualClassOrObject, string $message='') |
static | assertInstanceOf (string $expected, $actual, string $message='') |
static | assertAttributeInstanceOf (string $expected, string $attributeName, $classOrObject, string $message='') |
static | assertNotInstanceOf (string $expected, $actual, string $message='') |
static | assertAttributeNotInstanceOf (string $expected, string $attributeName, $classOrObject, string $message='') |
static | assertInternalType (string $expected, $actual, string $message='') |
static | assertAttributeInternalType (string $expected, string $attributeName, $classOrObject, string $message='') |
static | assertIsArray ($actual, string $message='') |
static | assertIsBool ($actual, string $message='') |
static | assertIsFloat ($actual, string $message='') |
static | assertIsInt ($actual, string $message='') |
static | assertIsNumeric ($actual, string $message='') |
static | assertIsObject ($actual, string $message='') |
static | assertIsResource ($actual, string $message='') |
static | assertIsString ($actual, string $message='') |
static | assertIsScalar ($actual, string $message='') |
static | assertIsCallable ($actual, string $message='') |
static | assertIsIterable ($actual, string $message='') |
static | assertNotInternalType (string $expected, $actual, string $message='') |
static | assertIsNotArray ($actual, string $message='') |
static | assertIsNotBool ($actual, string $message='') |
static | assertIsNotFloat ($actual, string $message='') |
static | assertIsNotInt ($actual, string $message='') |
static | assertIsNotNumeric ($actual, string $message='') |
static | assertIsNotObject ($actual, string $message='') |
static | assertIsNotResource ($actual, string $message='') |
static | assertIsNotString ($actual, string $message='') |
static | assertIsNotScalar ($actual, string $message='') |
static | assertIsNotCallable ($actual, string $message='') |
static | assertIsNotIterable ($actual, string $message='') |
static | assertAttributeNotInternalType (string $expected, string $attributeName, $classOrObject, string $message='') |
static | assertRegExp (string $pattern, string $string, string $message='') |
static | assertNotRegExp (string $pattern, string $string, string $message='') |
static | assertSameSize ($expected, $actual, string $message='') |
static | assertNotSameSize ($expected, $actual, string $message='') |
static | assertStringMatchesFormat (string $format, string $string, string $message='') |
static | assertStringNotMatchesFormat (string $format, string $string, string $message='') |
static | assertStringMatchesFormatFile (string $formatFile, string $string, string $message='') |
static | assertStringNotMatchesFormatFile (string $formatFile, string $string, string $message='') |
static | assertStringStartsWith (string $prefix, string $string, string $message='') |
static | assertStringStartsNotWith ($prefix, $string, string $message='') |
static | assertStringContainsString (string $needle, string $haystack, string $message='') |
static | assertStringContainsStringIgnoringCase (string $needle, string $haystack, string $message='') |
static | assertStringNotContainsString (string $needle, string $haystack, string $message='') |
static | assertStringNotContainsStringIgnoringCase (string $needle, string $haystack, string $message='') |
static | assertStringEndsWith (string $suffix, string $string, string $message='') |
static | assertStringEndsNotWith (string $suffix, string $string, string $message='') |
static | assertXmlFileEqualsXmlFile (string $expectedFile, string $actualFile, string $message='') |
static | assertXmlFileNotEqualsXmlFile (string $expectedFile, string $actualFile, string $message='') |
static | assertXmlStringEqualsXmlFile (string $expectedFile, $actualXml, string $message='') |
static | assertXmlStringNotEqualsXmlFile (string $expectedFile, $actualXml, string $message='') |
static | assertXmlStringEqualsXmlString ($expectedXml, $actualXml, string $message='') |
static | assertXmlStringNotEqualsXmlString ($expectedXml, $actualXml, string $message='') |
static | assertEqualXMLStructure (DOMElement $expectedElement, DOMElement $actualElement, bool $checkAttributes=false, string $message='') |
static | assertThat ($value, Constraint $constraint, string $message='') |
static | assertJson (string $actualJson, string $message='') |
static | assertJsonStringEqualsJsonString (string $expectedJson, string $actualJson, string $message='') |
static | assertJsonStringNotEqualsJsonString ($expectedJson, $actualJson, string $message='') |
static | assertJsonStringEqualsJsonFile (string $expectedFile, string $actualJson, string $message='') |
static | assertJsonStringNotEqualsJsonFile (string $expectedFile, string $actualJson, string $message='') |
static | assertJsonFileEqualsJsonFile (string $expectedFile, string $actualFile, string $message='') |
static | assertJsonFileNotEqualsJsonFile (string $expectedFile, string $actualFile, string $message='') |
static | logicalAnd () |
static | logicalOr () |
static | logicalNot (Constraint $constraint) |
static | logicalXor () |
static | anything () |
static | isTrue () |
static | callback (callable $callback) |
static | isFalse () |
static | isJson () |
static | isNull () |
static | isFinite () |
static | isInfinite () |
static | isNan () |
static | attribute (Constraint $constraint, string $attributeName) |
static | contains ($value, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false) |
static | containsEqual ($value) |
static | containsIdentical ($value) |
static | containsOnly (string $type) |
static | containsOnlyInstancesOf (string $className) |
static | arrayHasKey ($key) |
static | equalTo ($value, float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false) |
static | attributeEqualTo (string $attributeName, $value, float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false) |
static | isEmpty () |
static | isWritable () |
static | isReadable () |
static | directoryExists () |
static | fileExists () |
static | greaterThan ($value) |
static | greaterThanOrEqual ($value) |
static | classHasAttribute (string $attributeName) |
static | classHasStaticAttribute (string $attributeName) |
static | objectHasAttribute ($attributeName) |
static | identicalTo ($value) |
static | isInstanceOf (string $className) |
static | isType (string $type) |
static | lessThan ($value) |
static | lessThanOrEqual ($value) |
static | matchesRegularExpression (string $pattern) |
static | matches (string $string) |
static | stringStartsWith ($prefix) |
static | stringContains (string $string, bool $case=true) |
static | stringEndsWith (string $suffix) |
static | countOf (int $count) |
static | fail (string $message='') |
static | readAttribute ($classOrObject, string $attributeName) |
static | getStaticAttribute (string $className, string $attributeName) |
static | getObjectAttribute ($object, string $attributeName) |
static | markTestIncomplete (string $message='') |
static | markTestSkipped (string $message='') |
static | getCount () |
static | resetCount () |
|
static |
|
static |
int | string | $key |
|
static |
Asserts that an array has a specified key.
int | string | $key | |
array | ArrayAccess | $array |
ExpectationFailedException | |
|
static |
Asserts that an array does not have a specified key.
int | string | $key | |
array | ArrayAccess | $array |
ExpectationFailedException | |
|
static |
Asserts that an array has a specified subset.
array | ArrayAccess | $subset | |
array | ArrayAccess | $array |
ExpectationFailedException | |
|
static |
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains a needle.
object | string | $haystackClassOrObject |
ExpectationFailedException | |
|
static |
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.
object | string | $haystackClassOrObject | |
bool | $isNativeType |
ExpectationFailedException | |
|
static |
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
object | string | $haystackClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that a static attribute of a class or an attribute of an object is empty.
object | string | $haystackClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that a variable is equal to an attribute of an object.
object | string | $actualClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that an attribute is greater than another value.
object | string | $actualClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that an attribute is greater than or equal to another value.
object | string | $actualClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that an attribute is of a given type.
object | string | $classOrObject |
ExpectationFailedException | |
|
static |
Asserts that an attribute is of a given type.
object | string | $classOrObject |
ExpectationFailedException | |
|
static |
Asserts that an attribute is smaller than another value.
object | string | $actualClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that an attribute is smaller than or equal to another value.
object | string | $actualClassOrObject |
ExpectationFailedException | |
|
static |
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.
object | string | $haystackClassOrObject |
ExpectationFailedException | |
|
static |
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.
object | string | $haystackClassOrObject | |
bool | $isNativeType |
ExpectationFailedException | |
|
static |
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
object | string | $haystackClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that a static attribute of a class or an attribute of an object is not empty.
object | string | $haystackClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that a variable is not equal to an attribute of an object.
object | string | $actualClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that an attribute is of a given type.
object | string | $classOrObject |
ExpectationFailedException | |
|
static |
Asserts that an attribute is of a given type.
object | string | $classOrObject |
ExpectationFailedException | |
|
static |
Asserts that a variable and an attribute of an object do not have the same type and value.
object | string | $actualClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that a variable and an attribute of an object have the same type and value.
object | string | $actualClassOrObject |
ExpectationFailedException | |
|
static |
Asserts that a class has a specified attribute.
ExpectationFailedException | |
|
static |
Asserts that a class has a specified static attribute.
ExpectationFailedException | |
|
static |
Asserts that a class does not have a specified attribute.
ExpectationFailedException | |
|
static |
Asserts that a class does not have a specified static attribute.
ExpectationFailedException | |
|
static |
Asserts that a haystack contains a needle.
ExpectationFailedException | |
|
static |
|
static |
Asserts that a haystack contains only values of a given type.
ExpectationFailedException | |
|
static |
Asserts that a haystack contains only instances of a given class name.
ExpectationFailedException | |
|
static |
Asserts the number of elements of an array, Countable or Traversable.
Countable | iterable | $haystack |
ExpectationFailedException | |
|
static |
Asserts that a directory exists.
ExpectationFailedException | |
|
static |
Asserts that a directory exists and is readable.
ExpectationFailedException | |
|
static |
Asserts that a directory exists and is writable.
ExpectationFailedException | |
|
static |
Asserts that a directory does not exist.
ExpectationFailedException | |
|
static |
Asserts that a directory exists and is not readable.
ExpectationFailedException | |
|
static |
Asserts that a directory exists and is not writable.
ExpectationFailedException | |
|
static |
Asserts that a variable is empty.
ExpectationFailedException | |
|
static |
Asserts that two variables are equal.
ExpectationFailedException | |
|
static |
Asserts that two variables are equal (canonicalizing).
ExpectationFailedException | |
|
static |
Asserts that two variables are equal (ignoring case).
ExpectationFailedException | |
|
static |
Asserts that two variables are equal (with delta).
ExpectationFailedException | |
|
static |
Asserts that a hierarchy of DOMElements matches.
AssertionFailedError | |
ExpectationFailedException | |
|
static |
Asserts that a condition is false.
ExpectationFailedException | |
|
static |
Asserts that the contents of one file is equal to the contents of another file.
ExpectationFailedException | |
|
static |
Asserts that the contents of one file is equal to the contents of another file (canonicalizing).
ExpectationFailedException | |
|
static |
Asserts that the contents of one file is equal to the contents of another file (ignoring case).
ExpectationFailedException | |
|
static |
Asserts that a file exists.
ExpectationFailedException | |
|
static |
Asserts that a file exists and is readable.
ExpectationFailedException | |
|
static |
Asserts that a file exists and is writable.
ExpectationFailedException | |
|
static |
Asserts that the contents of one file is not equal to the contents of another file.
ExpectationFailedException | |
|
static |
Asserts that the contents of one file is not equal to the contents of another file (canonicalizing).
ExpectationFailedException | |
|
static |
Asserts that the contents of one file is not equal to the contents of another file (ignoring case).
ExpectationFailedException | |
|
static |
Asserts that a file does not exist.
ExpectationFailedException | |
|
static |
Asserts that a file exists and is not readable.
ExpectationFailedException | |
|
static |
Asserts that a file exists and is not writable.
ExpectationFailedException | |
|
static |
Asserts that a variable is finite.
ExpectationFailedException | |
|
static |
Asserts that a value is greater than another value.
ExpectationFailedException | |
|
static |
Asserts that a value is greater than or equal to another value.
ExpectationFailedException | |
|
static |
Asserts that a variable is infinite.
ExpectationFailedException | |
|
static |
Asserts that a variable is of a given type.
ExpectationFailedException | |
|
static |
Asserts that a variable is of a given type.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type array.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type bool.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type callable.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type float.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type int.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type iterable.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type array.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type bool.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type callable.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type float.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type int.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type iterable.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type numeric.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type object.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type resource.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type scalar.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of type string.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type numeric.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type object.
ExpectationFailedException | |
|
static |
Asserts that a file/dir is readable.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type resource.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type scalar.
ExpectationFailedException | |
|
static |
Asserts that a variable is of type string.
ExpectationFailedException | |
|
static |
Asserts that a file/dir exists and is writable.
ExpectationFailedException | |
|
static |
Asserts that a string is a valid JSON string.
ExpectationFailedException | |
|
static |
Asserts that two JSON files are equal.
ExpectationFailedException | |
|
static |
Asserts that two JSON files are not equal.
ExpectationFailedException | |
|
static |
Asserts that the generated JSON encoded object and the content of the given file are equal.
ExpectationFailedException | |
|
static |
Asserts that two given JSON encoded objects or arrays are equal.
ExpectationFailedException | |
|
static |
Asserts that the generated JSON encoded object and the content of the given file are not equal.
ExpectationFailedException | |
|
static |
Asserts that two given JSON encoded objects or arrays are not equal.
string | $expectedJson | |
string | $actualJson |
ExpectationFailedException | |
|
static |
Asserts that a value is smaller than another value.
ExpectationFailedException | |
|
static |
Asserts that a value is smaller than or equal to another value.
ExpectationFailedException | |
|
static |
Asserts that a variable is nan.
ExpectationFailedException | |
|
static |
Asserts that a haystack does not contain a needle.
ExpectationFailedException | |
|
static |
|
static |
Asserts that a haystack does not contain only values of a given type.
ExpectationFailedException | |
|
static |
Asserts the number of elements of an array, Countable or Traversable.
Countable | iterable | $haystack |
ExpectationFailedException | |
|
static |
Asserts that a variable is not empty.
ExpectationFailedException | |
|
static |
Asserts that two variables are not equal.
float | $delta | |
int | $maxDepth | |
bool | $canonicalize | |
bool | $ignoreCase |
ExpectationFailedException | |
|
static |
Asserts that two variables are not equal (canonicalizing).
ExpectationFailedException | |
|
static |
Asserts that two variables are not equal (ignoring case).
ExpectationFailedException | |
|
static |
Asserts that two variables are not equal (with delta).
ExpectationFailedException | |
|
static |
Asserts that a condition is not false.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of a given type.
ExpectationFailedException | |
|
static |
Asserts that a variable is not of a given type.
ExpectationFailedException | |
|
static |
Asserts that a file/dir exists and is not readable.
ExpectationFailedException | |
|
static |
Asserts that a file/dir exists and is not writable.
ExpectationFailedException | |
|
static |
Asserts that a variable is not null.
ExpectationFailedException | |
|
static |
Asserts that a string does not match a given regular expression.
ExpectationFailedException | |
|
static |
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.
ExpectationFailedException | |
|
static |
Assert that the size of two arrays (or Countable
or Traversable
objects) is not the same.
Countable | iterable | $expected | |
Countable | iterable | $actual |
ExpectationFailedException | |
|
static |
Asserts that a condition is not true.
ExpectationFailedException | |
|
static |
Asserts that a variable is null.
ExpectationFailedException | |
|
static |
Asserts that an object has a specified attribute.
object | $object |
ExpectationFailedException | |
|
static |
Asserts that an object does not have a specified attribute.
object | $object |
ExpectationFailedException | |
|
static |
Asserts that a string matches a given regular expression.
ExpectationFailedException | |
|
static |
Asserts that two variables have the same type and value. Used on objects, it asserts that two variables reference the same object.
ExpectationFailedException | |
|
static |
Assert that the size of two arrays (or Countable
or Traversable
objects) is the same.
Countable | iterable | $expected | |
Countable | iterable | $actual |
ExpectationFailedException | |
|
static |
ExpectationFailedException | |
|
static |
ExpectationFailedException | |
|
static |
Asserts that a string ends not with a given suffix.
ExpectationFailedException | |
|
static |
Asserts that a string ends with a given suffix.
ExpectationFailedException | |
|
static |
Asserts that the contents of a string is equal to the contents of a file.
ExpectationFailedException | |
|
static |
Asserts that the contents of a string is equal to the contents of a file (canonicalizing).
ExpectationFailedException | |
|
static |
Asserts that the contents of a string is equal to the contents of a file (ignoring case).
ExpectationFailedException | |
|
static |
Asserts that a string matches a given format string.
ExpectationFailedException | |
|
static |
Asserts that a string matches a given format file.
ExpectationFailedException | |
|
static |
ExpectationFailedException | |
|
static |
ExpectationFailedException | |
|
static |
Asserts that the contents of a string is not equal to the contents of a file.
ExpectationFailedException | |
|
static |
Asserts that the contents of a string is not equal to the contents of a file (canonicalizing).
ExpectationFailedException | |
|
static |
Asserts that the contents of a string is not equal to the contents of a file (ignoring case).
ExpectationFailedException | |
|
static |
Asserts that a string does not match a given format string.
ExpectationFailedException | |
|
static |
Asserts that a string does not match a given format string.
ExpectationFailedException | |
|
static |
Asserts that a string starts not with a given prefix.
string | $prefix | |
string | $string |
ExpectationFailedException | |
|
static |
Asserts that a string starts with a given prefix.
ExpectationFailedException | |
|
static |
Evaluates a PHPUnit\Framework\Constraint matcher object.
ExpectationFailedException | |
|
static |
Asserts that a condition is true.
ExpectationFailedException | |
|
static |
Asserts that two XML files are equal.
ExpectationFailedException | |
|
static |
Asserts that two XML files are not equal.
ExpectationFailedException | |
|
static |
Asserts that two XML documents are equal.
DOMDocument | string | $actualXml |
ExpectationFailedException | |
|
static |
Asserts that two XML documents are equal.
DOMDocument | string | $expectedXml | |
DOMDocument | string | $actualXml |
ExpectationFailedException | |
|
static |
Asserts that two XML documents are not equal.
DOMDocument | string | $actualXml |
ExpectationFailedException | |
|
static |
Asserts that two XML documents are not equal.
DOMDocument | string | $expectedXml | |
DOMDocument | string | $actualXml |
ExpectationFailedException | |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Fails a test with the given message.
AssertionFailedError | @psalm-return never-return |
|
static |
|
static |
Return the current assertion count.
|
static |
Returns the value of an object's attribute. This also works for attributes that are declared protected or private.
object | $object |
Exception |
|
static |
Returns the value of a static attribute. This also works for attributes that are declared protected or private.
Exception |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Exception |
|
static |
|
static |
|
static |
|
static |
Mark the test as incomplete.
IncompleteTestError | @psalm-return never-return |
|
static |
Mark the test as skipped.
SkippedTestError | |
SyntheticSkippedError | @psalm-return never-return |
|
static |
|
static |
|
static |
|
static |
Returns the value of an attribute of a class or an object. This also works for attributes that are declared protected or private.
object | string | $classOrObject |
Exception |
|
static |
Reset the assertion counter.
|
static |
|
static |
|
static |