You are here

public function ServerBagTest::testOAuthBearerAuthWithRedirect in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Tests

Code

public function testOAuthBearerAuthWithRedirect() {
  $headerContent = 'Bearer L-yLEOr9zhmUYRkzN1jwwxwQ-PBNiKDc8dgfB4hTfvo';
  $bag = new ServerBag(array(
    'REDIRECT_HTTP_AUTHORIZATION' => $headerContent,
  ));
  $this
    ->assertEquals(array(
    'AUTHORIZATION' => $headerContent,
  ), $bag
    ->getHeaders());
}