Dropped status code method

The function `http_response_code` was added in PHP 5.4 which deprecated the
code I had written. Dropped functionality and tests and updated code to use the
new function.
This commit is contained in:
Josh Sherman 2014-09-28 08:36:14 -04:00
parent da379d0849
commit 3b8eddc7b5
3 changed files with 1 additions and 136 deletions

View file

@ -32,35 +32,5 @@ class BrowserTest extends PHPUnit_Framework_TestCase
{
}
public function testStatus1xx()
{
Pickles\Browser::status(100);
$this->assertTrue(in_array('Status: 100 Continue', xdebug_get_headers()));
}
public function testStatus2xx()
{
Pickles\Browser::status(200);
$this->assertTrue(in_array('Status: 200 OK', xdebug_get_headers()));
}
public function testStatus3xx()
{
Pickles\Browser::status(300);
$this->assertTrue(in_array('Status: 300 Multiple Choices', xdebug_get_headers()));
}
public function testStatus4xx()
{
Pickles\Browser::status(400);
$this->assertTrue(in_array('Status: 400 Bad Request', xdebug_get_headers()));
}
public function testStatus5xx()
{
Pickles\Browser::status(500);
$this->assertTrue(in_array('Status: 500 Internal Server Error', xdebug_get_headers()));
}
}