From ded2154d6b053a48af4452196b6777308dc729ac Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 2 Aug 2016 10:32:32 +0200 Subject: [PATCH] Fix incorrect assertion logic for minElementCount The assertion must not fail if the actual count exactly matches the given minElementCount. --- lib/Tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Tests.php b/lib/Tests.php index 29b879fd..8d17d3be 100644 --- a/lib/Tests.php +++ b/lib/Tests.php @@ -71,7 +71,7 @@ abstract class BridgeTest extends PHPUnit_Framework_TestCase { public function defaultTest($datas, $parameters, $minElementCount = -1) { $this->assertNotEmpty($datas, "The bridge is returning empty datas"); - $this->assertGreaterThan($minElementCount, count($datas), "There is not enough elements in the bridge"); + $this->assertGreaterThanOrEqual($minElementCount, count($datas), "There is not enough elements in the bridge"); foreach($datas as $row) { if(in_array(self::TEST_TITLE, $parameters)) {