Class MethodExistsExpectation

Description

Tests for existance of a method in an object

Located in /libraries/pear/simpletest/expectation.php (line 505)

SimpleExpectation
   |
   --MethodExistsExpectation
Variable Summary
 mixed $_method
Method Summary
 void MethodExistsExpectation (string $method)
 boolean test (string $compare)
 string testMessage (mixed $compare)
Variables
mixed $_method (line 506)

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
Methods
Constructor MethodExistsExpectation (line 514)

Sets the value to compare against.

  • access: public
void MethodExistsExpectation (string $method)
  • string $method: Method to check.
test (line 525)

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

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::test()
 SimpleExpectation::testMessage()
 SimpleExpectation::_getDumper()

Documentation generated on Thu, 20 Jan 2005 17:09:50 +0000 by phpDocumentor 1.3.0RC3