DOMNodeEqualTo
extends Constraint
in package
FinalYes
Compares {@see DOMNode} instances by normalizing their XML representation.
Element and attribute names are compared by namespace URI and local name, not by namespace prefix. Attribute order is ignored. Text, CDATA, and entity reference content are compared after whitespace normalization. XML namespace declaration attributes, comments, doctypes, notation declarations, and entity declarations are ignored.
Table of Contents
Methods
- __construct() : mixed
- evaluate() : bool|null
- stringify() : string
- toString() : string
- additionalFailureDescription() : string
- failureDescription() : string
Methods
__construct()
public
__construct(DOMNode $expected) : mixed
Parameters
- $expected : DOMNode
evaluate()
public
evaluate(mixed $other[, string $description = '' ][, bool $returnResult = false ]) : bool|null
Parameters
- $other : mixed
- $description : string = ''
- $returnResult : bool = false
Return values
bool|nullstringify()
public
static stringify(DOMNode $node) : string
Parameters
- $node : DOMNode
Return values
stringtoString()
public
toString() : string
Return values
stringadditionalFailureDescription()
protected
additionalFailureDescription(mixed $other) : string
Parameters
- $other : mixed
Return values
stringfailureDescription()
protected
failureDescription(mixed $other) : string
Parameters
- $other : mixed