mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
Supressing header exceptions in RequestHandler test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7001 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
62d4397d4a
commit
fbdb4af2c1
2 changed files with 5 additions and 3 deletions
|
@ -274,7 +274,9 @@ class RequestHandlerComponentTest extends CakeTestCase {
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
unset($this->RequestHandler);
|
unset($this->RequestHandler);
|
||||||
unset($this->Controller);
|
unset($this->Controller);
|
||||||
|
if (!headers_sent()) {
|
||||||
header('Content-type: text/html'); //reset content type.
|
header('Content-type: text/html'); //reset content type.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
|
@ -60,7 +60,7 @@ class SecurityTest extends UnitTestCase {
|
||||||
$this->assertTrue(Security::validateAuthKey($authKey));
|
$this->assertTrue(Security::validateAuthKey($authKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
function testhash() {
|
function testHash() {
|
||||||
$key = 'someKey';
|
$key = 'someKey';
|
||||||
$this->assertIdentical(strlen(Security::hash($key, null, false)), 40);
|
$this->assertIdentical(strlen(Security::hash($key, null, false)), 40);
|
||||||
$this->assertIdentical(strlen(Security::hash($key, 'sha1', false)), 40);
|
$this->assertIdentical(strlen(Security::hash($key, 'sha1', false)), 40);
|
||||||
|
|
Loading…
Reference in a new issue