Definition at line 8 of file BearerTest.php.
◆ testGetCredentialsNoheader()
Sabre\HTTP\Auth\BearerTest::testGetCredentialsNoheader |
( |
| ) |
|
Definition at line 25 of file BearerTest.php.
References $request.
27 $request =
new Request(
'GET',
'/', []);
28 $bearer =
new Bearer(
'Dagger',
$request,
new Response());
30 $this->assertNull($bearer->getToken());
foreach($paths as $path) $request
◆ testGetCredentialsNotBearer()
Sabre\HTTP\Auth\BearerTest::testGetCredentialsNotBearer |
( |
| ) |
|
Definition at line 34 of file BearerTest.php.
References $request.
37 'Authorization' =>
'QBearer 12345' 39 $bearer =
new Bearer(
'Dagger',
$request,
new Response());
41 $this->assertNull($bearer->getToken());
foreach($paths as $path) $request
◆ testGetToken()
Sabre\HTTP\Auth\BearerTest::testGetToken |
( |
| ) |
|
Definition at line 10 of file BearerTest.php.
References $request.
13 'Authorization' =>
'Bearer 12345' 16 $bearer =
new Bearer(
'Dagger',
$request,
new Response());
foreach($paths as $path) $request
◆ testRequireLogin()
Sabre\HTTP\Auth\BearerTest::testRequireLogin |
( |
| ) |
|
Definition at line 45 of file BearerTest.php.
References $response.
48 $bearer =
new Bearer(
'Dagger',
new Request(),
$response);
50 $bearer->requireLogin();
52 $this->assertEquals(
'Bearer realm="Dagger"',
$response->getHeader(
'WWW-Authenticate'));
53 $this->assertEquals(401,
$response->getStatus());
The documentation for this class was generated from the following file: