PHP Class PHPUnit_Framework_Assert, phpunit

Author: Sebastian Bergmann ([email protected])
Mostra file Open project: sebastianbergmann/phpunit Class Usage Examples

Public Methods

Method Description
anything ( ) : PHPUnit_Framework_Constraint_IsAnything Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
arrayHasKey ( mixed $key ) : PHPUnit_Framework_Constraint_ArrayHasKey Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
assertArrayHasKey ( mixed $key, array | ArrayAccess $array, string $message = '' ) Asserts that an array has a specified key.
assertArrayNotHasKey ( mixed $key, array | ArrayAccess $array, string $message = '' ) Asserts that an array does not have a specified key.
assertArraySubset ( array | ArrayAccess $subset, array | ArrayAccess $array, boolean $strict = false, string $message = '' ) Asserts that an array has a specified subset.
assertAttributeContains ( mixed $needle, string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '', boolean $ignoreCase = false, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false ) Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains a needle.
assertAttributeContainsOnly ( string $type, string $haystackAttributeName, string | object $haystackClassOrObject, boolean $isNativeType = null, string $message = '' ) 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.
assertAttributeCount ( integer $expectedCount, string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '' ) Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
assertAttributeEmpty ( string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '' ) Asserts that a static attribute of a class or an attribute of an object is empty.
assertAttributeEquals ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '', float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false ) Asserts that a variable is equal to an attribute of an object.
assertAttributeGreaterThan ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' ) Asserts that an attribute is greater than another value.
assertAttributeGreaterThanOrEqual ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' ) Asserts that an attribute is greater than or equal to another value.
assertAttributeInstanceOf ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' ) Asserts that an attribute is of a given type.
assertAttributeInternalType ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' ) Asserts that an attribute is of a given type.
assertAttributeLessThan ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' ) Asserts that an attribute is smaller than another value.
assertAttributeLessThanOrEqual ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' ) Asserts that an attribute is smaller than or equal to another value.
assertAttributeNotContains ( mixed $needle, string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '', boolean $ignoreCase = false, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false ) 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.
assertAttributeNotContainsOnly ( string $type, string $haystackAttributeName, string | object $haystackClassOrObject, boolean $isNativeType = null, string $message = '' ) 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.
assertAttributeNotCount ( integer $expectedCount, string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '' ) Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
assertAttributeNotEmpty ( string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '' ) Asserts that a static attribute of a class or an attribute of an object is not empty.
assertAttributeNotEquals ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '', float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false ) Asserts that a variable is not equal to an attribute of an object.
assertAttributeNotInstanceOf ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' ) Asserts that an attribute is of a given type.
assertAttributeNotInternalType ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' ) Asserts that an attribute is of a given type.
assertAttributeNotSame ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' ) Asserts that a variable and an attribute of an object do not have the same type and value.
assertAttributeSame ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' ) Asserts that a variable and an attribute of an object have the same type and value.
assertClassHasAttribute ( string $attributeName, string $className, string $message = '' ) Asserts that a class has a specified attribute.
assertClassHasStaticAttribute ( string $attributeName, string $className, string $message = '' ) Asserts that a class has a specified static attribute.
assertClassNotHasAttribute ( string $attributeName, string $className, string $message = '' ) Asserts that a class does not have a specified attribute.
assertClassNotHasStaticAttribute ( string $attributeName, string $className, string $message = '' ) Asserts that a class does not have a specified static attribute.
assertContains ( mixed $needle, mixed $haystack, string $message = '', boolean $ignoreCase = false, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false ) Asserts that a haystack contains a needle.
assertContainsOnly ( string $type, mixed $haystack, boolean $isNativeType = null, string $message = '' ) Asserts that a haystack contains only values of a given type.
assertContainsOnlyInstancesOf ( string $classname, array | Traversable $haystack, string $message = '' ) Asserts that a haystack contains only instances of a given classname
assertCount ( integer $expectedCount, mixed $haystack, string $message = '' ) Asserts the number of elements of an array, Countable or Traversable.
assertDirectoryExists ( string $directory, string $message = '' ) Asserts that a directory exists.
assertDirectoryIsReadable ( string $directory, string $message = '' ) Asserts that a directory exists and is readable.
assertDirectoryIsWritable ( string $directory, string $message = '' ) Asserts that a directory exists and is writable.
assertDirectoryNotExists ( string $directory, string $message = '' ) Asserts that a directory does not exist.
assertDirectoryNotIsReadable ( string $directory, string $message = '' ) Asserts that a directory exists and is not readable.
assertDirectoryNotIsWritable ( string $directory, string $message = '' ) Asserts that a directory exists and is not writable.
assertEmpty ( mixed $actual, string $message = '' ) Asserts that a variable is empty.
assertEqualXMLStructure ( DOMElement $expectedElement, DOMElement $actualElement, boolean $checkAttributes = false, string $message = '' ) Asserts that a hierarchy of DOMElements matches.
assertEquals ( mixed $expected, mixed $actual, string $message = '', float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false ) Asserts that two variables are equal.
assertFalse ( boolean $condition, string $message = '' ) Asserts that a condition is false.
assertFileEquals ( string $expected, string $actual, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false ) Asserts that the contents of one file is equal to the contents of another file.
assertFileExists ( string $filename, string $message = '' ) Asserts that a file exists.
assertFileIsReadable ( string $file, string $message = '' ) Asserts that a file exists and is readable.
assertFileIsWritable ( string $file, string $message = '' ) Asserts that a file exists and is writable.
assertFileNotEquals ( string $expected, string $actual, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false ) Asserts that the contents of one file is not equal to the contents of another file.
assertFileNotExists ( string $filename, string $message = '' ) Asserts that a file does not exist.
assertFileNotIsReadable ( string $file, string $message = '' ) Asserts that a file exists and is not readable.
assertFileNotIsWritable ( string $file, string $message = '' ) Asserts that a file exists and is not writable.
assertFinite ( mixed $actual, string $message = '' ) Asserts that a variable is finite.
assertGreaterThan ( mixed $expected, mixed $actual, string $message = '' ) Asserts that a value is greater than another value.
assertGreaterThanOrEqual ( mixed $expected, mixed $actual, string $message = '' ) Asserts that a value is greater than or equal to another value.
assertInfinite ( mixed $actual, string $message = '' ) Asserts that a variable is infinite.
assertInstanceOf ( string $expected, mixed $actual, string $message = '' ) Asserts that a variable is of a given type.
assertInternalType ( string $expected, mixed $actual, string $message = '' ) Asserts that a variable is of a given type.
assertIsReadable ( string $filename, string $message = '' ) Asserts that a file/dir is readable.
assertIsWritable ( string $filename, string $message = '' ) Asserts that a file/dir exists and is writable.
assertJson ( string $actualJson, string $message = '' ) Asserts that a string is a valid JSON string.
assertJsonFileEqualsJsonFile ( string $expectedFile, string $actualFile, string $message = '' ) Asserts that two JSON files are equal.
assertJsonFileNotEqualsJsonFile ( string $expectedFile, string $actualFile, string $message = '' ) Asserts that two JSON files are not equal.
assertJsonStringEqualsJsonFile ( string $expectedFile, string $actualJson, string $message = '' ) Asserts that the generated JSON encoded object and the content of the given file are equal.
assertJsonStringEqualsJsonString ( string $expectedJson, string $actualJson, string $message = '' ) Asserts that two given JSON encoded objects or arrays are equal.
assertJsonStringNotEqualsJsonFile ( string $expectedFile, string $actualJson, string $message = '' ) Asserts that the generated JSON encoded object and the content of the given file are not equal.
assertJsonStringNotEqualsJsonString ( string $expectedJson, string $actualJson, string $message = '' ) Asserts that two given JSON encoded objects or arrays are not equal.
assertLessThan ( mixed $expected, mixed $actual, string $message = '' ) Asserts that a value is smaller than another value.
assertLessThanOrEqual ( mixed $expected, mixed $actual, string $message = '' ) Asserts that a value is smaller than or equal to another value.
assertNan ( mixed $actual, string $message = '' ) Asserts that a variable is nan.
assertNotContains ( mixed $needle, mixed $haystack, string $message = '', boolean $ignoreCase = false, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false ) Asserts that a haystack does not contain a needle.
assertNotContainsOnly ( string $type, mixed $haystack, boolean $isNativeType = null, string $message = '' ) Asserts that a haystack does not contain only values of a given type.
assertNotCount ( integer $expectedCount, mixed $haystack, string $message = '' ) Asserts the number of elements of an array, Countable or Traversable.
assertNotEmpty ( mixed $actual, string $message = '' ) Asserts that a variable is not empty.
assertNotEquals ( mixed $expected, mixed $actual, string $message = '', float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false ) Asserts that two variables are not equal.
assertNotFalse ( boolean $condition, string $message = '' ) Asserts that a condition is not false.
assertNotInstanceOf ( string $expected, mixed $actual, string $message = '' ) Asserts that a variable is not of a given type.
assertNotInternalType ( string $expected, mixed $actual, string $message = '' ) Asserts that a variable is not of a given type.
assertNotIsReadable ( string $filename, string $message = '' ) Asserts that a file/dir exists and is not readable.
assertNotIsWritable ( string $filename, string $message = '' ) Asserts that a file/dir exists and is not writable.
assertNotNull ( mixed $actual, string $message = '' ) Asserts that a variable is not null.
assertNotRegExp ( string $pattern, string $string, string $message = '' ) Asserts that a string does not match a given regular expression.
assertNotSame ( mixed $expected, mixed $actual, string $message = '' ) Asserts that two variables do not have the same type and value.
assertNotSameSize ( array | Countable | Traversable $expected, array | Countable | Traversable $actual, string $message = '' ) Assert that the size of two arrays (or Countable or Traversable objects) is not the same.
assertNotTrue ( boolean $condition, string $message = '' ) Asserts that a condition is not true.
assertNull ( mixed $actual, string $message = '' ) Asserts that a variable is null.
assertObjectHasAttribute ( string $attributeName, object $object, string $message = '' ) Asserts that an object has a specified attribute.
assertObjectNotHasAttribute ( string $attributeName, object $object, string $message = '' ) Asserts that an object does not have a specified attribute.
assertRegExp ( string $pattern, string $string, string $message = '' ) Asserts that a string matches a given regular expression.
assertSame ( mixed $expected, mixed $actual, string $message = '' ) Asserts that two variables have the same type and value.
assertSameSize ( array | Countable | Traversable $expected, array | Countable | Traversable $actual, string $message = '' ) Assert that the size of two arrays (or Countable or Traversable objects) is the same.
assertStringEndsNotWith ( string $suffix, string $string, string $message = '' ) Asserts that a string ends not with a given suffix.
assertStringEndsWith ( string $suffix, string $string, string $message = '' ) Asserts that a string ends with a given suffix.
assertStringEqualsFile ( string $expectedFile, string $actualString, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false ) Asserts that the contents of a string is equal to the contents of a file.
assertStringMatchesFormat ( string $format, string $string, string $message = '' ) Asserts that a string matches a given format string.
assertStringMatchesFormatFile ( string $formatFile, string $string, string $message = '' ) Asserts that a string matches a given format file.
assertStringNotEqualsFile ( string $expectedFile, string $actualString, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false ) Asserts that the contents of a string is not equal to the contents of a file.
assertStringNotMatchesFormat ( string $format, string $string, string $message = '' ) Asserts that a string does not match a given format string.
assertStringNotMatchesFormatFile ( string $formatFile, string $string, string $message = '' ) Asserts that a string does not match a given format string.
assertStringStartsNotWith ( string $prefix, string $string, string $message = '' ) Asserts that a string starts not with a given prefix.
assertStringStartsWith ( string $prefix, string $string, string $message = '' ) Asserts that a string starts with a given prefix.
assertThat ( mixed $value, PHPUnit_Framework_Constraint $constraint, string $message = '' ) Evaluates a PHPUnit_Framework_Constraint matcher object.
assertTrue ( boolean $condition, string $message = '' ) Asserts that a condition is true.
assertXmlFileEqualsXmlFile ( string $expectedFile, string $actualFile, string $message = '' ) Asserts that two XML files are equal.
assertXmlFileNotEqualsXmlFile ( string $expectedFile, string $actualFile, string $message = '' ) Asserts that two XML files are not equal.
assertXmlStringEqualsXmlFile ( string $expectedFile, string $actualXml, string $message = '' ) Asserts that two XML documents are equal.
assertXmlStringEqualsXmlString ( string $expectedXml, string $actualXml, string $message = '' ) Asserts that two XML documents are equal.
assertXmlStringNotEqualsXmlFile ( string $expectedFile, string $actualXml, string $message = '' ) Asserts that two XML documents are not equal.
assertXmlStringNotEqualsXmlString ( string $expectedXml, string $actualXml, string $message = '' ) Asserts that two XML documents are not equal.
attribute ( PHPUnit_Framework_Constraint $constraint, string $attributeName ) : PHPUnit_Framework_Constraint_Attribute Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
attributeEqualTo ( string $attributeName, mixed $value, float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false ) : PHPUnit_Framework_Constraint_Attribute Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
callback ( callable $callback ) : PHPUnit_Framework_Constraint_Callback Returns a PHPUnit_Framework_Constraint_Callback matcher object.
classHasAttribute ( string $attributeName ) : PHPUnit_Framework_Constraint_ClassHasAttribute Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
classHasStaticAttribute ( string $attributeName ) : PHPUnit_Framework_Constraint_ClassHasStaticAttribute Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.
contains ( mixed $value, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false ) : PHPUnit_Framework_Constraint_TraversableContains Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.
containsOnly ( string $type ) : PHPUnit_Framework_Constraint_TraversableContainsOnly Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
containsOnlyInstancesOf ( string $classname ) : PHPUnit_Framework_Constraint_TraversableContainsOnly Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
countOf ( integer $count ) : PHPUnit_Framework_Constraint_Count Returns a PHPUnit_Framework_Constraint_Count matcher object.
directoryExists ( ) : PHPUnit_Framework_Constraint_DirectoryExists Returns a PHPUnit_Framework_Constraint_DirectoryExists matcher object.
equalTo ( mixed $value, float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false ) : PHPUnit_Framework_Constraint_IsEqual Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
fail ( string $message = '' ) Fails a test with the given message.
fileExists ( ) : PHPUnit_Framework_Constraint_FileExists Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
getCount ( ) : integer Return the current assertion count.
getObjectAttribute ( object $object, string $attributeName ) : mixed Returns the value of an object's attribute.
getStaticAttribute ( string $className, string $attributeName ) : mixed Returns the value of a static attribute.
greaterThan ( mixed $value ) : PHPUnit_Framework_Constraint_GreaterThan Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
greaterThanOrEqual ( mixed $value ) : PHPUnit_Framework_Constraint_Or Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_GreaterThan matcher object.
identicalTo ( mixed $value ) : PHPUnit_Framework_Constraint_IsIdentical Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
isEmpty ( ) : PHPUnit_Framework_Constraint_IsEmpty Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
isFalse ( ) : PHPUnit_Framework_Constraint_IsFalse Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
isFinite ( ) : PHPUnit_Framework_Constraint_IsFinite Returns a PHPUnit_Framework_Constraint_IsFinite matcher object.
isInfinite ( ) : PHPUnit_Framework_Constraint_IsInfinite Returns a PHPUnit_Framework_Constraint_IsInfinite matcher object.
isInstanceOf ( string $className ) : PHPUnit_Framework_Constraint_IsInstanceOf Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
isJson ( ) : PHPUnit_Framework_Constraint_IsJson Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
isNan ( ) : PHPUnit_Framework_Constraint_IsNan Returns a PHPUnit_Framework_Constraint_IsNan matcher object.
isNull ( ) : PHPUnit_Framework_Constraint_IsNull Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
isReadable ( ) : PHPUnit_Framework_Constraint_IsReadable Returns a PHPUnit_Framework_Constraint_IsReadable matcher object.
isTrue ( ) : PHPUnit_Framework_Constraint_IsTrue Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
isType ( string $type ) : PHPUnit_Framework_Constraint_IsType Returns a PHPUnit_Framework_Constraint_IsType matcher object.
isWritable ( ) : PHPUnit_Framework_Constraint_IsWritable Returns a PHPUnit_Framework_Constraint_IsWritable matcher object.
lessThan ( mixed $value ) : PHPUnit_Framework_Constraint_LessThan Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
lessThanOrEqual ( mixed $value ) : PHPUnit_Framework_Constraint_Or Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.
logicalAnd ( ) : PHPUnit_Framework_Constraint_And Returns a PHPUnit_Framework_Constraint_And matcher object.
logicalNot ( PHPUnit_Framework_Constraint $constraint ) : PHPUnit_Framework_Constraint_Not Returns a PHPUnit_Framework_Constraint_Not matcher object.
logicalOr ( ) : PHPUnit_Framework_Constraint_Or Returns a PHPUnit_Framework_Constraint_Or matcher object.
logicalXor ( ) : PHPUnit_Framework_Constraint_Xor Returns a PHPUnit_Framework_Constraint_Xor matcher object.
markTestIncomplete ( string $message = '' ) Mark the test as incomplete.
markTestSkipped ( string $message = '' ) Mark the test as skipped.
matches ( string $string ) : PHPUnit_Framework_Constraint_StringMatches Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
matchesRegularExpression ( string $pattern ) : PHPUnit_Framework_Constraint_PCREMatch Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
objectHasAttribute ( string $attributeName ) : PHPUnit_Framework_Constraint_ObjectHasAttribute Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
readAttribute ( string | object $classOrObject, string $attributeName ) : mixed Returns the value of an attribute of a class or an object.
resetCount ( ) Reset the assertion counter.
stringContains ( string $string, boolean $case = true ) : PHPUnit_Framework_Constraint_StringContains Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
stringEndsWith ( mixed $suffix ) : PHPUnit_Framework_Constraint_StringEndsWith Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
stringStartsWith ( mixed $prefix ) : PHPUnit_Framework_Constraint_StringStartsWith Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.

Method Details

anything() public static method

Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
public static anything ( ) : PHPUnit_Framework_Constraint_IsAnything
return PHPUnit_Framework_Constraint_IsAnything

arrayHasKey() public static method

Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
public static arrayHasKey ( mixed $key ) : PHPUnit_Framework_Constraint_ArrayHasKey
$key mixed
return PHPUnit_Framework_Constraint_ArrayHasKey

assertArrayHasKey() public static method

Asserts that an array has a specified key.
public static assertArrayHasKey ( mixed $key, array | ArrayAccess $array, string $message = '' )
$key mixed
$array array | ArrayAccess
$message string

assertArrayNotHasKey() public static method

Asserts that an array does not have a specified key.
public static assertArrayNotHasKey ( mixed $key, array | ArrayAccess $array, string $message = '' )
$key mixed
$array array | ArrayAccess
$message string

assertArraySubset() public static method

Asserts that an array has a specified subset.
public static assertArraySubset ( array | ArrayAccess $subset, array | ArrayAccess $array, boolean $strict = false, string $message = '' )
$subset array | ArrayAccess
$array array | ArrayAccess
$strict boolean Check for object identity
$message string

assertAttributeContains() public static method

Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains a needle.
public static assertAttributeContains ( mixed $needle, string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '', boolean $ignoreCase = false, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false )
$needle mixed
$haystackAttributeName string
$haystackClassOrObject string | object
$message string
$ignoreCase boolean
$checkForObjectIdentity boolean
$checkForNonObjectIdentity boolean

assertAttributeContainsOnly() public static method

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.
public static assertAttributeContainsOnly ( string $type, string $haystackAttributeName, string | object $haystackClassOrObject, boolean $isNativeType = null, string $message = '' )
$type string
$haystackAttributeName string
$haystackClassOrObject string | object
$isNativeType boolean
$message string

assertAttributeCount() public static method

Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
public static assertAttributeCount ( integer $expectedCount, string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '' )
$expectedCount integer
$haystackAttributeName string
$haystackClassOrObject string | object
$message string

assertAttributeEmpty() public static method

Asserts that a static attribute of a class or an attribute of an object is empty.
public static assertAttributeEmpty ( string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '' )
$haystackAttributeName string
$haystackClassOrObject string | object
$message string

assertAttributeEquals() public static method

Asserts that a variable is equal to an attribute of an object.
public static assertAttributeEquals ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '', float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string
$delta float
$maxDepth integer
$canonicalize boolean
$ignoreCase boolean

assertAttributeGreaterThan() public static method

Asserts that an attribute is greater than another value.
public static assertAttributeGreaterThan ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string

assertAttributeGreaterThanOrEqual() public static method

Asserts that an attribute is greater than or equal to another value.
public static assertAttributeGreaterThanOrEqual ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string

assertAttributeInstanceOf() public static method

Asserts that an attribute is of a given type.
public static assertAttributeInstanceOf ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' )
$expected string
$attributeName string
$classOrObject string | object
$message string

assertAttributeInternalType() public static method

Asserts that an attribute is of a given type.
public static assertAttributeInternalType ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' )
$expected string
$attributeName string
$classOrObject string | object
$message string

assertAttributeLessThan() public static method

Asserts that an attribute is smaller than another value.
public static assertAttributeLessThan ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string

assertAttributeLessThanOrEqual() public static method

Asserts that an attribute is smaller than or equal to another value.
public static assertAttributeLessThanOrEqual ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string

assertAttributeNotContains() public static method

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.
public static assertAttributeNotContains ( mixed $needle, string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '', boolean $ignoreCase = false, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false )
$needle mixed
$haystackAttributeName string
$haystackClassOrObject string | object
$message string
$ignoreCase boolean
$checkForObjectIdentity boolean
$checkForNonObjectIdentity boolean

assertAttributeNotContainsOnly() public static method

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.
public static assertAttributeNotContainsOnly ( string $type, string $haystackAttributeName, string | object $haystackClassOrObject, boolean $isNativeType = null, string $message = '' )
$type string
$haystackAttributeName string
$haystackClassOrObject string | object
$isNativeType boolean
$message string

assertAttributeNotCount() public static method

Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
public static assertAttributeNotCount ( integer $expectedCount, string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '' )
$expectedCount integer
$haystackAttributeName string
$haystackClassOrObject string | object
$message string

assertAttributeNotEmpty() public static method

Asserts that a static attribute of a class or an attribute of an object is not empty.
public static assertAttributeNotEmpty ( string $haystackAttributeName, string | object $haystackClassOrObject, string $message = '' )
$haystackAttributeName string
$haystackClassOrObject string | object
$message string

assertAttributeNotEquals() public static method

Asserts that a variable is not equal to an attribute of an object.
public static assertAttributeNotEquals ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '', float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string
$delta float
$maxDepth integer
$canonicalize boolean
$ignoreCase boolean

assertAttributeNotInstanceOf() public static method

Asserts that an attribute is of a given type.
public static assertAttributeNotInstanceOf ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' )
$expected string
$attributeName string
$classOrObject string | object
$message string

assertAttributeNotInternalType() public static method

Asserts that an attribute is of a given type.
public static assertAttributeNotInternalType ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' )
$expected string
$attributeName string
$classOrObject string | object
$message string

assertAttributeNotSame() public static method

Asserts that a variable and an attribute of an object do not have the same type and value.
public static assertAttributeNotSame ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string

assertAttributeSame() public static method

Asserts that a variable and an attribute of an object have the same type and value.
public static assertAttributeSame ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string

assertClassHasAttribute() public static method

Asserts that a class has a specified attribute.
public static assertClassHasAttribute ( string $attributeName, string $className, string $message = '' )
$attributeName string
$className string
$message string

assertClassHasStaticAttribute() public static method

Asserts that a class has a specified static attribute.
public static assertClassHasStaticAttribute ( string $attributeName, string $className, string $message = '' )
$attributeName string
$className string
$message string

assertClassNotHasAttribute() public static method

Asserts that a class does not have a specified attribute.
public static assertClassNotHasAttribute ( string $attributeName, string $className, string $message = '' )
$attributeName string
$className string
$message string

assertClassNotHasStaticAttribute() public static method

Asserts that a class does not have a specified static attribute.
public static assertClassNotHasStaticAttribute ( string $attributeName, string $className, string $message = '' )
$attributeName string
$className string
$message string

assertContains() public static method

Asserts that a haystack contains a needle.
public static assertContains ( mixed $needle, mixed $haystack, string $message = '', boolean $ignoreCase = false, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false )
$needle mixed
$haystack mixed
$message string
$ignoreCase boolean
$checkForObjectIdentity boolean
$checkForNonObjectIdentity boolean

assertContainsOnly() public static method

Asserts that a haystack contains only values of a given type.
public static assertContainsOnly ( string $type, mixed $haystack, boolean $isNativeType = null, string $message = '' )
$type string
$haystack mixed
$isNativeType boolean
$message string

assertContainsOnlyInstancesOf() public static method

Asserts that a haystack contains only instances of a given classname
public static assertContainsOnlyInstancesOf ( string $classname, array | Traversable $haystack, string $message = '' )
$classname string
$haystack array | Traversable
$message string

assertCount() public static method

Asserts the number of elements of an array, Countable or Traversable.
public static assertCount ( integer $expectedCount, mixed $haystack, string $message = '' )
$expectedCount integer
$haystack mixed
$message string

assertDirectoryExists() public static method

Asserts that a directory exists.
public static assertDirectoryExists ( string $directory, string $message = '' )
$directory string
$message string

assertDirectoryIsReadable() public static method

Asserts that a directory exists and is readable.
public static assertDirectoryIsReadable ( string $directory, string $message = '' )
$directory string
$message string

assertDirectoryIsWritable() public static method

Asserts that a directory exists and is writable.
public static assertDirectoryIsWritable ( string $directory, string $message = '' )
$directory string
$message string

assertDirectoryNotExists() public static method

Asserts that a directory does not exist.
public static assertDirectoryNotExists ( string $directory, string $message = '' )
$directory string
$message string

assertDirectoryNotIsReadable() public static method

Asserts that a directory exists and is not readable.
public static assertDirectoryNotIsReadable ( string $directory, string $message = '' )
$directory string
$message string

assertDirectoryNotIsWritable() public static method

Asserts that a directory exists and is not writable.
public static assertDirectoryNotIsWritable ( string $directory, string $message = '' )
$directory string
$message string

assertEmpty() public static method

Asserts that a variable is empty.
public static assertEmpty ( mixed $actual, string $message = '' )
$actual mixed
$message string

assertEqualXMLStructure() public static method

Asserts that a hierarchy of DOMElements matches.
public static assertEqualXMLStructure ( DOMElement $expectedElement, DOMElement $actualElement, boolean $checkAttributes = false, string $message = '' )
$expectedElement DOMElement
$actualElement DOMElement
$checkAttributes boolean
$message string

assertEquals() public static method

Asserts that two variables are equal.
public static assertEquals ( mixed $expected, mixed $actual, string $message = '', float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false )
$expected mixed
$actual mixed
$message string
$delta float
$maxDepth integer
$canonicalize boolean
$ignoreCase boolean

assertFalse() public static method

Asserts that a condition is false.
public static assertFalse ( boolean $condition, string $message = '' )
$condition boolean
$message string

assertFileEquals() public static method

Asserts that the contents of one file is equal to the contents of another file.
public static assertFileEquals ( string $expected, string $actual, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false )
$expected string
$actual string
$message string
$canonicalize boolean
$ignoreCase boolean

assertFileExists() public static method

Asserts that a file exists.
public static assertFileExists ( string $filename, string $message = '' )
$filename string
$message string

assertFileIsReadable() public static method

Asserts that a file exists and is readable.
public static assertFileIsReadable ( string $file, string $message = '' )
$file string
$message string

assertFileIsWritable() public static method

Asserts that a file exists and is writable.
public static assertFileIsWritable ( string $file, string $message = '' )
$file string
$message string

assertFileNotEquals() public static method

Asserts that the contents of one file is not equal to the contents of another file.
public static assertFileNotEquals ( string $expected, string $actual, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false )
$expected string
$actual string
$message string
$canonicalize boolean
$ignoreCase boolean

assertFileNotExists() public static method

Asserts that a file does not exist.
public static assertFileNotExists ( string $filename, string $message = '' )
$filename string
$message string

assertFileNotIsReadable() public static method

Asserts that a file exists and is not readable.
public static assertFileNotIsReadable ( string $file, string $message = '' )
$file string
$message string

assertFileNotIsWritable() public static method

Asserts that a file exists and is not writable.
public static assertFileNotIsWritable ( string $file, string $message = '' )
$file string
$message string

assertFinite() public static method

Asserts that a variable is finite.
public static assertFinite ( mixed $actual, string $message = '' )
$actual mixed
$message string

assertGreaterThan() public static method

Asserts that a value is greater than another value.
public static assertGreaterThan ( mixed $expected, mixed $actual, string $message = '' )
$expected mixed
$actual mixed
$message string

assertGreaterThanOrEqual() public static method

Asserts that a value is greater than or equal to another value.
public static assertGreaterThanOrEqual ( mixed $expected, mixed $actual, string $message = '' )
$expected mixed
$actual mixed
$message string

assertInfinite() public static method

Asserts that a variable is infinite.
public static assertInfinite ( mixed $actual, string $message = '' )
$actual mixed
$message string

assertInstanceOf() public static method

Asserts that a variable is of a given type.
public static assertInstanceOf ( string $expected, mixed $actual, string $message = '' )
$expected string
$actual mixed
$message string

assertInternalType() public static method

Asserts that a variable is of a given type.
public static assertInternalType ( string $expected, mixed $actual, string $message = '' )
$expected string
$actual mixed
$message string

assertIsReadable() public static method

Asserts that a file/dir is readable.
public static assertIsReadable ( string $filename, string $message = '' )
$filename string
$message string

assertIsWritable() public static method

Asserts that a file/dir exists and is writable.
public static assertIsWritable ( string $filename, string $message = '' )
$filename string
$message string

assertJson() public static method

Asserts that a string is a valid JSON string.
public static assertJson ( string $actualJson, string $message = '' )
$actualJson string
$message string

assertJsonFileEqualsJsonFile() public static method

Asserts that two JSON files are equal.
public static assertJsonFileEqualsJsonFile ( string $expectedFile, string $actualFile, string $message = '' )
$expectedFile string
$actualFile string
$message string

assertJsonFileNotEqualsJsonFile() public static method

Asserts that two JSON files are not equal.
public static assertJsonFileNotEqualsJsonFile ( string $expectedFile, string $actualFile, string $message = '' )
$expectedFile string
$actualFile string
$message string

assertJsonStringEqualsJsonFile() public static method

Asserts that the generated JSON encoded object and the content of the given file are equal.
public static assertJsonStringEqualsJsonFile ( string $expectedFile, string $actualJson, string $message = '' )
$expectedFile string
$actualJson string
$message string

assertJsonStringEqualsJsonString() public static method

Asserts that two given JSON encoded objects or arrays are equal.
public static assertJsonStringEqualsJsonString ( string $expectedJson, string $actualJson, string $message = '' )
$expectedJson string
$actualJson string
$message string

assertJsonStringNotEqualsJsonFile() public static method

Asserts that the generated JSON encoded object and the content of the given file are not equal.
public static assertJsonStringNotEqualsJsonFile ( string $expectedFile, string $actualJson, string $message = '' )
$expectedFile string
$actualJson string
$message string

assertJsonStringNotEqualsJsonString() public static method

Asserts that two given JSON encoded objects or arrays are not equal.
public static assertJsonStringNotEqualsJsonString ( string $expectedJson, string $actualJson, string $message = '' )
$expectedJson string
$actualJson string
$message string

assertLessThan() public static method

Asserts that a value is smaller than another value.
public static assertLessThan ( mixed $expected, mixed $actual, string $message = '' )
$expected mixed
$actual mixed
$message string

assertLessThanOrEqual() public static method

Asserts that a value is smaller than or equal to another value.
public static assertLessThanOrEqual ( mixed $expected, mixed $actual, string $message = '' )
$expected mixed
$actual mixed
$message string

assertNan() public static method

Asserts that a variable is nan.
public static assertNan ( mixed $actual, string $message = '' )
$actual mixed
$message string

assertNotContains() public static method

Asserts that a haystack does not contain a needle.
public static assertNotContains ( mixed $needle, mixed $haystack, string $message = '', boolean $ignoreCase = false, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false )
$needle mixed
$haystack mixed
$message string
$ignoreCase boolean
$checkForObjectIdentity boolean
$checkForNonObjectIdentity boolean

assertNotContainsOnly() public static method

Asserts that a haystack does not contain only values of a given type.
public static assertNotContainsOnly ( string $type, mixed $haystack, boolean $isNativeType = null, string $message = '' )
$type string
$haystack mixed
$isNativeType boolean
$message string

assertNotCount() public static method

Asserts the number of elements of an array, Countable or Traversable.
public static assertNotCount ( integer $expectedCount, mixed $haystack, string $message = '' )
$expectedCount integer
$haystack mixed
$message string

assertNotEmpty() public static method

Asserts that a variable is not empty.
public static assertNotEmpty ( mixed $actual, string $message = '' )
$actual mixed
$message string

assertNotEquals() public static method

Asserts that two variables are not equal.
public static assertNotEquals ( mixed $expected, mixed $actual, string $message = '', float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false )
$expected mixed
$actual mixed
$message string
$delta float
$maxDepth integer
$canonicalize boolean
$ignoreCase boolean

assertNotFalse() public static method

Asserts that a condition is not false.
public static assertNotFalse ( boolean $condition, string $message = '' )
$condition boolean
$message string

assertNotInstanceOf() public static method

Asserts that a variable is not of a given type.
public static assertNotInstanceOf ( string $expected, mixed $actual, string $message = '' )
$expected string
$actual mixed
$message string

assertNotInternalType() public static method

Asserts that a variable is not of a given type.
public static assertNotInternalType ( string $expected, mixed $actual, string $message = '' )
$expected string
$actual mixed
$message string

assertNotIsReadable() public static method

Asserts that a file/dir exists and is not readable.
public static assertNotIsReadable ( string $filename, string $message = '' )
$filename string
$message string

assertNotIsWritable() public static method

Asserts that a file/dir exists and is not writable.
public static assertNotIsWritable ( string $filename, string $message = '' )
$filename string
$message string

assertNotNull() public static method

Asserts that a variable is not null.
public static assertNotNull ( mixed $actual, string $message = '' )
$actual mixed
$message string

assertNotRegExp() public static method

Asserts that a string does not match a given regular expression.
public static assertNotRegExp ( string $pattern, string $string, string $message = '' )
$pattern string
$string string
$message string

assertNotSame() public static method

Used on objects, it asserts that two variables do not reference the same object.
public static assertNotSame ( mixed $expected, mixed $actual, string $message = '' )
$expected mixed
$actual mixed
$message string

assertNotSameSize() public static method

Assert that the size of two arrays (or Countable or Traversable objects) is not the same.
public static assertNotSameSize ( array | Countable | Traversable $expected, array | Countable | Traversable $actual, string $message = '' )
$expected array | Countable | Traversable
$actual array | Countable | Traversable
$message string

assertNotTrue() public static method

Asserts that a condition is not true.
public static assertNotTrue ( boolean $condition, string $message = '' )
$condition boolean
$message string

assertNull() public static method

Asserts that a variable is null.
public static assertNull ( mixed $actual, string $message = '' )
$actual mixed
$message string

assertObjectHasAttribute() public static method

Asserts that an object has a specified attribute.
public static assertObjectHasAttribute ( string $attributeName, object $object, string $message = '' )
$attributeName string
$object object
$message string

assertObjectNotHasAttribute() public static method

Asserts that an object does not have a specified attribute.
public static assertObjectNotHasAttribute ( string $attributeName, object $object, string $message = '' )
$attributeName string
$object object
$message string

assertRegExp() public static method

Asserts that a string matches a given regular expression.
public static assertRegExp ( string $pattern, string $string, string $message = '' )
$pattern string
$string string
$message string

assertSame() public static method

Used on objects, it asserts that two variables reference the same object.
public static assertSame ( mixed $expected, mixed $actual, string $message = '' )
$expected mixed
$actual mixed
$message string

assertSameSize() public static method

Assert that the size of two arrays (or Countable or Traversable objects) is the same.
public static assertSameSize ( array | Countable | Traversable $expected, array | Countable | Traversable $actual, string $message = '' )
$expected array | Countable | Traversable
$actual array | Countable | Traversable
$message string

assertStringEndsNotWith() public static method

Asserts that a string ends not with a given suffix.
public static assertStringEndsNotWith ( string $suffix, string $string, string $message = '' )
$suffix string
$string string
$message string

assertStringEndsWith() public static method

Asserts that a string ends with a given suffix.
public static assertStringEndsWith ( string $suffix, string $string, string $message = '' )
$suffix string
$string string
$message string

assertStringEqualsFile() public static method

Asserts that the contents of a string is equal to the contents of a file.
public static assertStringEqualsFile ( string $expectedFile, string $actualString, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false )
$expectedFile string
$actualString string
$message string
$canonicalize boolean
$ignoreCase boolean

assertStringMatchesFormat() public static method

Asserts that a string matches a given format string.
public static assertStringMatchesFormat ( string $format, string $string, string $message = '' )
$format string
$string string
$message string

assertStringMatchesFormatFile() public static method

Asserts that a string matches a given format file.
public static assertStringMatchesFormatFile ( string $formatFile, string $string, string $message = '' )
$formatFile string
$string string
$message string

assertStringNotEqualsFile() public static method

Asserts that the contents of a string is not equal to the contents of a file.
public static assertStringNotEqualsFile ( string $expectedFile, string $actualString, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false )
$expectedFile string
$actualString string
$message string
$canonicalize boolean
$ignoreCase boolean

assertStringNotMatchesFormat() public static method

Asserts that a string does not match a given format string.
public static assertStringNotMatchesFormat ( string $format, string $string, string $message = '' )
$format string
$string string
$message string

assertStringNotMatchesFormatFile() public static method

Asserts that a string does not match a given format string.
public static assertStringNotMatchesFormatFile ( string $formatFile, string $string, string $message = '' )
$formatFile string
$string string
$message string

assertStringStartsNotWith() public static method

Asserts that a string starts not with a given prefix.
public static assertStringStartsNotWith ( string $prefix, string $string, string $message = '' )
$prefix string
$string string
$message string

assertStringStartsWith() public static method

Asserts that a string starts with a given prefix.
public static assertStringStartsWith ( string $prefix, string $string, string $message = '' )
$prefix string
$string string
$message string

assertThat() public static method

Evaluates a PHPUnit_Framework_Constraint matcher object.
public static assertThat ( mixed $value, PHPUnit_Framework_Constraint $constraint, string $message = '' )
$value mixed
$constraint PHPUnit_Framework_Constraint
$message string

assertTrue() public static method

Asserts that a condition is true.
public static assertTrue ( boolean $condition, string $message = '' )
$condition boolean
$message string

assertXmlFileEqualsXmlFile() public static method

Asserts that two XML files are equal.
public static assertXmlFileEqualsXmlFile ( string $expectedFile, string $actualFile, string $message = '' )
$expectedFile string
$actualFile string
$message string

assertXmlFileNotEqualsXmlFile() public static method

Asserts that two XML files are not equal.
public static assertXmlFileNotEqualsXmlFile ( string $expectedFile, string $actualFile, string $message = '' )
$expectedFile string
$actualFile string
$message string

assertXmlStringEqualsXmlFile() public static method

Asserts that two XML documents are equal.
public static assertXmlStringEqualsXmlFile ( string $expectedFile, string $actualXml, string $message = '' )
$expectedFile string
$actualXml string
$message string

assertXmlStringEqualsXmlString() public static method

Asserts that two XML documents are equal.
public static assertXmlStringEqualsXmlString ( string $expectedXml, string $actualXml, string $message = '' )
$expectedXml string
$actualXml string
$message string

assertXmlStringNotEqualsXmlFile() public static method

Asserts that two XML documents are not equal.
public static assertXmlStringNotEqualsXmlFile ( string $expectedFile, string $actualXml, string $message = '' )
$expectedFile string
$actualXml string
$message string

assertXmlStringNotEqualsXmlString() public static method

Asserts that two XML documents are not equal.
public static assertXmlStringNotEqualsXmlString ( string $expectedXml, string $actualXml, string $message = '' )
$expectedXml string
$actualXml string
$message string

attribute() public static method

Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
public static attribute ( PHPUnit_Framework_Constraint $constraint, string $attributeName ) : PHPUnit_Framework_Constraint_Attribute
$constraint PHPUnit_Framework_Constraint
$attributeName string
return PHPUnit_Framework_Constraint_Attribute

attributeEqualTo() public static method

Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
public static attributeEqualTo ( string $attributeName, mixed $value, float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false ) : PHPUnit_Framework_Constraint_Attribute
$attributeName string
$value mixed
$delta float
$maxDepth integer
$canonicalize boolean
$ignoreCase boolean
return PHPUnit_Framework_Constraint_Attribute

callback() public static method

Returns a PHPUnit_Framework_Constraint_Callback matcher object.
public static callback ( callable $callback ) : PHPUnit_Framework_Constraint_Callback
$callback callable
return PHPUnit_Framework_Constraint_Callback

classHasAttribute() public static method

Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
public static classHasAttribute ( string $attributeName ) : PHPUnit_Framework_Constraint_ClassHasAttribute
$attributeName string
return PHPUnit_Framework_Constraint_ClassHasAttribute

classHasStaticAttribute() public static method

Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.
public static classHasStaticAttribute ( string $attributeName ) : PHPUnit_Framework_Constraint_ClassHasStaticAttribute
$attributeName string
return PHPUnit_Framework_Constraint_ClassHasStaticAttribute

contains() public static method

Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.
public static contains ( mixed $value, boolean $checkForObjectIdentity = true, boolean $checkForNonObjectIdentity = false ) : PHPUnit_Framework_Constraint_TraversableContains
$value mixed
$checkForObjectIdentity boolean
$checkForNonObjectIdentity boolean
return PHPUnit_Framework_Constraint_TraversableContains

containsOnly() public static method

Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
public static containsOnly ( string $type ) : PHPUnit_Framework_Constraint_TraversableContainsOnly
$type string
return PHPUnit_Framework_Constraint_TraversableContainsOnly

containsOnlyInstancesOf() public static method

Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
public static containsOnlyInstancesOf ( string $classname ) : PHPUnit_Framework_Constraint_TraversableContainsOnly
$classname string
return PHPUnit_Framework_Constraint_TraversableContainsOnly

countOf() public static method

Returns a PHPUnit_Framework_Constraint_Count matcher object.
public static countOf ( integer $count ) : PHPUnit_Framework_Constraint_Count
$count integer
return PHPUnit_Framework_Constraint_Count

directoryExists() public static method

Returns a PHPUnit_Framework_Constraint_DirectoryExists matcher object.
public static directoryExists ( ) : PHPUnit_Framework_Constraint_DirectoryExists
return PHPUnit_Framework_Constraint_DirectoryExists

equalTo() public static method

Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
public static equalTo ( mixed $value, float $delta, integer $maxDepth = 10, boolean $canonicalize = false, boolean $ignoreCase = false ) : PHPUnit_Framework_Constraint_IsEqual
$value mixed
$delta float
$maxDepth integer
$canonicalize boolean
$ignoreCase boolean
return PHPUnit_Framework_Constraint_IsEqual

fail() public static method

Fails a test with the given message.
public static fail ( string $message = '' )
$message string

fileExists() public static method

Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
public static fileExists ( ) : PHPUnit_Framework_Constraint_FileExists
return PHPUnit_Framework_Constraint_FileExists

getCount() public static method

Return the current assertion count.
public static getCount ( ) : integer
return integer

getObjectAttribute() public static method

This also works for attributes that are declared protected or private.
public static getObjectAttribute ( object $object, string $attributeName ) : mixed
$object object
$attributeName string
return mixed

getStaticAttribute() public static method

This also works for attributes that are declared protected or private.
public static getStaticAttribute ( string $className, string $attributeName ) : mixed
$className string
$attributeName string
return mixed

greaterThan() public static method

Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
public static greaterThan ( mixed $value ) : PHPUnit_Framework_Constraint_GreaterThan
$value mixed
return PHPUnit_Framework_Constraint_GreaterThan

greaterThanOrEqual() public static method

Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_GreaterThan matcher object.
public static greaterThanOrEqual ( mixed $value ) : PHPUnit_Framework_Constraint_Or
$value mixed
return PHPUnit_Framework_Constraint_Or

identicalTo() public static method

Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
public static identicalTo ( mixed $value ) : PHPUnit_Framework_Constraint_IsIdentical
$value mixed
return PHPUnit_Framework_Constraint_IsIdentical

isEmpty() public static method

Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
public static isEmpty ( ) : PHPUnit_Framework_Constraint_IsEmpty
return PHPUnit_Framework_Constraint_IsEmpty

isFalse() public static method

Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
public static isFalse ( ) : PHPUnit_Framework_Constraint_IsFalse
return PHPUnit_Framework_Constraint_IsFalse

isFinite() public static method

Returns a PHPUnit_Framework_Constraint_IsFinite matcher object.
public static isFinite ( ) : PHPUnit_Framework_Constraint_IsFinite
return PHPUnit_Framework_Constraint_IsFinite

isInfinite() public static method

Returns a PHPUnit_Framework_Constraint_IsInfinite matcher object.
public static isInfinite ( ) : PHPUnit_Framework_Constraint_IsInfinite
return PHPUnit_Framework_Constraint_IsInfinite

isInstanceOf() public static method

Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
public static isInstanceOf ( string $className ) : PHPUnit_Framework_Constraint_IsInstanceOf
$className string
return PHPUnit_Framework_Constraint_IsInstanceOf

isJson() public static method

Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
public static isJson ( ) : PHPUnit_Framework_Constraint_IsJson
return PHPUnit_Framework_Constraint_IsJson

isNan() public static method

Returns a PHPUnit_Framework_Constraint_IsNan matcher object.
public static isNan ( ) : PHPUnit_Framework_Constraint_IsNan
return PHPUnit_Framework_Constraint_IsNan

isNull() public static method

Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
public static isNull ( ) : PHPUnit_Framework_Constraint_IsNull
return PHPUnit_Framework_Constraint_IsNull

isReadable() public static method

Returns a PHPUnit_Framework_Constraint_IsReadable matcher object.
public static isReadable ( ) : PHPUnit_Framework_Constraint_IsReadable
return PHPUnit_Framework_Constraint_IsReadable

isTrue() public static method

Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
public static isTrue ( ) : PHPUnit_Framework_Constraint_IsTrue
return PHPUnit_Framework_Constraint_IsTrue

isType() public static method

Returns a PHPUnit_Framework_Constraint_IsType matcher object.
public static isType ( string $type ) : PHPUnit_Framework_Constraint_IsType
$type string
return PHPUnit_Framework_Constraint_IsType

isWritable() public static method

Returns a PHPUnit_Framework_Constraint_IsWritable matcher object.
public static isWritable ( ) : PHPUnit_Framework_Constraint_IsWritable
return PHPUnit_Framework_Constraint_IsWritable

lessThan() public static method

Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
public static lessThan ( mixed $value ) : PHPUnit_Framework_Constraint_LessThan
$value mixed
return PHPUnit_Framework_Constraint_LessThan

lessThanOrEqual() public static method

Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.
public static lessThanOrEqual ( mixed $value ) : PHPUnit_Framework_Constraint_Or
$value mixed
return PHPUnit_Framework_Constraint_Or

logicalAnd() public static method

Returns a PHPUnit_Framework_Constraint_And matcher object.
public static logicalAnd ( ) : PHPUnit_Framework_Constraint_And
return PHPUnit_Framework_Constraint_And

logicalNot() public static method

Returns a PHPUnit_Framework_Constraint_Not matcher object.
public static logicalNot ( PHPUnit_Framework_Constraint $constraint ) : PHPUnit_Framework_Constraint_Not
$constraint PHPUnit_Framework_Constraint
return PHPUnit_Framework_Constraint_Not

logicalOr() public static method

Returns a PHPUnit_Framework_Constraint_Or matcher object.
public static logicalOr ( ) : PHPUnit_Framework_Constraint_Or
return PHPUnit_Framework_Constraint_Or

logicalXor() public static method

Returns a PHPUnit_Framework_Constraint_Xor matcher object.
public static logicalXor ( ) : PHPUnit_Framework_Constraint_Xor
return PHPUnit_Framework_Constraint_Xor

markTestIncomplete() public static method

Mark the test as incomplete.
public static markTestIncomplete ( string $message = '' )
$message string

markTestSkipped() public static method

Mark the test as skipped.
public static markTestSkipped ( string $message = '' )
$message string

matches() public static method

Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
public static matches ( string $string ) : PHPUnit_Framework_Constraint_StringMatches
$string string
return PHPUnit_Framework_Constraint_StringMatches

matchesRegularExpression() public static method

Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
public static matchesRegularExpression ( string $pattern ) : PHPUnit_Framework_Constraint_PCREMatch
$pattern string
return PHPUnit_Framework_Constraint_PCREMatch

objectHasAttribute() public static method

Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
public static objectHasAttribute ( string $attributeName ) : PHPUnit_Framework_Constraint_ObjectHasAttribute
$attributeName string
return PHPUnit_Framework_Constraint_ObjectHasAttribute

readAttribute() public static method

This also works for attributes that are declared protected or private.
public static readAttribute ( string | object $classOrObject, string $attributeName ) : mixed
$classOrObject string | object
$attributeName string
return mixed

resetCount() public static method

Reset the assertion counter.
public static resetCount ( )

stringContains() public static method

Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
public static stringContains ( string $string, boolean $case = true ) : PHPUnit_Framework_Constraint_StringContains
$string string
$case boolean
return PHPUnit_Framework_Constraint_StringContains

stringEndsWith() public static method

Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
public static stringEndsWith ( mixed $suffix ) : PHPUnit_Framework_Constraint_StringEndsWith
$suffix mixed
return PHPUnit_Framework_Constraint_StringEndsWith

stringStartsWith() public static method

Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
public static stringStartsWith ( mixed $prefix ) : PHPUnit_Framework_Constraint_StringStartsWith
$prefix mixed
return PHPUnit_Framework_Constraint_StringStartsWith