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 __construct (string $substring, [string $message = '%s'])
 boolean test (string $compare)
 string testMessage (string $compare)
Variables

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$dumper
Methods
Constructor __construct (line 392)

Sets the reject pattern

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

Redefinition of:
TextExpectation::__construct()
Sets the value to compare against.
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::__construct()
 TextExpectation::describeTextMatch()
 TextExpectation::getSubstring()
 TextExpectation::test()
 TextExpectation::testMessage()

Inherited From SimpleExpectation

 SimpleExpectation::__construct()
 SimpleExpectation::getDumper()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()

Documentation generated on Sun, 31 Oct 2010 16:33:04 -0500 by phpDocumentor 1.4.3