Skip to content

Commit

Permalink
minor #641 Using the new PHPUnit namespace (yceruto)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Using the new PHPUnit namespace

Moving on to the most recent updates.

Commits
-------

df6aa1c Using the new PHPUnit namespace
  • Loading branch information
javiereguiluz committed Sep 6, 2017
2 parents 9f43349 + df6aa1c commit 29d97f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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
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
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 29d97f8

Please sign in to comment.