Skip to content

Commit 0c66426

Browse files
committed
Nasty work around for testing over multiple PHPUnit versions
1 parent ad8af05 commit 0c66426

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/BarcodeValidatorTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
use violuke\Barcodes\BarcodeValidator;
66

7-
class BarcodeValidatorTest extends \PHPUnit\Framework\TestCase
7+
// Nasty work around for testing over multiple PHPUnit versions
8+
if (!class_exists('PHPUnit_Framework_TestCase')) {
9+
class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {}
10+
}
11+
12+
class BarcodeValidatorTest extends \PHPUnit_Framework_TestCase
813
{
914

1015
public function testInit()

0 commit comments

Comments
 (0)