Skip to content

Commit d78e19f

Browse files
authored
Merge pull request #218 from gabriel-caruso/phpunit
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
2 parents a9e5063 + 7579a46 commit d78e19f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Tests/Command/DoctrineCommandTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
use Doctrine\DBAL\Migrations\Configuration\Configuration;
77
use Symfony\Component\DependencyInjection\ContainerBuilder;
88
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
9+
use PHPUnit\Framework\TestCase;
910

10-
class DoctrineCommandTest extends \PHPUnit\Framework\TestCase
11+
class DoctrineCommandTest extends TestCase
1112
{
1213
public function testConfigureMigrations()
1314
{
@@ -29,6 +30,7 @@ private function getContainer()
2930
'doctrine_migrations.name' => 'test',
3031
'doctrine_migrations.table_name' => 'test',
3132
'doctrine_migrations.organize_migrations' => Configuration::VERSIONS_ORGANIZATION_BY_YEAR,
33+
'doctrine_migrations.custom_template' => null,
3234
)));
3335
}
3436
}

Tests/DependencyInjection/DoctrineMigrationsExtensionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
use Doctrine\DBAL\Migrations\Configuration\Configuration;
77
use Symfony\Component\DependencyInjection\ContainerBuilder;
88
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
9+
use PHPUnit\Framework\TestCase;
910

10-
class DoctrineMigrationsExtensionTest extends \PHPUnit_Framework_TestCase
11+
class DoctrineMigrationsExtensionTest extends TestCase
1112
{
1213
public function testOrganizeMigrations()
1314
{

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"doctrine/migrations": "^1.1"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^4.8.36"
29+
"phpunit/phpunit": "^4.8.36|^5.7|^6.4"
3030
},
3131
"autoload": {
3232
"psr-4": { "Doctrine\\Bundle\\MigrationsBundle\\": "" }

0 commit comments

Comments
 (0)