Debugger tests now at over 70% code coverage

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6822 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
joelmoss 2008-05-12 21:07:21 +00:00
parent 91b66abb6d
commit 0b1f7b9151

View file

@ -48,6 +48,13 @@ class DebuggerTest extends UnitTestCase {
}
}
function testDocRef() {
ini_set('docref_root', '');
$this->assertEqual(ini_get('docref_root'), '');
$debugger = new Debugger();
$this->assertEqual(ini_get('docref_root'), 'http://php.net/');
}
function testOutput() {
Debugger::invoke(Debugger::getInstance());
$result = Debugger::output(false);
@ -73,6 +80,10 @@ class DebuggerTest extends UnitTestCase {
set_error_handler('simpleTestErrorHandler');
}
function testTrimPath() {
$this->assertEqual(Debugger::trimPath(APP), 'APP/');
$this->assertEqual(Debugger::trimPath(CAKE_CORE_INCLUDE_PATH), 'CORE');
}
function testExportVar() {
App::import('Controller');