// 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']));
+ $this->assertArrayNotHasKey('PHP_AUTH_USER', $headers);
+ $this->assertArrayNotHasKey('PHP_AUTH_PW', $headers);
}
public function testHttpBasicAuthWithPhpCgiRedirect()
// 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']));
+ $this->assertArrayNotHasKey('PHP_AUTH_USER', $headers);
+ $this->assertArrayNotHasKey('PHP_AUTH_PW', $headers);
}
public function testHttpDigestAuthWithPhpCgiRedirect()