AbstractSerializedBodyMatcher
in package
implements
RequestMatcherInterface
uses
SeekableStreamDataExtractor
AbstractYes
Base matcher for bodies decoded into recursively compared PHP arrays.
Tags
Table of Contents
Interfaces
- RequestMatcherInterface
- Contract for reusable request matching rules registered through PockBuilder::addMatcher().
Methods
- __construct() : mixed
- AbstractSerializedBodyMatcher constructor.
- matches() : bool
- Return true when the request satisfies this rule.
Methods
__construct()
AbstractSerializedBodyMatcher constructor.
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
Tags
matches()
Return true when the request satisfies this rule.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface