Browse Source

fix the test case

Anto 10 years ago
parent
commit
3688245484
1 changed files with 7 additions and 1 deletions
  1. 7 1
      tests/TestCase/Collection/Iterator/SortIteratorTest.php

+ 7 - 1
tests/TestCase/Collection/Iterator/SortIteratorTest.php

@@ -216,11 +216,17 @@ class SortIteratorTest extends TestCase
         ];
         $this->assertEquals($expected, $sorted->toList());
 
+        $items = new ArrayObject([
+            new Time('2014-07-21'),
+            new Time('2015-06-30'),
+            new Time('2013-08-12')
+        ]);
+
         $sorted = new SortIterator($items, $callback, SORT_ASC);
         $expected = [
             new Time('2014-08-12'),
             new Time('2015-07-21'),
-            new Time('2016-06-30')
+            new Time('2016-06-30'),
         ];
         $this->assertEquals($expected, $sorted->toList());
     }