Class UnwantedPatternExpectation

Description

Fail if a pattern is detected within the comparison.

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

SimpleExpectation
   |
   --WantedPatternExpectation
      |
      --UnwantedPatternExpectation
Method Summary
 UnwantedPatternExpectation UnwantedPatternExpectation (string $pattern)
 boolean test (string $compare)
 string testMessage (string $compare)
Variables
Methods
Constructor UnwantedPatternExpectation (line 348)

Sets the reject pattern

  • access: public
UnwantedPatternExpectation UnwantedPatternExpectation (string $pattern)
  • string $pattern: Pattern to search for.
test (line 359)

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

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

Documentation generated on Fri, 3 Dec 2004 12:26:38 +0000 by phpDocumentor 1.3.0RC3