Class FieldExpectation

Description

Test for an HTML widget value match.

Located in /web_tester.php (line 23)

SimpleExpectation
   |
   --FieldExpectation
Variable Summary
 mixed $_value
Method Summary
 FieldExpectation FieldExpectation (mixed $value, [string $message = '%s'])
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
mixed $_value (line 24)

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
SimpleExpectation::$_message
Methods
Constructor FieldExpectation (line 34)

Sets the field value to compare against.

  • access: public
FieldExpectation FieldExpectation (mixed $value, [string $message = '%s'])
  • mixed $value: Test value to match. Can be an expectation for say pattern matching.
  • string $message: Optiona message override. Can use %s as a placeholder for the original message.
test (line 50)

Tests the expectation. True if it matches a string value or an array value in any order.

  • return: True if correct.
  • access: public
boolean test (mixed $compare)
  • mixed $compare: Comparison value. False for an unset field.

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

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