Skip to content

Commit c6a67df

Browse files
committed
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
1 parent c8cfc0d commit c6a67df

9 files changed

Lines changed: 17 additions & 9 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"minimum-stability": "stable",
2929
"require": {
3030
"php": ">=5.5.0",
31-
"phpunit/phpunit": "^4.8 || ^5.7",
31+
"phpunit/phpunit": "^4.8.35 || ^5.7",
3232
"phpunit/php-code-coverage": "^2.2 || ^4.0 || ^5.2",
3333
"squizlabs/php_codesniffer": "^2.8",
3434
"symfony/console": "^3.2",

tests/Phug/DevTool/ApplicationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Phug\Test\DevTool;
44

5+
use PHPUnit\Framework\TestCase;
56
use Phug\DevTool\Application;
67
use Symfony\Component\Console\Application as ConsoleApplication;
78
use Symfony\Component\Console\Input\StringInput;
@@ -12,7 +13,7 @@
1213
*
1314
* @coversDefaultClass \Phug\DevTool\Application
1415
*/
15-
class ApplicationTest extends \PHPUnit_Framework_TestCase
16+
class ApplicationTest extends TestCase
1617
{
1718
/**
1819
* @covers ::__construct

tests/Phug/DevTool/Command/CheckCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Phug\Test\DevTool;
44

5+
use PHPUnit\Framework\TestCase;
56
use Phug\DevTool\Application;
67
use Phug\DevTool\Command\CheckCommand;
78
use Symfony\Component\Console\Input\StringInput;
@@ -12,7 +13,7 @@
1213
*
1314
* @coversDefaultClass \Phug\DevTool\Command\CheckCommand
1415
*/
15-
class CheckCommandTest extends \PHPUnit_Framework_TestCase
16+
class CheckCommandTest extends TestCase
1617
{
1718
/**
1819
* @covers ::configure

tests/Phug/DevTool/Command/CodeStyleCheckCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Phug\Test\DevTool;
44

5+
use PHPUnit\Framework\TestCase;
56
use Phug\DevTool\Application;
67
use Phug\DevTool\Command\CodeStyleCheckCommand;
78
use Symfony\Component\Console\Input\StringInput;
@@ -12,7 +13,7 @@
1213
*
1314
* @coversDefaultClass \Phug\DevTool\Command\CodeStyleCheckCommand
1415
*/
15-
class CodeStyleCheckCommandTest extends \PHPUnit_Framework_TestCase
16+
class CodeStyleCheckCommandTest extends TestCase
1617
{
1718
/**
1819
* @covers ::configure

tests/Phug/DevTool/Command/CodeStyleFixCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
namespace Phug\Test\DevTool;
44

5+
use PHPUnit\Framework\TestCase;
56
use Phug\DevTool\Command\CodeStyleFixCommand;
67

78
/**
89
* Class CodeStyleFixCommandTest.
910
*
1011
* @coversDefaultClass \Phug\DevTool\Command\CodeStyleFixCommand
1112
*/
12-
class CodeStyleFixCommandTest extends \PHPUnit_Framework_TestCase
13+
class CodeStyleFixCommandTest extends TestCase
1314
{
1415
/**
1516
* @covers ::configure

tests/Phug/DevTool/Command/CoverageCheckCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
namespace Phug\Test\DevTool;
44

5+
use PHPUnit\Framework\TestCase;
56
use Phug\DevTool\Command\CoverageCheckCommand;
67

78
/**
89
* Class CoverageCheckCommandTest.
910
*
1011
* @coversDefaultClass \Phug\DevTool\Command\CoverageCheckCommand
1112
*/
12-
class CoverageCheckCommandTest extends \PHPUnit_Framework_TestCase
13+
class CoverageCheckCommandTest extends TestCase
1314
{
1415
/**
1516
* @covers ::configure

tests/Phug/DevTool/Command/CoverageReportCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
namespace Phug\Test\DevTool;
44

5+
use PHPUnit\Framework\TestCase;
56
use Phug\DevTool\Command\CoverageReportCommand;
67

78
/**
89
* Class CoverageReportCommandTest.
910
*
1011
* @coversDefaultClass \Phug\DevTool\Command\CoverageReportCommand
1112
*/
12-
class CoverageReportCommandTest extends \PHPUnit_Framework_TestCase
13+
class CoverageReportCommandTest extends TestCase
1314
{
1415
/**
1516
* @covers ::configure

tests/Phug/DevTool/Command/InstallCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
namespace Phug\Test\DevTool;
44

5+
use PHPUnit\Framework\TestCase;
56
use Phug\DevTool\Command\InstallCommand;
67

78
/**
89
* Class InstallCommandTest.
910
*
1011
* @coversDefaultClass \Phug\DevTool\Command\InstallCommand
1112
*/
12-
class InstallCommandTest extends \PHPUnit_Framework_TestCase
13+
class InstallCommandTest extends TestCase
1314
{
1415
/**
1516
* @covers ::configure

tests/Phug/DevTool/Command/UnitTestsRunCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Phug\Test\DevTool;
44

5+
use PHPUnit\Framework\TestCase;
56
use Phug\DevTool\Application;
67
use Phug\DevTool\Command\UnitTestsRunCommand;
78
use Symfony\Component\Console\Input\StringInput;
@@ -12,7 +13,7 @@
1213
*
1314
* @coversDefaultClass \Phug\DevTool\Command\UnitTestsRunCommand
1415
*/
15-
class UnitTestsRunCommandTest extends \PHPUnit_Framework_TestCase
16+
class UnitTestsRunCommandTest extends TestCase
1617
{
1718
private static function remove($entity)
1819
{

0 commit comments

Comments
 (0)