Class UnwantedPatternExpectation

Description

Fail if a pattern is detected within the comparison.

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

SimpleExpectation
   |
   --WantedPatternExpectation
      |
      --UnwantedPatternExpectation
Method Summary
 UnwantedPatternExpectation UnwantedPatternExpectation (string $pattern, [string $message = '%s'])
 boolean test (string $compare)
 string testMessage (string $compare)
Variables
Methods
Constructor UnwantedPatternExpectation (line 370)

Sets the reject pattern

  • access: public
UnwantedPatternExpectation UnwantedPatternExpectation (string $pattern, [string $message = '%s'])
  • string $pattern: Pattern to search for.
  • string $message: Customised message on failure.
test (line 381)

Tests the expectation. False if the Perl regex matches the comparison value.

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

Redefinition of:
WantedPatternExpectation::test()
Tests the expectation. True if the Perl regex matches the comparison value.
testMessage (line 392)

Returns a human readable test message.

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

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

Inherited Methods

Inherited From WantedPatternExpectation

 WantedPatternExpectation::WantedPatternExpectation()
 WantedPatternExpectation::test()
 WantedPatternExpectation::testMessage()
 WantedPatternExpectation::_decribePatternMatch()
 WantedPatternExpectation::_getPattern()

Inherited From SimpleExpectation

 SimpleExpectation::SimpleExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()
 SimpleExpectation::_getDumper()

Documentation generated on Fri, 11 Feb 2005 18:13:08 +0000 by phpDocumentor 1.3.0RC3