File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 55 "require" : {
66 "php" : " ^5.0 || ^7.0"
77 },
8+ "require-dev" : {
9+ "phpunit/phpunit" : " ~4.8|~5.7"
10+ },
811 "autoload" : {
912 "psr-0" : {
1013 "violuke\\ Barcodes" : " src"
Original file line number Diff line number Diff line change 55use violuke \Barcodes \BarcodeValidator ;
66
77// 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 {}
8+ if (!class_exists ('\ PHPUnit_Framework_TestCase' ) && class_exists ( ' \PHPUnit\Framework\TestCase ' )) {
9+ class_alias ( ' \PHPUnit\Framework\TestCase ' , ' \PHPUnit_Framework_TestCase ' );
1010}
1111
1212class BarcodeValidatorTest extends \PHPUnit_Framework_TestCase
You can’t perform that action at this time.
0 commit comments