PHPUnit_Framework_Assert

A set of assertion methods.

Known subclasses

Omeka\Test\AbstractHttpControllerTestCase, Omeka\Test\DbTestCase, Omeka\Test\TestCase, PHPUnit\Framework\TestCase, PHPUnit_Framework_TestCase, Zend\Test\PHPUnit\Controller\AbstractControllerTestCase, Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase
Abstract
Open source code
Methods Summary
public static
# assertArrayHasKey( mixed $key , array|\ArrayAccess $array , string $message = '' )
Asserts that an array has a specified key.
public static
# assertArraySubset( array|\ArrayAccess $subset , array|\ArrayAccess $array , bool $strict = false, string $message = '' )
Asserts that an array has a specified subset.
public static
# assertArrayNotHasKey( mixed $key , array|\ArrayAccess $array , string $message = '' )
Asserts that an array does not have a specified key.
public static
# assertContains( mixed $needle , mixed $haystack , string $message = '', bool $ignoreCase = false, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false )
Asserts that a haystack contains a needle.
public static
# assertAttributeContains( mixed $needle , string $haystackAttributeName , mixed $haystackClassOrObject , string $message = '', bool $ignoreCase = false, bool $checkForObjectIdentity = true, bool $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.
public static
# assertNotContains( mixed $needle , mixed $haystack , string $message = '', bool $ignoreCase = false, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false )
Asserts that a haystack does not contain a needle.
public static
# assertAttributeNotContains( mixed $needle , string $haystackAttributeName , mixed $haystackClassOrObject , string $message = '', bool $ignoreCase = false, bool $checkForObjectIdentity = true, bool $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.
public static
# assertContainsOnly( string $type , mixed $haystack , bool $isNativeType = NULL, string $message = '' )
Asserts that a haystack contains only values of a given type.
public static
# assertContainsOnlyInstancesOf( string $classname , array|\Traversable $haystack , string $message = '' )
Asserts that a haystack contains only instances of a given classname
public static
# assertAttributeContainsOnly( string $type , string $haystackAttributeName , mixed $haystackClassOrObject , bool $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.
public static
# assertNotContainsOnly( string $type , mixed $haystack , bool $isNativeType = NULL, string $message = '' )
Asserts that a haystack does not contain only values of a given type.
public static
# assertAttributeNotContainsOnly( string $type , string $haystackAttributeName , mixed $haystackClassOrObject , bool $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.
public static
# assertCount( int $expectedCount , mixed $haystack , string $message = '' )
Asserts the number of elements of an array, Countable or Traversable.
public static
# assertAttributeCount( int $expectedCount , string $haystackAttributeName , mixed $haystackClassOrObject , string $message = '' )
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
public static
# assertNotCount( int $expectedCount , mixed $haystack , string $message = '' )
Asserts the number of elements of an array, Countable or Traversable.
public static
# assertAttributeNotCount( int $expectedCount , string $haystackAttributeName , mixed $haystackClassOrObject , string $message = '' )
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
public static
# assertEquals( mixed $expected , mixed $actual , string $message = '', float $delta = 0.0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false )
Asserts that two variables are equal.
public static
# assertAttributeEquals( mixed $expected , string $actualAttributeName , string $actualClassOrObject , string $message = '', float $delta = 0.0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false )
Asserts that a variable is equal to an attribute of an object.
public static
# assertNotEquals( mixed $expected , mixed $actual , string $message = '', float $delta = 0.0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false )
Asserts that two variables are not equal.
public static
# assertAttributeNotEquals( mixed $expected , string $actualAttributeName , string $actualClassOrObject , string $message = '', float $delta = 0.0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false )
Asserts that a variable is not equal to an attribute of an object.
public static
# assertEmpty( mixed $actual , string $message = '' )
Asserts that a variable is empty.
public static
# assertAttributeEmpty( string $haystackAttributeName , mixed $haystackClassOrObject , string $message = '' )
Asserts that a static attribute of a class or an attribute of an object is empty.
public static
# assertNotEmpty( mixed $actual , string $message = '' )
Asserts that a variable is not empty.
public static
# assertAttributeNotEmpty( string $haystackAttributeName , mixed $haystackClassOrObject , string $message = '' )
Asserts that a static attribute of a class or an attribute of an object is not empty.
public static
# assertGreaterThan( mixed $expected , mixed $actual , string $message = '' )
Asserts that a value is greater than another value.
public static
# assertAttributeGreaterThan( mixed $expected , string $actualAttributeName , string $actualClassOrObject , string $message = '' )
Asserts that an attribute is greater than another value.
public static
# assertGreaterThanOrEqual( mixed $expected , mixed $actual , string $message = '' )
Asserts that a value is greater than or equal to another value.
public static
# assertAttributeGreaterThanOrEqual( mixed $expected , string $actualAttributeName , string $actualClassOrObject , string $message = '' )
Asserts that an attribute is greater than or equal to another value.
public static
# assertLessThan( mixed $expected , mixed $actual , string $message = '' )
Asserts that a value is smaller than another value.
public static
# assertAttributeLessThan( mixed $expected , string $actualAttributeName , string $actualClassOrObject , string $message = '' )
Asserts that an attribute is smaller than another value.
public static
# assertLessThanOrEqual( mixed $expected , mixed $actual , string $message = '' )
Asserts that a value is smaller than or equal to another value.
public static
# assertAttributeLessThanOrEqual( mixed $expected , string $actualAttributeName , string $actualClassOrObject , string $message = '' )
Asserts that an attribute is smaller than or equal to another value.
public static
# assertFileEquals( string $expected , string $actual , string $message = '', bool $canonicalize = false, bool $ignoreCase = false )
Asserts that the contents of one file is equal to the contents of another file.
public static
# assertFileNotEquals( string $expected , string $actual , string $message = '', bool $canonicalize = false, bool $ignoreCase = false )
Asserts that the contents of one file is not equal to the contents of another file.
public static
# assertStringEqualsFile( string $expectedFile , string $actualString , string $message = '', bool $canonicalize = false, bool $ignoreCase = false )
Asserts that the contents of a string is equal to the contents of a file.
public static
# assertStringNotEqualsFile( string $expectedFile , string $actualString , string $message = '', bool $canonicalize = false, bool $ignoreCase = false )
Asserts that the contents of a string is not equal to the contents of a file.
public static
# assertFileExists( string $filename , string $message = '' )
Asserts that a file exists.
public static
# assertFileNotExists( string $filename , string $message = '' )
Asserts that a file does not exist.
public static
# assertTrue( bool $condition , string $message = '' )
Asserts that a condition is true.
public static
# assertNotTrue( bool $condition , string $message = '' )
Asserts that a condition is not true.
public static
# assertFalse( bool $condition , string $message = '' )
Asserts that a condition is false.
public static
# assertNotFalse( bool $condition , string $message = '' )
Asserts that a condition is not false.
public static
# assertNotNull( mixed $actual , string $message = '' )
Asserts that a variable is not null.
public static
# assertNull( mixed $actual , string $message = '' )
Asserts that a variable is null.
public static
# assertClassHasAttribute( string $attributeName , string $className , string $message = '' )
Asserts that a class has a specified attribute.
public static
# assertClassNotHasAttribute( string $attributeName , string $className , string $message = '' )
Asserts that a class does not have a specified attribute.
public static
# assertClassHasStaticAttribute( string $attributeName , string $className , string $message = '' )
Asserts that a class has a specified static attribute.
public static
# assertClassNotHasStaticAttribute( string $attributeName , string $className , string $message = '' )
Asserts that a class does not have a specified static attribute.
public static
# assertObjectHasAttribute( string $attributeName , object $object , string $message = '' )
Asserts that an object has a specified attribute.
public static
# assertObjectNotHasAttribute( string $attributeName , object $object , string $message = '' )
Asserts that an object does not have a specified attribute.
public static
# assertSame( mixed $expected , mixed $actual , string $message = '' )
Asserts that two variables have the same type and value. Used on objects, it asserts that two variables reference the same object.
public static
# assertAttributeSame( mixed $expected , string $actualAttributeName , object $actualClassOrObject , string $message = '' )
Asserts that a variable and an attribute of an object have the same type and value.
public static
# assertNotSame( mixed $expected , mixed $actual , string $message = '' )
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.
public static
# assertAttributeNotSame( mixed $expected , string $actualAttributeName , object $actualClassOrObject , string $message = '' )
Asserts that a variable and an attribute of an object do not have the same type and value.
public static
# assertInstanceOf( string $expected , mixed $actual , string $message = '' )
Asserts that a variable is of a given type.
public static
# assertAttributeInstanceOf( string $expected , string $attributeName , mixed $classOrObject , string $message = '' )
Asserts that an attribute is of a given type.
public static
# assertNotInstanceOf( string $expected , mixed $actual , string $message = '' )
Asserts that a variable is not of a given type.
public static
# assertAttributeNotInstanceOf( string $expected , string $attributeName , mixed $classOrObject , string $message = '' )
Asserts that an attribute is of a given type.
public static
# assertInternalType( string $expected , mixed $actual , string $message = '' )
Asserts that a variable is of a given type.
public static
# assertAttributeInternalType( string $expected , string $attributeName , mixed $classOrObject , string $message = '' )
Asserts that an attribute is of a given type.
public static
# assertNotInternalType( string $expected , mixed $actual , string $message = '' )
Asserts that a variable is not of a given type.
public static
# assertAttributeNotInternalType( string $expected , string $attributeName , mixed $classOrObject , string $message = '' )
Asserts that an attribute is of a given type.
public static
# assertRegExp( string $pattern , string $string , string $message = '' )
Asserts that a string matches a given regular expression.
public static
# assertNotRegExp( string $pattern , string $string , string $message = '' )
Asserts that a string does not match a given regular expression.
public static
# 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.
public static
# 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.
public static
# assertStringMatchesFormat( string $format , string $string , string $message = '' )
Asserts that a string matches a given format string.
public static
# assertStringNotMatchesFormat( string $format , string $string , string $message = '' )
Asserts that a string does not match a given format string.
public static
# assertStringMatchesFormatFile( string $formatFile , string $string , string $message = '' )
Asserts that a string matches a given format file.
public static
# assertStringNotMatchesFormatFile( string $formatFile , string $string , string $message = '' )
Asserts that a string does not match a given format string.
public static
# assertStringStartsWith( string $prefix , string $string , string $message = '' )
Asserts that a string starts with a given prefix.
public static
# assertStringStartsNotWith( string $prefix , string $string , string $message = '' )
Asserts that a string starts not with a given prefix.
public static
# assertStringEndsWith( string $suffix , string $string , string $message = '' )
Asserts that a string ends with a given suffix.
public static
# assertStringEndsNotWith( string $suffix , string $string , string $message = '' )
Asserts that a string ends not with a given suffix.
public static
# assertXmlFileEqualsXmlFile( string $expectedFile , string $actualFile , string $message = '' )
Asserts that two XML files are equal.
public static
# assertXmlFileNotEqualsXmlFile( string $expectedFile , string $actualFile , string $message = '' )
Asserts that two XML files are not equal.
public static
# assertXmlStringEqualsXmlFile( string $expectedFile , string $actualXml , string $message = '' )
Asserts that two XML documents are equal.
public static
# assertXmlStringNotEqualsXmlFile( string $expectedFile , string $actualXml , string $message = '' )
Asserts that two XML documents are not equal.
public static
# assertXmlStringEqualsXmlString( string $expectedXml , string $actualXml , string $message = '' )
Asserts that two XML documents are equal.
public static
# assertXmlStringNotEqualsXmlString( string $expectedXml , string $actualXml , string $message = '' )
Asserts that two XML documents are not equal.
public static
# assertEqualXMLStructure( DOMElement $expectedElement , DOMElement $actualElement , bool $checkAttributes = false, string $message = '' )
Asserts that a hierarchy of DOMElements matches.
public static
# assertSelectCount( array $selector , int|bool|array $count , mixed $actual , string $message = '', bool $isHtml = true )
Assert the presence, absence, or count of elements in a document matching the CSS $selector, regardless of the contents of those elements. The first argument, $selector, is the CSS selector used to match the elements in the $actual document. The second argument, $count, can be either boolean or numeric. When boolean, it asserts for presence of elements matching the selector (true) or absence of elements (false). When numeric, it asserts the count of elements. assertSelectCount("#binder", true, $xml); // any? assertSelectCount(".binder", 3, $xml); // exactly 3?

Deprecated


codeCoverageIgnore


public static
# assertSelectRegExp( array $selector , string $pattern , int|bool|array $count , mixed $actual , string $message = '', bool $isHtml = true )
assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any? assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml); // 3?

Deprecated


codeCoverageIgnore


public static
# assertSelectEquals( array $selector , string $content , int|bool|array $count , mixed $actual , string $message = '', bool $isHtml = true )
assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?

Deprecated


codeCoverageIgnore


public static
# assertTag( array $matcher , string $actual , string $message = '', bool $isHtml = true )
Evaluate an HTML or XML string and assert its structure and/or contents. The first argument ($matcher) is an associative array that specifies the match criteria for the assertion: - `id` : the node with the given id attribute must match the corresponding value. - `tag` : the node type must match the corresponding value. - `attributes` : a hash. The node's attributes must match the corresponding values in the hash. - `content` : The text content must match the given value. - `parent` : a hash. The node's parent must match the corresponding hash. - `child` : a hash. At least one of the node's immediate children must meet the criteria described by the hash. - `ancestor` : a hash. At least one of the node's ancestors must meet the criteria described by the hash. - `descendant` : a hash. At least one of the node's descendants must meet the criteria described by the hash. - `children` : a hash, for counting children of a node. Accepts the keys: - `count` : a number which must equal the number of children that match - `less_than` : the number of matching children must be greater than this number - `greater_than` : the number of matching children must be less than this number - `only` : another hash consisting of the keys to use to match on the children, and only matching children will be counted <code> // Matcher that asserts that there is an element with an id="my_id". $matcher = array('id' => 'my_id'); // Matcher that asserts that there is a "span" tag. $matcher = array('tag' => 'span'); // Matcher that asserts that there is a "span" tag with the content // "Hello World". $matcher = array('tag' => 'span', 'content' => 'Hello World'); // Matcher that asserts that there is a "span" tag with content matching // the regular expression pattern. $matcher = array('tag' => 'span', 'content' => 'regexp:/Try P(HP|ython)/'); // Matcher that asserts that there is a "span" with an "list" class // attribute. $matcher = array( 'tag' => 'span', 'attributes' => array('class' => 'list') ); // Matcher that asserts that there is a "span" inside of a "div". $matcher = array( 'tag' => 'span', 'parent' => array('tag' => 'div') ); // Matcher that asserts that there is a "span" somewhere inside a // "table". $matcher = array( 'tag' => 'span', 'ancestor' => array('tag' => 'table') ); // Matcher that asserts that there is a "span" with at least one "em" // child. $matcher = array( 'tag' => 'span', 'child' => array('tag' => 'em') ); // Matcher that asserts that there is a "span" containing a (possibly // nested) "strong" tag. $matcher = array( 'tag' => 'span', 'descendant' => array('tag' => 'strong') ); // Matcher that asserts that there is a "span" containing 5-10 "em" tags // as immediate children. $matcher = array( 'tag' => 'span', 'children' => array( 'less_than' => 11, 'greater_than' => 4, 'only' => array('tag' => 'em') ) ); // Matcher that asserts that there is a "div", with an "ul" ancestor and // a "li" parent (with class="enum"), and containing a "span" descendant // that contains an element with id="my_test" and the text "Hello World". $matcher = array( 'tag' => 'div', 'ancestor' => array('tag' => 'ul'), 'parent' => array( 'tag' => 'li', 'attributes' => array('class' => 'enum') ), 'descendant' => array( 'tag' => 'span', 'child' => array( 'id' => 'my_test', 'content' => 'Hello World' ) ) ); // Use assertTag() to apply a $matcher to a piece of $html. $this->assertTag($matcher, $html); // Use assertTag() to apply a $matcher to a piece of $xml. $this->assertTag($matcher, $xml, '', false); </code> The second argument ($actual) is a string containing either HTML or XML text to be tested. The third argument ($message) is an optional message that will be used if the assertion fails. The fourth argument ($html) is an optional flag specifying whether to load the $actual string into a DOMDocument using the HTML or XML load strategy. It is true by default, which assumes the HTML load strategy. In many cases, this will be acceptable for XML as well.

Deprecated


codeCoverageIgnore


public static
# assertNotTag( array $matcher , string $actual , string $message = '', bool $isHtml = true )
This assertion is the exact opposite of assertTag(). Rather than asserting that $matcher results in a match, it asserts that $matcher does not match.

Deprecated


codeCoverageIgnore


public static
# assertThat( mixed $value , PHPUnit_Framework_Constraint $constraint , string $message = '' )
Evaluates a PHPUnit_Framework_Constraint matcher object.
public static
# assertJson( string $actualJson , string $message = '' )
Asserts that a string is a valid JSON string.
public static
# assertJsonStringEqualsJsonString( string $expectedJson , string $actualJson , string $message = '' )
Asserts that two given JSON encoded objects or arrays are equal.
public static
# assertJsonStringNotEqualsJsonString( string $expectedJson , string $actualJson , string $message = '' )
Asserts that two given JSON encoded objects or arrays are not equal.
public static
# assertJsonStringEqualsJsonFile( string $expectedFile , string $actualJson , string $message = '' )
Asserts that the generated JSON encoded object and the content of the given file are equal.
public static
# assertJsonStringNotEqualsJsonFile( string $expectedFile , string $actualJson , string $message = '' )
Asserts that the generated JSON encoded object and the content of the given file are not equal.
public static
# assertJsonFileNotEqualsJsonFile( string $expectedFile , string $actualFile , string $message = '' )
Asserts that two JSON files are not equal.
public static
# assertJsonFileEqualsJsonFile( string $expectedFile , string $actualFile , string $message = '' )
Asserts that two JSON files are equal.
public static
# logicalAnd( )
Returns a PHPUnit_Framework_Constraint_And matcher object.
public static
# logicalOr( )
Returns a PHPUnit_Framework_Constraint_Or matcher object.
public static
# logicalNot( PHPUnit_Framework_Constraint $constraint )
Returns a PHPUnit_Framework_Constraint_Not matcher object.
public static
# logicalXor( )
Returns a PHPUnit_Framework_Constraint_Xor matcher object.
public static
# anything( )
Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
public static
# isTrue( )
Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
public static
# callback( callable $callback )
Returns a PHPUnit_Framework_Constraint_Callback matcher object.
public static
# isFalse( )
Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
public static
# isJson( )
Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
public static
# isNull( )
Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
public static
# attribute( PHPUnit_Framework_Constraint $constraint , string $attributeName )
Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
public static
# contains( mixed $value , bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false )
Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.
public static
# containsOnly( string $type )
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
public static
# containsOnlyInstancesOf( string $classname )
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
public static
# arrayHasKey( mixed $key )
Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
public static
# equalTo( mixed $value , float $delta = 0.0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false )
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
public static
# attributeEqualTo( string $attributeName , mixed $value , float $delta = 0.0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false )
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
public static
# isEmpty( )
Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
public static
# fileExists( )
Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
public static
# greaterThan( mixed $value )
Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
public static
# greaterThanOrEqual( mixed $value )
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
# classHasAttribute( string $attributeName )
Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
public static
# classHasStaticAttribute( string $attributeName )
Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.
public static
# objectHasAttribute( string $attributeName )
Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
public static
# identicalTo( mixed $value )
Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
public static
# isInstanceOf( string $className )
Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
public static
# isType( string $type )
Returns a PHPUnit_Framework_Constraint_IsType matcher object.
public static
# lessThan( mixed $value )
Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
public static
# lessThanOrEqual( mixed $value )
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
# matchesRegularExpression( string $pattern )
Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
public static
# matches( string $string )
Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
public static
# stringStartsWith( mixed $prefix )
Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
public static
# stringContains( string $string , bool $case = true )
Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
public static
# stringEndsWith( mixed $suffix )
Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
public static
# countOf( int $count )
Returns a PHPUnit_Framework_Constraint_Count matcher object.
public static
# fail( string $message = '' )
Fails a test with the given message.
public static
# readAttribute( mixed $classOrObject , string $attributeName )
Returns the value of an attribute of a class or an object. This also works for attributes that are declared protected or private.
public static
# getStaticAttribute( string $className , string $attributeName )
Returns the value of a static attribute. This also works for attributes that are declared protected or private.
public static
# getObjectAttribute( object $object , string $attributeName )
Returns the value of an object's attribute. This also works for attributes that are declared protected or private.
public static
# markTestIncomplete( string $message = '' )
Mark the test as incomplete.
public static
# markTestSkipped( string $message = '' )
Mark the test as skipped.
public static
# getCount( )
Return the current assertion count.
public static
# resetCount( )
Reset the assertion counter.