Class MethodExistsExpectation

Description

Tests for existance of a method in an object

Located in /expectation.php (line 853)

SimpleExpectation
   |
   --MethodExistsExpectation
Variable Summary
 mixed $_method
Method Summary
 void MethodExistsExpectation (string $method, [string $message = '%s'])
 boolean test (string $compare)
 string testMessage (mixed $compare)
Variables
mixed $_method (line 854)

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
SimpleExpectation::$_message
Methods
Constructor MethodExistsExpectation (line 863)

Sets the value to compare against.

  • access: public
void MethodExistsExpectation (string $method, [string $message = '%s'])
  • string $method: Method to check.
  • string $message: Customised message on failure.
test (line 874)

Tests the expectation. True if the method exists in the test object.

  • return: True if correct.
  • access: public
boolean test (string $compare)
  • string $compare: Comparison method name.

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

Returns a human readable test message.

  • return: Description of success or failure.
  • access: public
string testMessage (mixed $compare)
  • mixed $compare: Comparison value.

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