public function ServerBagTest::testHttpBasicAuthWithPhpCgiBogus 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::testHttpBasicAuthWithPhpCgiBogus()
File
- vendor/
symfony/ http-foundation/ Tests/ ServerBagTest.php, line 70
Class
- ServerBagTest
- ServerBagTest.
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testHttpBasicAuthWithPhpCgiBogus() {
$bag = new ServerBag(array(
'HTTP_AUTHORIZATION' => 'Basic_' . base64_encode('foo:bar'),
));
// Username and passwords should not be set as the header is bogus
$headers = $bag
->getHeaders();
$this
->assertFalse(isset($headers['PHP_AUTH_USER']));
$this
->assertFalse(isset($headers['PHP_AUTH_PW']));
}