diff --git a/lib/Cake/Test/Case/Utility/FolderTest.php b/lib/Cake/Test/Case/Utility/FolderTest.php index 06acf119e55..825bbd6d0f1 100644 --- a/lib/Cake/Test/Case/Utility/FolderTest.php +++ b/lib/Cake/Test/Case/Utility/FolderTest.php @@ -436,7 +436,7 @@ public function testFolderTreeWithHiddenFiles() { ); $result = $Folder->tree(null, false); - $this->assertEquals($expected, $result); + $this->assertEquals(sort($expected), sort($result)); $expected = array( array( @@ -451,7 +451,7 @@ public function testFolderTreeWithHiddenFiles() { ); $result = $Folder->tree(null, true); - $this->assertEquals($expected, $result); + $this->assertEquals(sort($expected), sort($result)); $Folder->delete(); }