PHPUnit_Util_XML::cssSelect

Parse an $actual document and return an array of DOMNodes matching the CSS $selector. If an error occurs, it will return false.

To only return nodes containing a certain content, give the $content to match as a string. Otherwise, setting $content to true will return all nodes matching $selector. The $actual document may be a DOMDocument or a string containing XML or HTML, identified by $isHtml.

Signature

public function cssSelect(array $selector, [string $content = true, [mixed $actual = true, [boolean $isHtml = true]]] )

Parameters

$selector — array
$content — string
$actual — mixed
$isHtml — boolean

Returns

boolean|array