public function testInternalServerErrorStatusCodeThrowsException() { $this->transport()->shouldReceive('send')->andReturn(new Response(500, array())); $this->setExpectedException('Ergo\\Http\\Error'); $this->client()->get('/hello'); }