We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c66426 commit 4ccd10bCopy full SHA for 4ccd10b
2 files changed
composer.json
@@ -5,6 +5,9 @@
5
"require": {
6
"php": "^5.0 || ^7.0"
7
},
8
+ "require-dev": {
9
+ "phpunit/phpunit": "~4.8|~5.7"
10
+ },
11
"autoload": {
12
"psr-0" : {
13
"violuke\\Barcodes" : "src"
tests/BarcodeValidatorTest.php
@@ -5,8 +5,8 @@
use violuke\Barcodes\BarcodeValidator;
// Nasty work around for testing over multiple PHPUnit versions
-if (!class_exists('PHPUnit_Framework_TestCase')) {
- class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {}
+if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
+ class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
}
class BarcodeValidatorTest extends \PHPUnit_Framework_TestCase
0 commit comments