Skip to content

Commit 13dbdc2

Browse files
author
Christian Blank
committed
Update readme
1 parent 5d869be commit 13dbdc2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Sorting Module
22
==============
33

4+
[![Build Status](https://travis-ci.org/1blankz7/php-sorting.svg?branch=master)](https://travis-ci.org/1blankz7/php-sorting)
5+
46
Implementation of a generic sorting system with an interface definition compatible
57
to the [Comparable RFC](https://wiki.php.net/rfc/comparable).
68

tests/Unit/SortManagerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public function itShouldCallCompareToOnOneComparable()
7070
{
7171
$comparable1 = $this->getComparable();
7272
$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);
7475

7576
$this->sortManager->sortComparable([$comparable1->reveal(), $comparable2->reveal()]);
7677
}

0 commit comments

Comments
 (0)