pock

XmlBodyMatcher extends BodyMatcher
in package
uses SeekableStreamDataExtractor

Structurally compares XML when DOM and XSL are available, with exact-text fallback otherwise.

Tags
category

XmlBodyMatcher

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
throws
XmlException

matches()

Return true when the request satisfies this rule.

public matches(RequestInterface $request) : bool
Parameters
$request : RequestInterface
Tags
inheritDoc
Return values
bool
On this page

Search results