|
|
@@ -277,8 +277,11 @@ class DebuggerTest extends CakeTestCase {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testTrimPath() {
|
|
|
- $this->assertEquals(Debugger::trimPath(APP), 'APP' . DS);
|
|
|
- $this->assertEquals(Debugger::trimPath(CAKE_CORE_INCLUDE_PATH), 'CORE');
|
|
|
+ $this->assertEquals('APP' . DS, Debugger::trimPath(APP));
|
|
|
+ $this->assertEquals('CORE', Debugger::trimPath(CAKE_CORE_INCLUDE_PATH));
|
|
|
+ $this->assertEquals('ROOT', Debugger::trimPath(ROOT));
|
|
|
+ $this->assertEquals('CORE' . DS . 'Cake' . DS, Debugger::trimPath(CAKE));
|
|
|
+ $this->assertEquals('Some/Other/Path', Debugger::trimPath('Some/Other/Path'));
|
|
|
}
|
|
|
|
|
|
/**
|