Public Member Functions | |
| __construct ($expected, $message= '%s') | |
| test ($compare) | |
| testMessage ($compare) | |
Protected Member Functions | |
| describeException ($exception) | |
Private Attributes | |
| $expected | |
Definition at line 47 of file exceptions.php.
| ExceptionExpectation::__construct | ( | $ | expected, | |
| $ | message = '%s' | |||
| ) |
Sets up the conditions to test against. If the expected value is a string, then it will act as a test of the class name. An exception as the comparison will trigger an identical match. Writing this down now makes it look doubly dumb. I hope come up with a better scheme later.
| mixed | $expected A class name or an actual exception to compare with. | |
| string | $message Message to display. |
Definition at line 62 of file exceptions.php.
References $expected.
| ExceptionExpectation::test | ( | $ | compare | ) |
Carry out the test.
| Exception | $compare Value to check. |
Reimplemented from SimpleExpectation.
Definition at line 72 of file exceptions.php.
| ExceptionExpectation::testMessage | ( | $ | compare | ) |
Create the message to display describing the test.
| Exception | $compare Exception to match. |
Reimplemented from SimpleExpectation.
Definition at line 87 of file exceptions.php.
References describeException().
| ExceptionExpectation::describeException | ( | $ | exception | ) | [protected] |
Summary of an Exception object.
| Exception | $compare Exception to describe. |
Definition at line 99 of file exceptions.php.
Referenced by testMessage().
ExceptionExpectation::$expected [private] |