From: Tobias Diekershoff Date: Mon, 23 Apr 2018 06:42:13 +0000 (+0200) Subject: phpunit compat 5.6 vs 7.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a58637ace303153885b952d474965814eafb22c;p=friendica.git phpunit compat 5.6 vs 7.x --- diff --git a/tests/BaseObjectTest.php b/tests/BaseObjectTest.php index 73eb4720ba..f56093b89d 100644 --- a/tests/BaseObjectTest.php +++ b/tests/BaseObjectTest.php @@ -7,12 +7,15 @@ namespace Friendica\Test; use Friendica\App; use Friendica\BaseObject; -use PHPUnit_Framework_TestCase; - +// backward compatibility +if (!class_exists('\PHPUnit\Framework\TestCase')) { + class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase'); +} +use \PHPUnit_Framework_TestCase; /** * Tests for the BaseObject class. */ -class BaseObjectTest extends PHPUnit_Framework_TestCase +class BaseObjectTest extends \PHPUnit\Framework\TestCase { /**