From 37daaf6dfe769ab3d503f902bd2ead6b5f87923f Mon Sep 17 00:00:00 2001 From: "mariano.iglesias" Date: Fri, 4 May 2007 00:38:26 +0000 Subject: [PATCH] Fixed folder test git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5004 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/folder.test.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cake/tests/cases/libs/folder.test.php b/cake/tests/cases/libs/folder.test.php index 302eb2eb4..6fa31ff74 100644 --- a/cake/tests/cases/libs/folder.test.php +++ b/cake/tests/cases/libs/folder.test.php @@ -66,7 +66,7 @@ class FolderTest extends UnitTestCase { function testInPath() { $path = dirname(dirname(__FILE__)); - $inside = basename(dirname(__FILE__)) . DS; + $inside = dirname($path) . DS; $this->Folder =& new Folder($path); @@ -78,6 +78,9 @@ class FolderTest extends UnitTestCase { $result = $this->Folder->inPath($inside); $this->assertTrue($result); + + $result = $this->Folder->inPath(DS . 'non-existing' . DS . $inside); + $this->assertFalse($result); } } ?> \ No newline at end of file