Separate basic authentication tests

This commit is contained in:
Zach Borboa
2014-03-04 21:59:57 -08:00
parent 854529b72c
commit a326392a0b
+3 -1
View File
@@ -140,10 +140,12 @@ class CurlTest extends PHPUnit_Framework_TestCase {
)) === 'delete');
}
public function testBasicHttpAuth() {
public function testBasicHttpAuth401Unauthorized() {
$test = new Test();
$this->assertTrue($test->server('http_basic_auth', 'GET') === 'canceled');
}
public function testBasicHttpAuthSuccess() {
$username = 'myusername';
$password = 'mypassword';
$test = new Test();