Skip to content

Commit df6aa1c

Browse files
committed
Using the new PHPUnit namespace
1 parent f4a58f5 commit df6aa1c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

tests/Form/DataTransformer/TagArrayToStringTransformerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
use App\Form\DataTransformer\TagArrayToStringTransformer;
1616
use Doctrine\Common\Persistence\ObjectManager;
1717
use Doctrine\ORM\EntityRepository;
18+
use PHPUnit\Framework\TestCase;
1819

1920
/**
2021
* Tests that tags are transformed correctly using the data transformer.
2122
*
2223
* See https://symfony.com/doc/current/testing/database.html
2324
*/
24-
class TagArrayToStringTransformerTest extends \PHPUnit\Framework\TestCase
25+
class TagArrayToStringTransformerTest extends TestCase
2526
{
2627
/**
2728
* Ensures that tags are created correctly.

tests/Utils/SluggerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace App\Tests\Utils;
1313

1414
use App\Utils\Slugger;
15+
use PHPUnit\Framework\TestCase;
1516

1617
/**
1718
* Unit test for the application utils.
@@ -23,7 +24,7 @@
2324
* $ cd your-symfony-project/
2425
* $ ./vendor/bin/phpunit
2526
*/
26-
class SluggerTest extends \PHPUnit_Framework_TestCase
27+
class SluggerTest extends TestCase
2728
{
2829
/**
2930
* @dataProvider getSlugs

tests/Utils/ValidatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
namespace App\Tests\Utils;
1313

1414
use App\Utils\Validator;
15+
use PHPUnit\Framework\TestCase;
1516

16-
class ValidatorTest extends \PHPUnit_Framework_TestCase
17+
class ValidatorTest extends TestCase
1718
{
1819
private $object;
1920

0 commit comments

Comments
 (0)