mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
91b66abb6d
commit
0b1f7b9151
1 changed files with 11 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue