]> git.mxchange.org Git - friendica.git/commitdiff
phpunit compat 5.6 vs 7.x
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 23 Apr 2018 06:42:13 +0000 (08:42 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 23 Apr 2018 06:42:13 +0000 (08:42 +0200)
tests/BaseObjectTest.php

index 73eb4720ba6c1cd0656f84db60518714adca8484..f56093b89deb2653f16fcc4d9b07f2320ed68bc0 100644 (file)
@@ -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
 {
 
        /**