Combine http basic auth tests

This commit is contained in:
Zach Borboa
2015-02-22 01:18:42 +07:00
parent 5b60fdaf1a
commit 06b0cb62a0
+1 -4
View File
@@ -367,14 +367,11 @@ class CurlTest extends PHPUnit_Framework_TestCase
$this->assertFalse(file_exists($downloaded_file_path));
}
public function testBasicHttpAuth401Unauthorized()
public function testBasicHttpAuth()
{
$test = new Test();
$this->assertEquals('canceled', $test->server('http_basic_auth', 'GET'));
}
public function testBasicHttpAuthSuccess()
{
$username = 'myusername';
$password = 'mypassword';
$test = new Test();