We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73e4cc4 commit eb09c96Copy full SHA for eb09c96
1 file changed
README.md
@@ -7,8 +7,16 @@ the request you have sent to mock server and manage the expectations of mockserv
7
8
## How to use it
9
10
-#### WIP
11
-Write some code examples.
+```php
+//You can create expectations before call your application in a test
12
+$I->createMockRequest('{"id": "elastic-get-entity-1", "httpRequest": {...}, "httpResponse": {...}}')
13
+$I->createMockRequest('{"id": "elastic-get-entity-2", "httpRequest": {...}, "httpResponse": {...}}')
14
+$I->sendGet('/applition/endpoint/1');
15
+//After execute our application we can check our mocked HTTP communication
16
+$I->seeMockRequestWasCalled('elastic-get-entity-1');
17
+$I->seeMockRequestWasNotCalled('elastic-get-entity-2');
18
+$I->seeAllRequestWereMatched();
19
+```
20
21
## Installation
22
0 commit comments