public function testWrongRedirection() { $this->expectException(\Exception::class); $answer = new Http(); $answer->doRedirection('http://127.0.0.1/', 500); }