Class NoPatternExpectation

Description

Fail if a pattern is detected within the comparison.

Located in /expectation.php (line 692)

SimpleExpectation
   |
   --PatternExpectation
      |
      --NoPatternExpectation
Method Summary
 NoPatternExpectation __construct (string $pattern, [string $message = '%s'])
 boolean test (string $compare)
 string testMessage (string $compare)
Variables

Inherited Variables

Inherited from SimpleExpectation

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

Sets the reject pattern

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

Redefinition of:
PatternExpectation::__construct()
Sets the value to compare against.
test (line 711)

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:
PatternExpectation::test()
Tests the expectation. True if the Perl regex matches the comparison value.
testMessage (line 722)

Returns a human readable test message.

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

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

Inherited Methods

Inherited From PatternExpectation

 PatternExpectation::__construct()
 PatternExpectation::describePatternMatch()
 PatternExpectation::getPattern()
 PatternExpectation::test()
 PatternExpectation::testMessage()

Inherited From SimpleExpectation

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

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