Class ParametersExpectation

Description

Parameter comparison assertion.

Located in /mock_objects.php (line 34)

SimpleExpectation
   |
   --ParametersExpectation
Variable Summary
 mixed $_expected
Method Summary
 ParametersExpectation ParametersExpectation ([ $expected = false], [string $message = '%s'], array $parameters)
 boolean test (array $parameters)
 string testMessage ( $parameters, array $comparison)
Variables
mixed $_expected (line 35)

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
SimpleExpectation::$_message
Methods
Constructor ParametersExpectation (line 46)

Sets the expected parameter list.

  • access: public
ParametersExpectation ParametersExpectation ([ $expected = false], [string $message = '%s'], array $parameters)
  • array $parameters: Array of parameters including those that are wildcarded. If the value is not an array then it is considered to match any.
  • string $message: Customised message on failure.
  • $expected
test (line 57)

Tests the assertion. True if correct.

  • return: True if correct.
  • access: public
boolean test (array $parameters)
  • array $parameters: Comparison values.

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

Returns a human readable test message.

  • return: Description of success or failure.
  • access: public
string testMessage ( $parameters, array $comparison)
  • array $comparison: Incoming parameter list.
  • $parameters

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:48 -0500 by phpDocumentor 1.3.0