Skip to content

Commit

Permalink
Merge pull request #191 from carusogabriel/phpunit
Browse files Browse the repository at this point in the history
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
  • Loading branch information
Albin Kerouanton authored Dec 6, 2017
2 parents 868a1ac + dd345e4 commit f7c2541
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Knp\Bundle\SnappyBundle\DependencyInjection;

use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Definition\Processor;

class ConfigurationTest extends \PHPUnit_Framework_TestCase
class ConfigurationTest extends TestCase
{
/**
* @dataProvider dataForProcessedConfiguration
Expand Down
3 changes: 2 additions & 1 deletion Tests/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Knp\Bundle\SnappyBundle\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Component\Filesystem\Filesystem;

class FunctionalTest extends \PHPUnit_Framework_TestCase
class FunctionalTest extends TestCase
{
/** @var TestKernel */
private $kernel;
Expand Down
3 changes: 2 additions & 1 deletion Tests/Snappy/Generator/LoggableGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Knp\Bundle\SnappyBundle\Tests\Snappy;

use Knp\Bundle\SnappyBundle\Snappy\Generator\LoggableGenerator;
use PHPUnit\Framework\TestCase;

/**
* @group legacy
*/
class LoggableGeneratorTest extends \PHPUnit_Framework_TestCase
class LoggableGeneratorTest extends TestCase
{
public function testGenerate()
{
Expand Down
3 changes: 2 additions & 1 deletion Tests/Snappy/Response/JpegResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Knp\Bundle\SnappyBundle\Tests\Snappy;

use Knp\Bundle\SnappyBundle\Snappy\Response\JpegResponse;
use PHPUnit\Framework\TestCase;

class JpegResponseTest extends \PHPUnit_Framework_TestCase
class JpegResponseTest extends TestCase
{
public function testDefaultParameters()
{
Expand Down
3 changes: 2 additions & 1 deletion Tests/Snappy/Response/PdfResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Knp\Bundle\SnappyBundle\Tests\Snappy;

use Knp\Bundle\SnappyBundle\Snappy\Response\PdfResponse;
use PHPUnit\Framework\TestCase;

class PdfResponseTest extends \PHPUnit_Framework_TestCase
class PdfResponseTest extends TestCase
{
public function testDefaultParameters()
{
Expand Down
3 changes: 2 additions & 1 deletion Tests/Snappy/Response/SnappyResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Knp\Bundle\SnappyBundle\Tests\Snappy;

use Knp\Bundle\SnappyBundle\Snappy\Response\SnappyResponse;
use PHPUnit\Framework\TestCase;

class SnappyResponseTest extends \PHPUnit_Framework_TestCase
class SnappyResponseTest extends TestCase
{
public function testExceptionMessage()
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"require-dev": {
"doctrine/annotations": "~1.0",
"phpunit/phpunit": "~4.5",
"phpunit/phpunit": "~4.8.35",
"symfony/asset": "~2.7|~3.0|^4.0",
"symfony/finder": "~2.7|~3.0|^4.0",
"symfony/security-csrf": "~2.7|~3.0|^4.0",
Expand Down

0 comments on commit f7c2541

Please sign in to comment.