From cf03b33a0dd260b97d60800ebf33a4995a997616 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sat, 10 Dec 2011 10:38:24 -0430 Subject: [PATCH] Properly using sort() before asserting values, asserting the result of sort() is cheating :P --- lib/Cake/Test/Case/Utility/FolderTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); }