public function testInvalidProtocol()
{
$client = $this->createClientResponse("communication does not conform to protocol\r\n");
$client->on('error', $this->expectCallableOnce());
$client->on('close', $this->expectCallableOnce());
$client->get('willBeRejectedDueToClosing')->then(null, $this->expectCallableOnce());
$this->waitFor($client);
}