public function ServerBagTest::testHttpDigestAuthWithPhpCgi 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::testHttpDigestAuthWithPhpCgi()
File
- vendor/
symfony/ http-foundation/ Tests/ ServerBagTest.php, line 102
Class
- ServerBagTest
- ServerBagTest.
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testHttpDigestAuthWithPhpCgi() {
$digest = 'Digest username="foo", realm="acme", nonce="' . md5('secret') . '", uri="/protected, qop="auth"';
$bag = new ServerBag(array(
'HTTP_AUTHORIZATION' => $digest,
));
$this
->assertEquals(array(
'AUTHORIZATION' => $digest,
'PHP_AUTH_DIGEST' => $digest,
), $bag
->getHeaders());
}