Class TestOfMockExpectations

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/simple_mock_test.php (line 454)

SimpleTestCase
   |
   --UnitTestCase
      |
      --TestOfMockExpectations
Variable Summary
 mixed $_test
Method Summary
Variables
mixed $_test (line 455)

Inherited Variables

Inherited from SimpleTestCase

SimpleTestCase::$_label
SimpleTestCase::$_runner
Methods
Constructor TestOfMockExpectations (line 457)
TestOfMockExpectations TestOfMockExpectations ()
setUp (line 461)
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 465)
void tearDown ()

Redefinition of:
SimpleTestCase::tearDown()
Clears the data set in the setUp() method call.
testBadArgParameter (line 569)
void testBadArgParameter ()
testExpectedArguments (line 530)
void testExpectedArguments ()
testFailedArguments (line 536)
void testFailedArguments ()
testFailedNever (line 493)
void testFailedNever ()
testFailedSequence (line 559)
void testFailedSequence ()
testMaxCalls (line 475)
void testMaxCalls ()
testMinCalls (line 484)
void testMinCalls ()
testOverOnce (line 507)
void testOverOnce ()
testSettingExpectationOnNonMethodThrowsError (line 469)
void testSettingExpectationOnNonMethodThrowsError ()
testSpecificSequence (line 549)
void testSpecificSequence ()
testUnderAtLeastOnce (line 517)
void testUnderAtLeastOnce ()
testUnderOnce (line 500)
void testUnderOnce ()
testWildcardArguments (line 543)
void testWildcardArguments ()
testZeroArguments (line 524)
void testZeroArguments ()

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:14:01 +0000 by phpDocumentor 1.3.0RC3