PHP Class CssSelectorExpectation, simpletest

Create a CSS Selector expectactation
Inheritance: extends SimpleExpectation
Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Свойство Type Description
$dom
$selector
$value

Méthodes publiques

Méthode Description
__construct ( mixed $dom, mixed $selector, string $message = '%s' ) Sets the dom tree and the css selector to compare against
test ( mixed $compare ) : boolean Tests the expectation. True if it matches the held value.
testMessage ( mixed $compare ) : string Returns a human readable test message.

Method Details

__construct() public méthode

Sets the dom tree and the css selector to compare against
public __construct ( mixed $dom, mixed $selector, string $message = '%s' )
$dom mixed Dom tree to search into.
$selector mixed Css selector to match element.
$message string Customised message on failure.

test() public méthode

Tests the expectation. True if it matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
Résultat boolean True if correct.

testMessage() public méthode

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Comparison value.
Résultat string Description of success or failure.

Property Details

$dom public_oe property

public $dom

$selector public_oe property

public $selector

$value public_oe property

public $value