DOMNodeComparator
extends ObjectComparator
in package
FinalYes
Arrays are equal if they contain the same key-value pairs.
The order of the keys does not matter. The types of key-value pairs do not matter.
Table of Contents
Properties
Methods
- accepts() : bool
- assertEquals() : void
- setFactory() : void
- factory() : Factory
- toArray() : array<string|int, mixed>
- indent() : string
- nodeToText() : string
- Returns the normalized, whitespace-cleaned, and indented textual representation of a DOMNode.
Properties
$factory
private
Factory
$factory
Methods
accepts()
public
accepts(mixed $expected, mixed $actual) : bool
Parameters
- $expected : mixed
- $actual : mixed
Return values
boolassertEquals()
public
assertEquals(mixed $expected, mixed $actual[, float $delta = 0.0 ][, bool $canonicalize = false ][, bool $ignoreCase = false ][, array<string|int, mixed> &$processed = [] ]) : void
Parameters
- $expected : mixed
- $actual : mixed
- $delta : float = 0.0
- $canonicalize : bool = false
- $ignoreCase : bool = false
- $processed : array<string|int, mixed> = []
Tags
setFactory()
public
setFactory(Factory $factory) : void
Parameters
- $factory : Factory
factory()
protected
factory() : Factory
Return values
FactorytoArray()
protected
toArray(object $object) : array<string|int, mixed>
Parameters
- $object : object
Return values
array<string|int, mixed>indent()
private
indent(string $lines) : string
Parameters
- $lines : string
Return values
stringnodeToText()
Returns the normalized, whitespace-cleaned, and indented textual representation of a DOMNode.
private
nodeToText(DOMNode $node, bool $canonicalize, bool $ignoreCase) : string
Parameters
- $node : DOMNode
- $canonicalize : bool
- $ignoreCase : bool