yii2-httpclient
yii2-httpclient copied to clipboard
Expand MockTransport documentation [skip ci]
I needed to test my API consumer, and found little to no documentation for MockTransport, so here's a first stab at it.
Would love some feedback if my overall code could be enhanced (is this the correct way to implement a mockable API client?)
| Q | A |
|---|---|
| Is bugfix? | ❌ |
| New feature? | ❌ |
| Breaks BC? | ❌ |
| Fixed issues |
I need to document $mock->flushRequests() too