From 83e02ebbe9918d7fa8119f1917e995fd22e6e11c Mon Sep 17 00:00:00 2001 From: bzick Date: Tue, 6 May 2014 23:26:28 +0400 Subject: [PATCH] Fix test depends of PHP version --- tests/autoload.php | 4 ++++ tests/cases/FenomTest.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/autoload.php b/tests/autoload.php index 4c0cb03..a9c83fb 100644 --- a/tests/autoload.php +++ b/tests/autoload.php @@ -34,4 +34,8 @@ function dumpt() } $e = new Exception(); echo "-------\nDump trace: \n" . $e->getTraceAsString() . "\n"; +} + +if(PHP_VERSION_ID > 50400) { + function php_gte_54() {} } \ No newline at end of file diff --git a/tests/cases/FenomTest.php b/tests/cases/FenomTest.php index d42e079..351bed9 100644 --- a/tests/cases/FenomTest.php +++ b/tests/cases/FenomTest.php @@ -261,7 +261,7 @@ class FenomTest extends \Fenom\TestCase } /** - * @requires PHP >=5.4 + * @requires function php_gte_54 * @group pipe */ public function testPipe()