pock

XmlBodyMatcher extends BodyMatcher
in package
Uses SeekableStreamDataExtractor

Class XmlBodyMatcher

Tags
category

XmlBodyMatcher

Table of Contents

$forceTextComparison  : bool
__construct()  : mixed
XmlBodyMatcher constructor.
matches()  : bool
Returns true if request is matched by this matcher.

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
Return values
mixed

matches()

Returns true if request is matched by this matcher.

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

Search results