From 0b1f7b915149ac3c22434cc5d2faf85ce50e11c0 Mon Sep 17 00:00:00 2001 From: joelmoss Date: Mon, 12 May 2008 21:07:21 +0000 Subject: [PATCH] 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 --- cake/tests/cases/libs/debugger.test.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cake/tests/cases/libs/debugger.test.php b/cake/tests/cases/libs/debugger.test.php index 7a10dd14a..f3b0dd2b6 100644 --- a/cake/tests/cases/libs/debugger.test.php +++ b/cake/tests/cases/libs/debugger.test.php @@ -47,6 +47,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()); @@ -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');