Skip to content

Commit

Permalink
Update readme re importStubs / stubImport
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanhill committed Mar 23, 2019
1 parent 9172405 commit ff551ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Unfortunately, PHP doesn't support anything like Java's static import of methods
the Java API's static instance pattern. Instead, in wiremock-php some methods which are static in Java are instance
methods. Those methods are:

- `stubFor`, `editStub`
- `stubFor`, `editStub`, `importStubs`
- `verify`
- `findAll`
- `saveAllMappings`
Expand All @@ -56,6 +56,9 @@ The request body matcher `equalToJson` takes an optional `$jsonCompareMode` para
values on org.skyscreamer.jsonassert.JSONCompareMode; in wiremock-php, these values are consts on
`JsonValueMatchingStrategy`.

The `stubImport` method is static on `StubBuilder` in Java. In WireMock, to keep all the public static methods in one
predictable place, this method is available as `WireMock::stubImport`.

In addition, wiremock-php adds the instance method `isAlive`. This polls the standalone WireMock instance until an OK
response is received or a timeout is reached, allowing your PHP code to wait until WireMock is ready.

Expand Down

0 comments on commit ff551ac

Please sign in to comment.