Skip to content

Commit 25f5083

Browse files
authored
Merge pull request #2671 from XWB/phpunit
Allow PHPUnit 6
2 parents 23eb739 + 94d1bc1 commit 25f5083

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Tests/Services/EmailEncryptionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
namespace FOS\UserBundle\Tests\Util;
1313

1414
use FOS\UserBundle\Services\EmailConfirmation\EmailEncryption;
15+
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Validator\ConstraintViolationList;
1617
use Symfony\Component\Validator\Validator\ValidatorInterface;
1718

18-
class EmailEncryptionTest extends \PHPUnit_Framework_TestCase
19+
class EmailEncryptionTest extends TestCase
1920
{
2021
/** @var ValidatorInterface */
2122
private $emailValidator;

Tests/Services/EmailUpdateConfirmationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
use FOS\UserBundle\Services\EmailConfirmation\EmailEncryption;
1717
use FOS\UserBundle\Services\EmailConfirmation\EmailUpdateConfirmation;
1818
use FOS\UserBundle\Util\TokenGenerator;
19+
use PHPUnit\Framework\TestCase;
1920
use Symfony\Component\EventDispatcher\EventDispatcher;
2021
use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
2122
use Symfony\Component\Routing\RouterInterface;
2223
use Symfony\Component\Validator\ConstraintViolationList;
2324
use Symfony\Component\Validator\Validator\ValidatorInterface;
2425

25-
class EmailUpdateConfirmationTest extends \PHPUnit_Framework_TestCase
26+
class EmailUpdateConfirmationTest extends TestCase
2627
{
2728
/** @var ExpressionFunctionProviderInterface */
2829
private $provider;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"symfony/console": "^2.8 || ^3.0 || ^4.0",
3737
"symfony/phpunit-bridge": "^2.8 || ^3.0 || ^4.0",
3838
"symfony/yaml": "^2.8 || ^3.0 || ^4.0",
39-
"phpunit/phpunit": "^4.8.35|^5.4.3"
39+
"phpunit/phpunit": "^4.8.35|^5.7.11|^6.5"
4040
},
4141
"conflict": {
4242
"doctrine/doctrine-bundle": "<1.3",

0 commit comments

Comments
 (0)