|
|
9e622c |
From c5f321f171783c1b088490dcaf39b0aad5eb5c13 Mon Sep 17 00:00:00 2001
|
|
|
9e622c |
From: Remi Collet <remi@remirepo.net>
|
|
|
9e622c |
Date: Thu, 12 Oct 2017 09:35:57 +0200
|
|
|
9e622c |
Subject: [PATCH] fix Warning: count(): Parameter must be an array or an
|
|
|
9e622c |
object that implements Countable in PEAR/RunTest.php on line 346
|
|
|
9e622c |
|
|
|
9e622c |
---
|
|
|
9e622c |
PEAR/RunTest.php | 2 +-
|
|
|
9e622c |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9e622c |
|
|
|
9e622c |
diff --git a/PEAR/RunTest.php b/PEAR/RunTest.php
|
|
|
9e622c |
index 8eabac3c3..482beccb3 100644
|
|
|
9e622c |
--- a/PEAR/RunTest.php
|
|
|
9e622c |
+++ b/PEAR/RunTest.php
|
|
|
9e622c |
@@ -343,7 +343,7 @@ function run($file, $ini_settings = array(), $test_number = 1)
|
|
|
9e622c |
|
|
|
9e622c |
// Check if test should be skipped.
|
|
|
9e622c |
$res = $this->_runSkipIf($section_text, $temp_skipif, $tested, $ini_settings);
|
|
|
9e622c |
- if (count($res) != 2) {
|
|
|
9e622c |
+ if ($res == 'SKIPPED' || count($res) != 2) {
|
|
|
9e622c |
return $res;
|
|
|
9e622c |
}
|
|
|
9e622c |
$info = $res['info'];
|