Response::sendHttpStatus方法废弃 改为http_response_code

This commit is contained in:
thinkphp
2016-01-26 09:30:07 +08:00
parent 67c8eb3580
commit 2c5ec2ae87
4 changed files with 2 additions and 72 deletions

View File

@@ -304,15 +304,4 @@ class responseTest extends \PHPUnit_Framework_TestCase
// $this->assertContains($name . ': ' . $url, xdebug_get_headers());
}
/**
* @#runInSeparateProcess
* @covers think\Response::sendHttpStatus
* @todo Implement testSendHttpStatus().
*/
public function testSendHttpStatus()
{
// \think\Response::sendHttpStatus(416);
// $this->assertContains('HTTP/1.1 ' . ': ' . $status, xdebug_get_headers());
// $this->assertContains('Status:' . ': ' . $status, xdebug_get_headers());
}
}