JBZoo\PHPUnit\HttpTest::testHttpBasicAuthWithPhpCgiBogus PHP Method

testHttpBasicAuthWithPhpCgiBogus() public method

    public function testHttpBasicAuthWithPhpCgiBogus()
    {
        $this->_setServerVar(array('HTTP_AUTHORIZATION' => 'Basic_' . base64_encode('foo:bar')));
        // Username and passwords should not be set as the header is bogus
        $headers = Http::getHeaders();
        isFalse(isset($headers['PHP_AUTH_USER']));
        isFalse(isset($headers['PHP_AUTH_PW']));
    }