Class MethodExistsExpectation

Description

Tests for existance of a method in an object

Located in /expectation.php (line 859)

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

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$dumper
Methods
Constructor __construct (line 868)

Sets the value to compare against.

void __construct (string $method, [string $message = '%s'])
  • string $method: Method to check.
  • string $message: Customised message on failure.

Redefinition of:
SimpleExpectation::__construct()
Creates a dumper for displaying values and sets the test message.
test (line 878)

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

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

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

Returns a human readable test message.

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

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

Inherited Methods

Inherited From SimpleExpectation

 SimpleExpectation::__construct()
 SimpleExpectation::getDumper()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()

Documentation generated on Sun, 31 Oct 2010 16:31:27 -0500 by phpDocumentor 1.4.3