public function testFailedRequest() { $response = $this->http['firstNamedServer']->client->get('/foo')->send(); $this->assertSame(404, $response->getStatusCode()); $this->assertSame('No matching expectation found', (string) $response->getBody()); }