Skip to content

Commit

Permalink
Merge pull request #2 from Phrlog/add-find-received-requests-method
Browse files Browse the repository at this point in the history
feat: add method to find received requests by pattern
  • Loading branch information
Pavel Batanov authored Dec 18, 2019
2 parents 1e07255 + 17617b1 commit 5940d25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Module/WireMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 5940d25

Please sign in to comment.