File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
SymfonyBundle/DependencyInjection/Compiler Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3232 "symfony/monolog-bundle" : " For logging messages"
3333 },
3434 "require-dev" : {
35- "phpunit/phpunit" : " ~4.0 || ~5 .0" ,
35+ "phpunit/phpunit" : " ^5.7 || ^6 .0" ,
3636 "simple-bus/doctrine-orm-bridge" : " ~5.0" ,
3737 "doctrine/orm" : " ~2.3" ,
3838 "doctrine/doctrine-bundle" : " ~1.0" ,
Original file line number Diff line number Diff line change 1010use Symfony \Component \DependencyInjection \Definition ;
1111use Symfony \Component \HttpKernel \Kernel ;
1212
13- class ConfigureMiddlewaresTest extends \PHPUnit_Framework_TestCase
13+ class ConfigureMiddlewaresTest extends \PHPUnit \ Framework \TestCase
1414{
1515 /**
1616 * @var ContainerBuilder
Original file line number Diff line number Diff line change 55require __DIR__ . '/../vendor/autoload.php ' ;
66
77AnnotationRegistry::registerLoader ('class_exists ' );
8+
9+ // Polyfill PHPUnit 6.0 both ways
10+ if (!class_exists ('\PHPUnit\Framework\TestCase ' , true )) {
11+ class_alias ('\PHPUnit_Framework_TestCase ' , '\PHPUnit\Framework\TestCase ' );
12+ } elseif (!class_exists ('\PHPUnit_Framework_TestCase ' , true )) {
13+ class_alias ('\PHPUnit\Framework\TestCase ' , '\PHPUnit_Framework_TestCase ' );
14+ }
You can’t perform that action at this time.
0 commit comments