public function ServerBagTest::testOAuthBearerAuth

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/ServerBagTest.php, line 92

Class

ServerBagTest
ServerBagTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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