diff --git a/src/Module/WireMock.php b/src/Module/WireMock.php index d5f7a4c..75e7b3c 100644 --- a/src/Module/WireMock.php +++ b/src/Module/WireMock.php @@ -70,4 +70,13 @@ public function receivedRequestToWireMock($builderOrCount, RequestPatternBuilder { $this->wireMock->verify($builderOrCount, $builder); } + + /** + * @param RequestPatternBuilder $builder + * @return \WireMock\Client\LoggedRequest[] + */ + public function findReceivedRequestsToWireMock(RequestPatternBuilder $builder) + { + return $this->wireMock->findAll($builder); + } }