From ce620395849e14d6bdcb7056b499e473685ae7d6 Mon Sep 17 00:00:00 2001 From: Christopher CHEN Date: Mon, 22 May 2017 13:27:51 +0800 Subject: [PATCH 1/2] test: fix phpunit 6 compatibility issue close #41 --- tests/Bootstrap.php | 6 ++++++ tests/phpunit.xml.dist | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index daeaf18a..3bf0e162 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -1,2 +1,8 @@ - .. + ../src ../vendor/ From 7cc477e514482f4826500a79f14429c7226cdcc3 Mon Sep 17 00:00:00 2001 From: Christopher CHEN Date: Mon, 22 May 2017 13:44:51 +0800 Subject: [PATCH 2/2] test: fix backward compatibility breaking for php < 5.5 PHP Parse error: syntax error, unexpected 'class' (T_CLASS) http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class ``` ::class Since PHP 5.5, the class keyword is also used for class name resolution. ``` --- tests/Bootstrap.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index 3bf0e162..603df99d 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -1,8 +1,9 @@