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:
nate 2008-05-22 03:01:22 +00:00
parent 62d4397d4a
commit fbdb4af2c1
2 changed files with 5 additions and 3 deletions

View file

@ -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.
} }
} }
}
?> ?>

View file

@ -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);