Class CssSelectorExpectation

Description

CssSelectorExpectation

Create a CSS Selector expectactation

Located in /extensions/dom_tester.php (line 28)

SimpleExpectation
   |
   --CssSelectorExpectation
Variable Summary
 mixed $dom
 mixed $selector
 mixed $value
Method Summary
 CssSelectorExpectation __construct (mixed $dom, mixed $selector, [string $message = '%s'])
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
mixed $dom (line 29)
  • access: protected
mixed $selector (line 30)
  • access: protected
mixed $value (line 31)
  • access: protected

Inherited Variables

Inherited from SimpleExpectation

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

Sets the dom tree and the css selector to compare against

  • access: public
CssSelectorExpectation __construct (mixed $dom, mixed $selector, [string $message = '%s'])
  • mixed $dom: Dom tree to search into.
  • mixed $selector: Css selector to match element.
  • string $message: Customised message on failure.

Redefinition of:
SimpleExpectation::__construct()
Creates a dumper for displaying values and sets the test message.
test (line 56)

Tests the expectation. True if it matches the held value.

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

Redefinition of:
SimpleExpectation::test()
Tests the expectation. True if correct.
testMessage (line 67)

Returns a human readable test message.

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

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

Inherited Methods

Inherited From SimpleExpectation

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

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