XmlBodyMatcher
extends BodyMatcher
in package
uses
SeekableStreamDataExtractor
Structurally compares XML when DOM and XSL are available, with exact-text fallback otherwise.
Tags
Table of Contents
Properties
- $forceTextComparison : bool
Methods
- __construct() : mixed
- XmlBodyMatcher constructor.
- matches() : bool
- Return true when the request satisfies this rule.
Properties
$forceTextComparison
public
static bool
$forceTextComparison
= false
Methods
__construct()
XmlBodyMatcher constructor.
public
__construct(DOMDocument|StreamInterface|resource|string $referenceXml) : mixed
Parameters
- $referenceXml : DOMDocument|StreamInterface|resource|string
Tags
matches()
Return true when the request satisfies this rule.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface