public function testErrorLogOutput()
{
$this->http['firstNamedServer']->mock->when()->callback(static function () {
error_log('error output');
})->then()->end();
$this->http['firstNamedServer']->setUp();
$this->http['firstNamedServer']->client->get('/foo')->send();
// Should fail during tear down as we have an error_log() on the server side
try {
$this->tearDown();
$this->fail('Exception expected');
} catch (\PHPUnit_Framework_ExpectationFailedException $e) {
$this->assertContains('HTTP mock server standard error output should be empty', $e->getMessage());
}
}