Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions.
Located in /_tests/simpletest/unit_tester.php (line 23)
SimpleTestCase | --UnitTestCase
| Class | Description |
|---|---|
| TestOfTestDoxReporter | Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions. |
| TestOfsample | Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions. |
| test_browser | Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions. |
Inherited from SimpleTestCase
SimpleTestCase::$_label
SimpleTestCase::$_observers
SimpleTestCase::$_reporter
SimpleTestCase::$_should_skip
Creates an empty test case. Should be subclassed with test methods for a functional test case.
Will trigger a pass if both parameters refer to different objects. Fail otherwise. The objects have to be identical though.
Will trigger a pass if the two parameters have the same value only. Otherwise a fail.
Will be true on false and vice versa. False is the PHP definition of false, so that null, empty strings, zero and an empty array all count as false.
Will trigger a pass if the two parameters have the same value and same type. Otherwise a fail.
Type and class test. Will pass if class matches the type name or is a subclass or if not an object, but the type is correct.
Will trigger a pass if the perl regex pattern is not present in subject. Fail if found.
Type and class mismatch test. Will pass if class name or underling type does not match the one specified.
Will trigger a pass if the two parameters have a different value. Otherwise a fail.
Will trigger a pass if the two parameters have the different value or different type.
Will be true if the value is set.
Will be true if the value is null.
Will trigger a pass if the two parameters differ by more than the margin.
Will trigger a pass if the Perl regex pattern is found in the subject. Fail otherwise.
Will trigger a pass if both parameters refer to the same object. Fail otherwise.
Called from within the test methods to register passes and failures.
Will trigger a pass if the if the first parameter is near enough to the second by the margin.
Prepares for an error. If the error mismatches it passes through, otherwise it is swallowed. Any left over errors trigger failures.
Prepares for an exception. If the error mismatches it passes through, otherwise it is swallowed. Any left over errors trigger failures.
Inherited From SimpleTestCase
SimpleTestCase::SimpleTestCase()
SimpleTestCase::after()
SimpleTestCase::assert()
SimpleTestCase::assertExpectation()
SimpleTestCase::before()
SimpleTestCase::createInvoker()
SimpleTestCase::dump()
SimpleTestCase::error()
SimpleTestCase::exception()
SimpleTestCase::fail()
SimpleTestCase::getAssertionLine()
SimpleTestCase::getLabel()
SimpleTestCase::getSize()
SimpleTestCase::getTests()
SimpleTestCase::pass()
SimpleTestCase::run()
SimpleTestCase::sendMessage()
SimpleTestCase::setUp()
SimpleTestCase::signal()
SimpleTestCase::skip()
SimpleTestCase::skipIf()
SimpleTestCase::skipUnless()
SimpleTestCase::tearDown()
SimpleTestCase::tell()
SimpleTestCase::_isTest()
Documentation generated on Sun, 02 Jan 2011 23:27:21 +0000 by phpDocumentor 1.4.3