Skip to content

Releases: lequipefr/mockserver-behat-context

1.0.7

Choose a tag to compare

@alcalyn alcalyn released this 13 Dec 15:35
613c8ea
  • Fixed: MockServerClient::expectation(), passing an instance of Expectation instead of an array should also work

1.0.6

Choose a tag to compare

@alcalyn alcalyn released this 13 Dec 14:59
9d6e85e
  • Allow psr/http-message 2.0 as dependency

1.0.5

Choose a tag to compare

@alcalyn alcalyn released this 10 Nov 11:29
1ea5570

Fix last release to make enum compatible with php 8.0

1.0.4

Choose a tag to compare

@alcalyn alcalyn released this 10 Nov 11:15
4b0b079

Add Timeout phrase:

Timeout

Used to test your code when a third party API is currently slow and timeout.

Example:

Given the request "GET" "/sso/users/1" will timeout

When I send a "GET" request on "/users/1"

Then ... (test that your API don't falls on timeout also)

Given the request "GET" "/users" will timeout

Payload sent to mockserver endpoint PUT /expectation:

{
    "httpRequest": {
        "method": "GET",
        "path": "/users"
    },
    "httpResponse": {
        "delay": {
            "timeUnit": "SECONDS",
            "value": 600
        }
    }
}

1.0.3

Choose a tag to compare

@alcalyn alcalyn released this 07 Mar 09:32
d5fbbbf
  • ->verify() now throws an exception if expected call count does not matches.
  • Then the request "GET" "/api/users" should have been called exactly 1 times now fails if expected call count does not matches.