Closed AlexMarlo closed 8 years ago
Can’t you check that requests are empty?
I don't see in RequestCollectionFacade public function to get request list.
True, let’s think about an API. What about saying $this->assertCount(2, $this->http->requests);
?
PR is #24
great, but what about the case when i want to now that particular request wasn't received?
You can do something like this: $this->assertNotSame('/unexpected', $this->http->request->latest()->getRequestUri());
Alternatively we would need to match against all requests and say "assert that there hasn’t been a request matching the following criteria". But I am not sure that’s needed.
I think that the last part of this issue is similar to #25. With real mocks this checks will be created automatically (how many times particular request should be done).
Closing this for now, ok?
I have functionality when i need to know that part of the code which call remote server wasn't called. For now i don't see such functionality in library. Any ideas?