Definition at line 8 of file BasicTest.php.
◆ testGetCredentials()
Sabre\HTTP\Auth\BasicTest::testGetCredentials |
( |
| ) |
|
Definition at line 10 of file BasicTest.php.
References $request.
13 'Authorization' =>
'Basic ' . base64_encode(
'user:pass:bla')
16 $basic =
new Basic(
'Dagger',
$request,
new Response());
21 ], $basic->getCredentials());
foreach($paths as $path) $request
◆ testGetCredentialsNoheader()
Sabre\HTTP\Auth\BasicTest::testGetCredentialsNoheader |
( |
| ) |
|
Definition at line 37 of file BasicTest.php.
References $request.
39 $request =
new Request(
'GET',
'/', []);
40 $basic =
new Basic(
'Dagger',
$request,
new Response());
42 $this->assertNull($basic->getCredentials());
foreach($paths as $path) $request
◆ testGetCredentialsNotBasic()
Sabre\HTTP\Auth\BasicTest::testGetCredentialsNotBasic |
( |
| ) |
|
Definition at line 46 of file BasicTest.php.
References $request.
49 'Authorization' =>
'QBasic ' . base64_encode(
'user:pass:bla')
51 $basic =
new Basic(
'Dagger',
$request,
new Response());
53 $this->assertNull($basic->getCredentials());
foreach($paths as $path) $request
◆ testGetInvalidCredentialsColonMissing()
Sabre\HTTP\Auth\BasicTest::testGetInvalidCredentialsColonMissing |
( |
| ) |
|
Definition at line 25 of file BasicTest.php.
References $request.
28 'Authorization' =>
'Basic ' . base64_encode(
'userpass')
31 $basic =
new Basic(
'Dagger',
$request,
new Response());
33 $this->assertNull($basic->getCredentials());
foreach($paths as $path) $request
◆ testRequireLogin()
Sabre\HTTP\Auth\BasicTest::testRequireLogin |
( |
| ) |
|
Definition at line 57 of file BasicTest.php.
References $response.
60 $basic =
new Basic(
'Dagger',
new Request(),
$response);
62 $basic->requireLogin();
64 $this->assertEquals(
'Basic realm="Dagger", charset="UTF-8"',
$response->getHeader(
'WWW-Authenticate'));
65 $this->assertEquals(401,
$response->getStatus());
The documentation for this class was generated from the following file: