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