mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-25 03:59:06 +00:00
Separate basic authentication tests
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user