Class NoTextExpectation

Description

Fail if a substring is detected within the comparison text.

Located in /web_tester.php (line 384)

SimpleExpectation
   |
   --TextExpectation
      |
      --NoTextExpectation
Method Summary
 NoTextExpectation NoTextExpectation (string $substring, [string $message = '%s'])
 boolean test (string $compare)
 string testMessage (string $compare)
Variables
Methods
Constructor NoTextExpectation (line 392)

Sets the reject pattern

  • access: public
NoTextExpectation NoTextExpectation (string $substring, [string $message = '%s'])
  • string $substring: Text to search for.
  • string $message: Customised message on failure.
test (line 403)

Tests the expectation. False if the substring appears in the text.

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

Redefinition of:
TextExpectation::test()
Tests the expectation. True if the text contains the substring.
testMessage (line 414)

Returns a human readable test message.

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

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

Inherited Methods

Inherited From TextExpectation

 TextExpectation::TextExpectation()
 TextExpectation::test()
 TextExpectation::testMessage()
 TextExpectation::_describeTextMatch()
 TextExpectation::_getSubstring()

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