public function ServerBagTest::testOAuthBearerAuth in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/ServerBagTest.php \Symfony\Component\HttpFoundation\Tests\ServerBagTest::testOAuthBearerAuth()
File
- vendor/
symfony/ http-foundation/ Tests/ ServerBagTest.php, line 135
Class
- ServerBagTest
- ServerBagTest.
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testOAuthBearerAuth() {
$headerContent = 'Bearer L-yLEOr9zhmUYRkzN1jwwxwQ-PBNiKDc8dgfB4hTfvo';
$bag = new ServerBag(array(
'HTTP_AUTHORIZATION' => $headerContent,
));
$this
->assertEquals(array(
'AUTHORIZATION' => $headerContent,
), $bag
->getHeaders());
}