From 62cc0c0e2a7863096c7004627c4b59ff6ac97c7e Mon Sep 17 00:00:00 2001 From: uwetews Date: Fri, 14 Apr 2017 02:25:56 +0200 Subject: [PATCH] Update for PHPunit >= 5 --- tests/Bootstrap.php | 3 +++ tests/composer.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index efb3723d..b5732256 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -32,6 +32,9 @@ if (!class_exists('PHPUnit_Framework_TestCase') && !class_exists('\PHPUnit\Frame if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) { class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase'); } +if (!class_exists('\PHPUnit_Framework_Error') && class_exists('\PHPUnit\Framework\Error')) { + class_alias('\PHPUnit\Framework\Error', '\PHPUnit_Framework_Error'); +} require_once 'PHPUnit_Smarty.php'; if (!ini_get('date.timezone')) { ini_set('date.timezone', 'Europe/Berlin'); diff --git a/tests/composer.json b/tests/composer.json index 9821b715..2a22df0f 100644 --- a/tests/composer.json +++ b/tests/composer.json @@ -25,8 +25,8 @@ "forum": "http://www.smarty.net/forums/" }, "require": { - "phpunit/phpunit": "~5.7", - "php": ">=5.3" + "phpunit/phpunit": "4.6.6", + "php": ">=5.2" }, "autoload": { "classmap": [