Skip to content

Commit 1697132

Browse files
bug fix for new phpunit
1 parent 20b96f6 commit 1697132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use \Eventviva\ImageResize;
66

7-
if (!class_exists('PHPUnit_Framework_TestCase')) {
8-
use PHPUnit\Framework\TestCase as PHPUnit_Framework_TestCase;
7+
if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
8+
class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');
99
}
1010

1111
class ImageResizeTest extends PHPUnit_Framework_TestCase

0 commit comments

Comments
 (0)