Fix incorrect assertion logic for minElementCount

The assertion must not fail if the actual count exactly matches the given
minElementCount.
This commit is contained in:
logmanoriginal 2016-08-02 10:32:32 +02:00
parent 8793eb62ec
commit ded2154d6b

View File

@ -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)) {