[php-theseer-autoload/el6] skip trait test with php 5.3
Remi Collet
remi at fedoraproject.org
Tue Apr 22 16:28:32 UTC 2014
commit 2521329c89edbe6965f5d1a1ad5bda20736d5681
Author: Remi Collet <remi at fedoraproject.org>
Date: Tue Apr 22 18:28:18 2014 +0200
skip trait test with php 5.3
php-theseer-autoload.spec | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/php-theseer-autoload.spec b/php-theseer-autoload.spec
index a711550..753e4d7 100644
--- a/php-theseer-autoload.spec
+++ b/php-theseer-autoload.spec
@@ -87,6 +87,13 @@ require 'TheSeer/DirectoryScanner/autoload.php';
require 'TheSeer/Autoload/autoload.php';
EOF
+%if "%{php_version}" < "5.4"
+# https://github.com/theseer/Autoload/issues/47
+sed -e 's/function \(testParse.*Trait\)/function SKIP_\1/' \
+ -i tests/classfinder.test.php
+grep Trait tests/classfinder.test.php
+%endif
+
phpunit \
--include-path=%{buildroot}%{pear_phpdir} \
-d date.timezone=UTC
More information about the scm-commits
mailing list