From 519ad85fad1338f6d802d8323b3d23393b9489ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Liljenga=CC=8Ard?= Date: Tue, 24 May 2016 15:58:39 +0200 Subject: [PATCH] Added a few more assertions to RankSorterTest --- tests/RankSorterTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/RankSorterTest.php b/tests/RankSorterTest.php index d867dfa..06b1c67 100644 --- a/tests/RankSorterTest.php +++ b/tests/RankSorterTest.php @@ -19,5 +19,15 @@ class RankSorterTest extends TestCase $this->assertEquals($team2, $sortedRanks[0]); $this->assertEquals($team3, $sortedRanks[1]); $this->assertEquals($team1, $sortedRanks[2]); + + // Since we are also using a return + $this->assertEquals($team2, $teams[0]); + $this->assertEquals($team3, $teams[1]); + $this->assertEquals($team1, $teams[2]); + + // Since we're passing a reference, but also get a return + $this->assertEquals($teams[0], $sortedRanks[0]); + $this->assertEquals($teams[1], $sortedRanks[1]); + $this->assertEquals($teams[2], $sortedRanks[2]); } } \ No newline at end of file