|
|
@@ -14,6 +14,15 @@
|
|
|
*/
|
|
|
namespace Cake\TestSuite\Fixture;
|
|
|
|
|
|
+if (class_exists('PHPUnit_Runner_Version')) {
|
|
|
+ class_alias('PHPUnit_Framework_Test', 'PHPUnit\Framework\Test');
|
|
|
+ if (!class_exists('PHPUnit\Framework\TestSuite')) {
|
|
|
+ class_alias('PHPUnit_Framework_TestSuite', 'PHPUnit\Framework\TestSuite');
|
|
|
+ }
|
|
|
+ class_alias('PHPUnit_Framework_Error_Warning', 'PHPUnit\Framework\Error\Warning');
|
|
|
+ class_alias('PHPUnit_Framework_AssertionFailedError', 'PHPUnit\Framework\AssertionFailedError');
|
|
|
+}
|
|
|
+
|
|
|
use Cake\TestSuite\TestCase;
|
|
|
use Exception;
|
|
|
use PHPUnit\Framework\AssertionFailedError;
|