public function testWrongLocation() { $this->expectException(\Exception::class); $answer = new Http(); $answer->setLocation("http://127.0.0.1/\n"); }