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 414)

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

Inherited Variables

Inherited from SimpleTestCase

SimpleTestCase::$_reporter

Inherited from RunnableTest

RunnableTest::$_label
Methods
Constructor TestOfMockExpectations (line 417)
TestOfMockExpectations TestOfMockExpectations ()
setUp (line 420)
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 423)
void tearDown ()

Redefinition of:
SimpleTestCase::tearDown()
Clears the data set in the setUp() method call.
testBadArgParameter (line 508)
void testBadArgParameter ()
testExpectedArguments (line 474)
void testExpectedArguments ()
testFailedArguments (line 479)
void testFailedArguments ()
testFailedNever (line 442)
void testFailedNever ()
testFailedSequence (line 499)
void testFailedSequence ()
testMaxCalls (line 426)
void testMaxCalls ()
testMinCalls (line 434)
void testMinCalls ()
testOverOnce (line 454)
void testOverOnce ()
testSpecificSequence (line 490)
void testSpecificSequence ()
testUnderAtLeastOnce (line 463)
void testUnderAtLeastOnce ()
testUnderOnce (line 448)
void testUnderOnce ()
testWildcardArguments (line 485)
void testWildcardArguments ()
testZeroArguments (line 469)
void testZeroArguments ()

Inherited Methods

Inherited From UnitTestCase

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

Inherited From SimpleTestCase

 SimpleTestCase::SimpleTestCase()
 SimpleTestCase::assertExpectation()
 SimpleTestCase::assertFalse()
 SimpleTestCase::assertTrue()
 SimpleTestCase::dump()
 SimpleTestCase::error()
 SimpleTestCase::fail()
 SimpleTestCase::getAssertionLine()
 SimpleTestCase::invoke()
 SimpleTestCase::pass()
 SimpleTestCase::run()
 SimpleTestCase::sendMessage()
 SimpleTestCase::setUp()
 SimpleTestCase::signal()
 SimpleTestCase::swallowErrors()
 SimpleTestCase::tearDown()
 SimpleTestCase::_createRunner()
 SimpleTestCase::_isConstructor()
 SimpleTestCase::_isTest()

Inherited From RunnableTest

 RunnableTest::RunnableTest()
 RunnableTest::getLabel()
 RunnableTest::getSize()
 RunnableTest::run()

Documentation generated on Fri, 10 Dec 2004 18:26:20 +0000 by phpDocumentor 1.3.0RC3