File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
Sorting Module
2
2
==============
3
3
4
+ [ ![ Build Status] ( https://travis-ci.org/1blankz7/php-sorting.svg?branch=master )] ( https://travis-ci.org/1blankz7/php-sorting )
5
+
4
6
Implementation of a generic sorting system with an interface definition compatible
5
7
to the [ Comparable RFC] ( https://wiki.php.net/rfc/comparable ) .
6
8
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ public function itShouldCallCompareToOnOneComparable()
70
70
{
71
71
$ comparable1 = $ this ->getComparable ();
72
72
$ comparable2 = $ this ->getComparable ();
73
- $ comparable2 ->compareTo ($ comparable1 ->reveal ())->willReturn (-1 )->shouldBeCalled ();
73
+ $ comparable2 ->compareTo ($ comparable1 ->reveal ())->willReturn (-1 );
74
+ $ comparable1 ->compareTo ($ comparable2 ->reveal ())->willReturn (1 );
74
75
75
76
$ this ->sortManager ->sortComparable ([$ comparable1 ->reveal (), $ comparable2 ->reveal ()]);
76
77
}
You can’t perform that action at this time.
0 commit comments