/** * @expectedException \Exception * @expectedExceptionMessage URL must begin with HTTPS or HTTP. */ public function testGetFinalLocationOfURLException() { $this->httpHelperMock->getFinalLocationOfURL('file://etc/passwd'); }