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