/** * @covers Fisharebest\PhpPolyfill\Php54::httpResponseCode * @runInSeparateProcess */ public function testHttpResponseIgnoreInvalid() { ini_set('error_reporting', 0); $code = Php54::httpResponseCode('foo-bar'); $this->assertSame(200, $code); }
function http_response_code($reponse_code = null) { return Php54::httpResponseCode($reponse_code); }