Skip to content

Commit

Permalink
Using the new PHPUnit namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Sep 4, 2017
1 parent f4a58f5 commit df6aa1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
use App\Form\DataTransformer\TagArrayToStringTransformer;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\EntityRepository;
use PHPUnit\Framework\TestCase;

/**
* Tests that tags are transformed correctly using the data transformer.
*
* See https://symfony.com/doc/current/testing/database.html
*/
class TagArrayToStringTransformerTest extends \PHPUnit\Framework\TestCase
class TagArrayToStringTransformerTest extends TestCase
{
/**
* Ensures that tags are created correctly.
Expand Down
3 changes: 2 additions & 1 deletion tests/Utils/SluggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace App\Tests\Utils;

use App\Utils\Slugger;
use PHPUnit\Framework\TestCase;

/**
* Unit test for the application utils.
Expand All @@ -23,7 +24,7 @@
* $ cd your-symfony-project/
* $ ./vendor/bin/phpunit
*/
class SluggerTest extends \PHPUnit_Framework_TestCase
class SluggerTest extends TestCase
{
/**
* @dataProvider getSlugs
Expand Down
3 changes: 2 additions & 1 deletion tests/Utils/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
namespace App\Tests\Utils;

use App\Utils\Validator;
use PHPUnit\Framework\TestCase;

class ValidatorTest extends \PHPUnit_Framework_TestCase
class ValidatorTest extends TestCase
{
private $object;

Expand Down

0 comments on commit df6aa1c

Please sign in to comment.