pock

MultipleMatcher
in package
implements RequestMatcherInterface, Countable

Combines several request matchers with AND semantics.

Tags
category

MultipleMatcher

Table of Contents

Interfaces

RequestMatcherInterface
Contract for reusable request matching rules registered through PockBuilder::addMatcher().
Countable

Properties

$matchers  : array<string|int, RequestMatcherInterface>

Methods

__construct()  : mixed
MultipleMatcher constructor.
addMatcher()  : $this
count()  : int
matches()  : bool
Return true when the request satisfies this rule.

Properties

Methods

matches()

Return true when the request satisfies this rule.

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

Search results