Prev | Current Page 139 | Next

Hasin Hayder

"Object-Oriented Programming with PHP5"


Reflection and Unit Testing
[ 134 ]
Assertion Meaning
void assertEquals(mixed $expected,
mixed $actual)
Reports an error if the two variables
$expected and $actual are not
equal.
void assertEquals(mixed $expected,
mixed $actual, string $message)
Reports an error identified by
$message if the two variables
$expected and $actual are not equal.
void assertNotEquals(mixed $expected,
mixed $actual)
Reports an error if the two variables
$expected and $actual are equal.
void assertNotEquals(mixed $expected,
mixed $actual, string $message)
Reports an error identified by
$message if the two variables
$expected and $actual are equal.
void assertAttributeEquals(array
$expected, string $actualAttributeName,
object $actualObject)
Reports an error if the two arrays
$expected and $actualObject-
>actualAttributeName
are not equal. The visibility
of the $actualObject-
>actualAttributeName attribute
may be public, protected, or private.
void assertAttributeEquals(array
$expected, string $actualAttributeName,
object $actualObject, string $message)
Reports an error identified by
$message if the two arrays
$expected and $actualObject-
>actualAttributeName
are not equal.


Pages:
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151