Fixed folder test

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5004 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2007-05-04 00:38:26 +00:00
parent 74d9a205ec
commit 37daaf6dfe

View file

@ -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);
}
}
?>