SimpleExpectationAssertion that can display failure information.
Also includes various helper methods.
Located in /expectation.php (line 23)
| Class | Description |
|---|---|
CssSelectorExpectation
|
CssSelectorExpectation |
AnythingExpectation
|
A wildcard expectation always matches. |
FailedExpectation
|
An expectation that never matches. |
TrueExpectation
|
An expectation that passes on boolean true. |
FalseExpectation
|
An expectation that passes on boolean false. |
EqualExpectation
|
Test for equality. |
WithinMarginExpectation
|
Test for being within a range. |
PatternExpectation
|
Test for a pattern using Perl regex rules. |
IsAExpectation
|
Tests either type or class name if it's an object. |
MethodExistsExpectation
|
Tests for existance of a method in an object |
ExceptionExpectation
|
Tests exceptions either by type or the exact exception. This could be improved to accept a pattern expectation to test the error message, but that will have to come later. |
FieldExpectation
|
Test for an HTML widget value match. |
HttpHeaderExpectation
|
Test for a specific HTTP header within a header block. |
TextExpectation
|
Test for a text substring. |
ParametersExpectation
|
Parameter comparison assertion. |
CallCountExpectation
|
Confirms that the number of calls on a method is as expected. |
MinimumCallCountExpectation
|
Confirms that the number of calls on a method is as expected. |
MaximumCallCountExpectation
|
Confirms that the number of calls on a method is as expected. |
mixed
$dumper
= false (line 24)
Test to see if a value is an expectation object.
A useful utility method.
Creates a dumper for displaying values and sets the test message.
Overlays the generated message onto the stored user message. An additional message can be interjected.
Tests the expectation. True if correct.
Returns a human readable test message.
Documentation generated on Sun, 31 Oct 2010 16:31:29 -0500 by phpDocumentor 1.4.3