diff --git a/lib/Cake/Test/Case/Utility/FolderTest.php b/lib/Cake/Test/Case/Utility/FolderTest.php index 825bbd6d0..95b03d68b 100644 --- a/lib/Cake/Test/Case/Utility/FolderTest.php +++ b/lib/Cake/Test/Case/Utility/FolderTest.php @@ -436,7 +436,9 @@ class FolderTest extends CakeTestCase { ); $result = $Folder->tree(null, false); - $this->assertEquals(sort($expected), sort($result)); + sort($result[1]); + sort($expected[1]); + $this->assertEquals($expected, $result); $expected = array( array( @@ -451,7 +453,9 @@ class FolderTest extends CakeTestCase { ); $result = $Folder->tree(null, true); - $this->assertEquals(sort($expected), sort($result)); + sort($result[1]); + sort($expected[1]); + $this->assertEquals($expected, $result); $Folder->delete(); }