mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
74d9a205ec
commit
37daaf6dfe
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Reference in a new issue