PHP Класс CssSelectorExpectation, simpletest

Create a CSS Selector expectactation
Наследование: extends SimpleExpectation
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$dom
$selector
$value

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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() публичный Метод

Tests the expectation. True if it matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
Результат boolean True if correct.

testMessage() публичный Метод

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Comparison value.
Результат string Description of success or failure.

Описание свойств

$dom публичное свойство

public $dom

$selector публичное свойство

public $selector

$value публичное свойство

public $value