diff --git a/lib/Cake/Test/Case/Utility/FolderTest.php b/lib/Cake/Test/Case/Utility/FolderTest.php index 4c1bc5bc3..d87e6f46b 100644 --- a/lib/Cake/Test/Case/Utility/FolderTest.php +++ b/lib/Cake/Test/Case/Utility/FolderTest.php @@ -750,7 +750,9 @@ class FolderTest extends CakeTestCase { $path . DS . 'level_1_1 removed', $path . ' removed' ); - $this->assertEquals(sort($expected), sort($messages)); + sort($expected); + sort($messages); + $this->assertEquals($expected, $messages); } /**