mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-24 07:26:53 +00:00
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:
parent
8793eb62ec
commit
ded2154d6b
@ -71,7 +71,7 @@ abstract class BridgeTest extends PHPUnit_Framework_TestCase {
|
|||||||
public function defaultTest($datas, $parameters, $minElementCount = -1) {
|
public function defaultTest($datas, $parameters, $minElementCount = -1) {
|
||||||
|
|
||||||
$this->assertNotEmpty($datas, "The bridge is returning empty datas");
|
$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) {
|
foreach($datas as $row) {
|
||||||
if(in_array(self::TEST_TITLE, $parameters)) {
|
if(in_array(self::TEST_TITLE, $parameters)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user