Class TestOfErrors

Description

Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions.

Located in /libraries/pear/simpletest/test/errors_test.php (line 71)

SimpleTestCase
   |
   --UnitTestCase
      |
      --TestOfErrors
Variable Summary
 mixed $_old
Method Summary
Variables
mixed $_old (line 72)

Inherited Variables

Inherited from SimpleTestCase

SimpleTestCase::$_label
SimpleTestCase::$_runner
Methods
Constructor TestOfErrors (line 74)
TestOfErrors TestOfErrors ()
setUp (line 78)
void setUp ()

Redefinition of:
SimpleTestCase::setUp()
Sets up unit test wide variables at the start of each test method. To be overridden in actual user test cases.
tearDown (line 82)
void tearDown ()

Redefinition of:
SimpleTestCase::tearDown()
Clears the data set in the setUp() method call.
testDefaultWhenAllReported (line 86)
void testDefaultWhenAllReported ()
testErrorSuppressedWhenReported (line 140)
void testErrorSuppressedWhenReported ()
testErrorWhenReported (line 104)
void testErrorWhenReported ()
testNoErrorWhenNotReported (line 122)
void testNoErrorWhenNotReported ()
testNoNoticeWhenNotReported (line 110)
void testNoNoticeWhenNotReported ()
testNoticeSuppressedWhenReported (line 128)
void testNoticeSuppressedWhenReported ()
testNoticeWhenReported (line 92)
void testNoticeWhenReported ()
testNoWarningWhenNotReported (line 116)
void testNoWarningWhenNotReported ()
testWarningSuppressedWhenReported (line 134)
void testWarningSuppressedWhenReported ()
testWarningWhenReported (line 98)
void testWarningWhenReported ()

Inherited Methods

Inherited From UnitTestCase

 UnitTestCase::UnitTestCase()
 UnitTestCase::assertCopy()
 UnitTestCase::assertEqual()
 UnitTestCase::assertError()
 UnitTestCase::assertErrorPattern()
 UnitTestCase::assertIdentical()
 UnitTestCase::assertIsA()
 UnitTestCase::assertNoErrors()
 UnitTestCase::assertNotA()
 UnitTestCase::assertNotEqual()
 UnitTestCase::assertNotIdentical()
 UnitTestCase::assertNotNull()
 UnitTestCase::assertNoUnwantedPattern()
 UnitTestCase::assertNull()
 UnitTestCase::assertReference()
 UnitTestCase::assertWantedPattern()

Inherited From SimpleTestCase

 SimpleTestCase::SimpleTestCase()
 SimpleTestCase::after()
 SimpleTestCase::assertExpectation()
 SimpleTestCase::assertFalse()
 SimpleTestCase::assertTrue()
 SimpleTestCase::before()
 SimpleTestCase::dump()
 SimpleTestCase::error()
 SimpleTestCase::fail()
 SimpleTestCase::getAssertionLine()
 SimpleTestCase::getLabel()
 SimpleTestCase::getSize()
 SimpleTestCase::pass()
 SimpleTestCase::run()
 SimpleTestCase::sendMessage()
 SimpleTestCase::setUp()
 SimpleTestCase::signal()
 SimpleTestCase::swallowErrors()
 SimpleTestCase::tearDown()
 SimpleTestCase::_createRunner()

Documentation generated on Fri, 11 Feb 2005 18:13:05 +0000 by phpDocumentor 1.3.0RC3