pock

AbstractSerializedBodyMatcher
in package
implements RequestMatcherInterface uses SeekableStreamDataExtractor

AbstractYes

Base matcher for bodies decoded into recursively compared PHP arrays.

Tags
category

AbstractSerializedBodyMatcher

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
phpstan-ignore-next-line

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