Class MinimumCallCountExpectation

Description

Confirms that the number of calls on a method is as expected.

Located in /mock_objects.php (line 212)

SimpleExpectation
   |
   --MinimumCallCountExpectation
Variable Summary
 mixed $_count
 mixed $_method
Method Summary
 MinimumCallCountExpectation MinimumCallCountExpectation (string $method, integer $count, [string $message = '%s'])
 boolean test (integer $compare)
 string testMessage (integer $compare)
Variables
mixed $_count (line 214)
mixed $_method (line 213)

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
SimpleExpectation::$_message
Methods
Constructor MinimumCallCountExpectation (line 223)

Stashes the method and expected count for later reporting.

MinimumCallCountExpectation MinimumCallCountExpectation (string $method, integer $count, [string $message = '%s'])
  • string $method: Name of method to confirm against.
  • integer $count: Minimum number of calls.
  • string $message: Custom error message.
test (line 235)

Tests the assertion. True if correct.

  • return: True if enough.
  • access: public
boolean test (integer $compare)
  • integer $compare: Measured call count.

Redefinition of:
SimpleExpectation::test()
Tests the expectation. True if correct.
testMessage (line 245)

Reports the comparison.

  • return: Message to show.
  • access: public
string testMessage (integer $compare)
  • integer $compare: Measured call count.

Redefinition of:
SimpleExpectation::testMessage()
Returns a human readable test message.

Inherited Methods

Inherited From SimpleExpectation

 SimpleExpectation::SimpleExpectation()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()
 SimpleExpectation::_getDumper()

Documentation generated on Sun, 04 May 2008 09:21:47 -0500 by phpDocumentor 1.3.0