diff --git a/composer.json b/composer.json index c88ca4563c73..84a4a763f4d4 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,9 @@ "twig/twig": "~1.28|~2.0", "psr/log": "~1.0" }, + "conflict": { + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" + }, "replace": { "symfony/asset": "self.version", "symfony/browser-kit": "self.version", diff --git a/phpunit b/phpunit index 1e79197e316d..07c45b759d88 100755 --- a/phpunit +++ b/phpunit @@ -1,7 +1,7 @@ #!/usr/bin/env php */ -class DoctrineExtensionTest extends \PHPUnit_Framework_TestCase +class DoctrineExtensionTest extends TestCase { /** * @var \Symfony\Bridge\Doctrine\DependencyInjection\AbstractDoctrineExtension diff --git a/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php b/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php index 283c65ee4d13..567b5a240c30 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php @@ -14,6 +14,7 @@ @trigger_error('The '.__NAMESPACE__.'\DoctrineOrmTestCase class is deprecated since version 2.4 and will be removed in 3.0. Use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper class instead.', E_USER_DEPRECATED); use Doctrine\ORM\EntityManager; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper; /** @@ -22,7 +23,7 @@ * @deprecated since version 2.4, to be removed in 3.0. * Use {@link DoctrineTestHelper} instead. */ -abstract class DoctrineOrmTestCase extends \PHPUnit_Framework_TestCase +abstract class DoctrineOrmTestCase extends TestCase { /** * @return EntityManager diff --git a/src/Symfony/Bridge/Doctrine/Tests/ExpressionLanguage/DoctrineParserCacheTest.php b/src/Symfony/Bridge/Doctrine/Tests/ExpressionLanguage/DoctrineParserCacheTest.php index e3d48a703062..d7abe2c75a54 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/ExpressionLanguage/DoctrineParserCacheTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/ExpressionLanguage/DoctrineParserCacheTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Doctrine\Tests\ExpressionLanguage; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\ExpressionLanguage\DoctrineParserCache; -class DoctrineParserCacheTest extends \PHPUnit_Framework_TestCase +class DoctrineParserCacheTest extends TestCase { public function testFetch() { diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/DoctrineChoiceLoaderTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/DoctrineChoiceLoaderTest.php index 98583b3bb13b..5999e8e58100 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/DoctrineChoiceLoaderTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/DoctrineChoiceLoaderTest.php @@ -14,6 +14,7 @@ use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Common\Persistence\ObjectRepository; use Doctrine\ORM\Mapping\ClassMetadata; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader; use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityLoaderInterface; use Symfony\Bridge\Doctrine\Form\ChoiceList\IdReader; @@ -23,7 +24,7 @@ /** * @author Bernhard Schussek */ -class DoctrineChoiceLoaderTest extends \PHPUnit_Framework_TestCase +class DoctrineChoiceLoaderTest extends TestCase { /** * @var ChoiceListFactoryInterface|\PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php index f4530091fbb0..c976121f684b 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php @@ -16,13 +16,14 @@ use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity; use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdNoToStringEntity; use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList; +use Symfony\Bundle\FrameworkBundle\Tests\TestCase; use Symfony\Component\Form\Extension\Core\View\ChoiceView; use Doctrine\ORM\Tools\SchemaTool; /** * @group legacy */ -class GenericEntityChoiceListTest extends \PHPUnit_Framework_TestCase +class GenericEntityChoiceListTest extends TestCase { const SINGLE_INT_ID_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity'; diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php index 1f07b8e465db..b14044fb2480 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader; use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper; use Doctrine\DBAL\Connection; use Doctrine\ORM\Version; -class ORMQueryBuilderLoaderTest extends \PHPUnit_Framework_TestCase +class ORMQueryBuilderLoaderTest extends TestCase { /** * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php index 50b9bcd19e17..fa3ff911ad35 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php @@ -12,12 +12,13 @@ namespace Symfony\Bridge\Doctrine\Tests\Form\DataTransformer; use Doctrine\Common\Collections\ArrayCollection; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\Form\DataTransformer\CollectionToArrayTransformer; /** * @author Bernhard Schussek */ -class CollectionToArrayTransformerTest extends \PHPUnit_Framework_TestCase +class CollectionToArrayTransformerTest extends TestCase { /** * @var CollectionToArrayTransformer diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php index f6b96bb2005e..12296729e2d8 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php @@ -12,11 +12,12 @@ namespace Symfony\Bridge\Doctrine\Tests\Form; use Doctrine\Common\Persistence\Mapping\ClassMetadata; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser; use Symfony\Component\Form\Guess\Guess; use Symfony\Component\Form\Guess\ValueGuess; -class DoctrineOrmTypeGuesserTest extends \PHPUnit_Framework_TestCase +class DoctrineOrmTypeGuesserTest extends TestCase { /** * @dataProvider requiredProvider diff --git a/src/Symfony/Bridge/Doctrine/Tests/HttpFoundation/DbalSessionHandlerTest.php b/src/Symfony/Bridge/Doctrine/Tests/HttpFoundation/DbalSessionHandlerTest.php index 4f82bc37bbb7..89ac999f2030 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/HttpFoundation/DbalSessionHandlerTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/HttpFoundation/DbalSessionHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\Doctrine\Tests\HttpFoundation; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionHandler; /** @@ -18,7 +19,7 @@ * * @author Drak */ -class DbalSessionHandlerTest extends \PHPUnit_Framework_TestCase +class DbalSessionHandlerTest extends TestCase { public function testConstruct() { diff --git a/src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php b/src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php index 42f56b0ca83c..5a627dc23155 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Doctrine\Tests\Logger; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\Logger\DbalLogger; -class DbalLoggerTest extends \PHPUnit_Framework_TestCase +class DbalLoggerTest extends TestCase { /** * @dataProvider getLogFixtures diff --git a/src/Symfony/Bridge/Doctrine/Tests/Security/User/EntityUserProviderTest.php b/src/Symfony/Bridge/Doctrine/Tests/Security/User/EntityUserProviderTest.php index cdc553b2f05b..ef920a1fe097 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Security/User/EntityUserProviderTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Security/User/EntityUserProviderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bridge\Doctrine\Tests\Security\User; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper; use Symfony\Bridge\Doctrine\Tests\Fixtures\User; use Symfony\Bridge\Doctrine\Security\User\EntityUserProvider; use Doctrine\ORM\Tools\SchemaTool; -class EntityUserProviderTest extends \PHPUnit_Framework_TestCase +class EntityUserProviderTest extends TestCase { public function testRefreshUserGetsUserByPrimaryKey() { diff --git a/src/Symfony/Bridge/Monolog/Tests/Handler/ConsoleHandlerTest.php b/src/Symfony/Bridge/Monolog/Tests/Handler/ConsoleHandlerTest.php index b8efa6fcf959..28dd736f9ec3 100644 --- a/src/Symfony/Bridge/Monolog/Tests/Handler/ConsoleHandlerTest.php +++ b/src/Symfony/Bridge/Monolog/Tests/Handler/ConsoleHandlerTest.php @@ -12,6 +12,7 @@ namespace Symfony\Bridge\Monolog\Tests\Handler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Monolog\Handler\ConsoleHandler; use Symfony\Component\Console\ConsoleEvents; use Symfony\Component\Console\Event\ConsoleCommandEvent; @@ -26,7 +27,7 @@ * * @author Tobias Schultze */ -class ConsoleHandlerTest extends \PHPUnit_Framework_TestCase +class ConsoleHandlerTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Bridge/Monolog/Tests/Handler/FingersCrossed/NotFoundActivationStrategyTest.php b/src/Symfony/Bridge/Monolog/Tests/Handler/FingersCrossed/NotFoundActivationStrategyTest.php index 48bddc99a5ee..3c34f065eb03 100644 --- a/src/Symfony/Bridge/Monolog/Tests/Handler/FingersCrossed/NotFoundActivationStrategyTest.php +++ b/src/Symfony/Bridge/Monolog/Tests/Handler/FingersCrossed/NotFoundActivationStrategyTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bridge\Monolog\Tests\Handler\FingersCrossed; +use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpKernel\Exception\HttpException; -use Monolog\Logger; -class NotFoundActivationStrategyTest extends \PHPUnit_Framework_TestCase +class NotFoundActivationStrategyTest extends TestCase { /** * @dataProvider isActivatedProvider diff --git a/src/Symfony/Bridge/Monolog/Tests/LoggerTest.php b/src/Symfony/Bridge/Monolog/Tests/LoggerTest.php index 3d3c74cb73df..fbf5579e340c 100644 --- a/src/Symfony/Bridge/Monolog/Tests/LoggerTest.php +++ b/src/Symfony/Bridge/Monolog/Tests/LoggerTest.php @@ -3,10 +3,11 @@ namespace Symfony\Bridge\Monolog\Tests; use Monolog\Handler\TestHandler; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Monolog\Handler\DebugHandler; use Symfony\Bridge\Monolog\Logger; -class LoggerTest extends \PHPUnit_Framework_TestCase +class LoggerTest extends TestCase { /** * @group legacy diff --git a/src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php b/src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php index 143f63b5371b..51bddd1d9828 100644 --- a/src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php +++ b/src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php @@ -12,10 +12,11 @@ namespace Symfony\Bridge\Monolog\Tests\Processor; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Monolog\Processor\WebProcessor; use Symfony\Component\HttpFoundation\Request; -class WebProcessorTest extends \PHPUnit_Framework_TestCase +class WebProcessorTest extends TestCase { public function testUsesRequestServerData() { diff --git a/src/Symfony/Bridge/PhpUnit/composer.json b/src/Symfony/Bridge/PhpUnit/composer.json index 39eb9ef2180f..8f818d02db26 100644 --- a/src/Symfony/Bridge/PhpUnit/composer.json +++ b/src/Symfony/Bridge/PhpUnit/composer.json @@ -23,6 +23,9 @@ "suggest": { "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" }, + "conflict": { + "phpunit/phpunit": ">=6.0" + }, "autoload": { "files": [ "bootstrap.php" ], "psr-4": { "Symfony\\Bridge\\PhpUnit\\": "" }, diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php index 3f3c577b846d..b634a69488a3 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php @@ -13,6 +13,7 @@ require_once __DIR__.'/Fixtures/includes/foo.php'; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -22,7 +23,7 @@ * * @author Marco Pivetta */ -class ContainerBuilderTest extends \PHPUnit_Framework_TestCase +class ContainerBuilderTest extends TestCase { public function testCreateProxyServiceWithRuntimeInstantiator() { diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php index 5e451c122f3c..d6f3d0d2e839 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Dumper\PhpDumper; @@ -21,7 +22,7 @@ * * @author Marco Pivetta */ -class PhpDumperTest extends \PHPUnit_Framework_TestCase +class PhpDumperTest extends TestCase { public function testDumpContainerWithProxyService() { diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php index 12bef7b72dc0..e58b7d635616 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy\Instantiator; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator; use Symfony\Component\DependencyInjection\Definition; @@ -19,7 +20,7 @@ * * @author Marco Pivetta */ -class RuntimeInstantiatorTest extends \PHPUnit_Framework_TestCase +class RuntimeInstantiatorTest extends TestCase { /** * @var RuntimeInstantiator diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php index 6d86bd24d2d1..838c33a8368b 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy\PhpDumper; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper; use Symfony\Component\DependencyInjection\Definition; @@ -19,7 +20,7 @@ * * @author Marco Pivetta */ -class ProxyDumperTest extends \PHPUnit_Framework_TestCase +class ProxyDumperTest extends TestCase { /** * @var ProxyDumper diff --git a/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php b/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php index 92ed4600bae1..9abb0e3b6ea7 100644 --- a/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php +++ b/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php @@ -2,11 +2,12 @@ namespace Symfony\Bridge\Twig\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\AppVariable; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Session\Session; -class AppVariableTest extends \PHPUnit_Framework_TestCase +class AppVariableTest extends TestCase { /** * @var AppVariable diff --git a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php index 56c03574b6ee..9a5c33a528a3 100644 --- a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bridge\Twig\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Command\LintCommand; use Symfony\Component\Console\Application; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Tester\CommandTester; -class LintCommandTest extends \PHPUnit_Framework_TestCase +class LintCommandTest extends TestCase { private $files; diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/AssetExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/AssetExtensionTest.php index 474d8c33956b..ba04fd4b7cf8 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/AssetExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/AssetExtensionTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\AssetExtension; use Symfony\Component\Asset\Package; use Symfony\Component\Asset\Packages; @@ -18,7 +19,7 @@ use Symfony\Component\Asset\VersionStrategy\EmptyVersionStrategy; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; -class AssetExtensionTest extends \PHPUnit_Framework_TestCase +class AssetExtensionTest extends TestCase { /** * @group legacy diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php index 5e4a9a307982..64bebd709692 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\CodeExtension; -class CodeExtensionTest extends \PHPUnit_Framework_TestCase +class CodeExtensionTest extends TestCase { protected $helper; diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php index 604b0caaecc8..312fda1d7106 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\DumpExtension; use Symfony\Component\VarDumper\VarDumper; use Symfony\Component\VarDumper\Cloner\VarCloner; -class DumpExtensionTest extends \PHPUnit_Framework_TestCase +class DumpExtensionTest extends TestCase { /** * @dataProvider getDumpTags diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php index 6d457e395b07..597dfc75f416 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\ExpressionExtension; -class ExpressionExtensionTest extends \PHPUnit_Framework_TestCase +class ExpressionExtensionTest extends TestCase { protected $helper; diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php index 339d43d7c6bd..8f0c66ad78bb 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\HttpFoundationExtension; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\RequestContext; -class HttpFoundationExtensionTest extends \PHPUnit_Framework_TestCase +class HttpFoundationExtensionTest extends TestCase { /** * @dataProvider getGenerateAbsoluteUrlData() diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php index 979dae3b0d80..685b250559cd 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\HttpKernelExtension; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Fragment\FragmentHandler; -class HttpKernelExtensionTest extends \PHPUnit_Framework_TestCase +class HttpKernelExtensionTest extends TestCase { /** * @expectedException \Twig_Error_Runtime diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php index 9f06b50ba051..5fa4e9cd36b1 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\RoutingExtension; -class RoutingExtensionTest extends \PHPUnit_Framework_TestCase +class RoutingExtensionTest extends TestCase { /** * @dataProvider getEscapingTemplates diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php index 2ea111b0baac..86a4fcbe3226 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\StopwatchExtension; -class StopwatchExtensionTest extends \PHPUnit_Framework_TestCase +class StopwatchExtensionTest extends TestCase { /** * @expectedException \Twig_Error_Syntax diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php index e96bd4f9a3be..446697d3dd8b 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bridge\Twig\Tests\Extension; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\TranslationExtension; use Symfony\Component\Translation\Translator; use Symfony\Component\Translation\MessageSelector; use Symfony\Component\Translation\Loader\ArrayLoader; -class TranslationExtensionTest extends \PHPUnit_Framework_TestCase +class TranslationExtensionTest extends TestCase { public function testEscaping() { diff --git a/src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php index 8d3ede471c50..93c8433c2894 100644 --- a/src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\Node; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Node\DumpNode; -class DumpNodeTest extends \PHPUnit_Framework_TestCase +class DumpNodeTest extends TestCase { public function testNoVar() { diff --git a/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php index 02732f1932e8..420235559474 100644 --- a/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\Node; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Node\FormThemeNode; -class FormThemeTest extends \PHPUnit_Framework_TestCase +class FormThemeTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php index 408b7cfd145d..69b987e83297 100644 --- a/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\Node; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode; -class SearchAndRenderBlockNodeTest extends \PHPUnit_Framework_TestCase +class SearchAndRenderBlockNodeTest extends TestCase { public function testCompileWidget() { diff --git a/src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php index b1980b8a3772..683d47af27ae 100644 --- a/src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bridge\Twig\Tests\Node; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Node\TransNode; /** * @author Asmir Mustafic */ -class TransNodeTest extends \PHPUnit_Framework_TestCase +class TransNodeTest extends TestCase { public function testCompileStrict() { diff --git a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php index aa9d204e5606..fad0e1f82976 100644 --- a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\NodeVisitor; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\NodeVisitor\Scope; -class ScopeTest extends \PHPUnit_Framework_TestCase +class ScopeTest extends TestCase { public function testScopeInitiation() { diff --git a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php index 86dc25266c72..da9f43a6c4e0 100644 --- a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php +++ b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bridge\Twig\Tests\NodeVisitor; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\NodeVisitor\TranslationDefaultDomainNodeVisitor; use Symfony\Bridge\Twig\NodeVisitor\TranslationNodeVisitor; -class TranslationDefaultDomainNodeVisitorTest extends \PHPUnit_Framework_TestCase +class TranslationDefaultDomainNodeVisitorTest extends TestCase { private static $message = 'message'; private static $domain = 'domain'; diff --git a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php index 571b5bba3174..d12fff532aaa 100644 --- a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php +++ b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bridge\Twig\Tests\NodeVisitor; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\NodeVisitor\TranslationNodeVisitor; -class TranslationNodeVisitorTest extends \PHPUnit_Framework_TestCase +class TranslationNodeVisitorTest extends TestCase { /** @dataProvider getMessagesExtractionTestData */ public function testMessagesExtraction(\Twig_Node $node, array $expectedMessages) diff --git a/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php b/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php index 6dea9fd69370..8931be061f9d 100644 --- a/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php +++ b/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bridge\Twig\Tests\TokenParser; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\TokenParser\FormThemeTokenParser; use Symfony\Bridge\Twig\Node\FormThemeNode; -class FormThemeTokenParserTest extends \PHPUnit_Framework_TestCase +class FormThemeTokenParserTest extends TestCase { /** * @dataProvider getTestsForFormTheme diff --git a/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php b/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php index 4362e9131acb..0b1fb28b0e10 100644 --- a/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bridge\Twig\Tests\Translation; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\TranslationExtension; use Symfony\Bridge\Twig\Translation\TwigExtractor; use Symfony\Component\Translation\MessageCatalogue; -class TwigExtractorTest extends \PHPUnit_Framework_TestCase +class TwigExtractorTest extends TestCase { /** * @dataProvider getExtractData diff --git a/src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php b/src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php index b3eebb55c987..e2082df3dd75 100644 --- a/src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php +++ b/src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bridge\Twig\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\TwigEngine; use Symfony\Component\Templating\TemplateReference; -class TwigEngineTest extends \PHPUnit_Framework_TestCase +class TwigEngineTest extends TestCase { public function testExistsWithTemplateInstances() { diff --git a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php index 6500a85a8430..6e3e128534eb 100644 --- a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php +++ b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\DebugBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\DebugBundle\DependencyInjection\Compiler\DumpDataCollectorPass; use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\HttpFoundation\RequestStack; -class DumpDataCollectorPassTest extends \PHPUnit_Framework_TestCase +class DumpDataCollectorPassTest extends TestCase { public function testProcessWithFileLinkFormatParameter() { diff --git a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php index 3efb196cc9a3..3dbe29e9bd8c 100644 --- a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php +++ b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bundle\DebugBundle\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\DebugBundle\DependencyInjection\DebugExtension; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; -class DebugExtensionTest extends \PHPUnit_Framework_TestCase +class DebugExtensionTest extends TestCase { public function testLoadWithoutConfiguration() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php index f179b25dbd2b..351a8cc80a15 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Test; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Finder; use Symfony\Component\HttpKernel\KernelInterface; @@ -19,7 +20,7 @@ * * @author Fabien Potencier */ -abstract class KernelTestCase extends \PHPUnit_Framework_TestCase +abstract class KernelTestCase extends TestCase { protected static $class; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php index aac62095b1a1..9060af4d8260 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Command\RouterDebugCommand; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; -class RouterDebugCommandTest extends \PHPUnit_Framework_TestCase +class RouterDebugCommandTest extends TestCase { public function testDebugAllRoutes() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php index cb7f698bc664..6e9b5debe2f5 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Command\RouterMatchCommand; @@ -19,7 +20,7 @@ use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RequestContext; -class RouterMatchCommandTest extends \PHPUnit_Framework_TestCase +class RouterMatchCommandTest extends TestCase { public function testWithMatchPath() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php index 60f81565d36d..19c6d70156b1 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Command\TranslationDebugCommand; use Symfony\Component\Filesystem\Filesystem; -class TranslationDebugCommandTest extends \PHPUnit_Framework_TestCase +class TranslationDebugCommandTest extends TestCase { private $fs; private $translationDir; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php index 8690263374e7..bf48bde14235 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Command\TranslationUpdateCommand; @@ -18,7 +19,7 @@ use Symfony\Component\DependencyInjection; use Symfony\Component\HttpKernel; -class TranslationUpdateCommandTest extends \PHPUnit_Framework_TestCase +class TranslationUpdateCommandTest extends TestCase { private $fs; private $translationDir; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php index 46249c8e7c15..7f2723a0525a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -20,7 +21,7 @@ use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; -abstract class AbstractDescriptorTest extends \PHPUnit_Framework_TestCase +abstract class AbstractDescriptorTest extends TestCase { /** @dataProvider getDescribeRouteCollectionTestData */ public function testDescribeRouteCollection(RouteCollection $routes, $expectedDescription) diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php index 7ee9aa558e5f..330deae6463d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddCacheWarmerPass; -class AddCacheWarmerPassTest extends \PHPUnit_Framework_TestCase +class AddCacheWarmerPassTest extends TestCase { public function testThatCacheWarmersAreProcessedInPriorityOrder() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php index 97427034f5a8..7bbc3c269a36 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass; use Symfony\Component\Console\Command\Command; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\HttpKernel\Bundle\Bundle; -class AddConsoleCommandPassTest extends \PHPUnit_Framework_TestCase +class AddConsoleCommandPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php index 88901dda70bd..abfaa1d07404 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php @@ -9,9 +9,10 @@ * file that was distributed with this source code. */ +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConstraintValidatorsPass; -class AddConstraintValidatorsPassTest extends \PHPUnit_Framework_TestCase +class AddConstraintValidatorsPassTest extends TestCase { public function testThatConstraintValidatorServicesAreProcessed() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php index 9bc4acb9c156..0934fe31c0c4 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Reference; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddExpressionLanguageProvidersPass; -class AddExpressionLanguageProvidersPassTest extends \PHPUnit_Framework_TestCase +class AddExpressionLanguageProvidersPassTest extends TestCase { public function testProcessForRouter() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyFragmentRendererPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyFragmentRendererPassTest.php index e5c6adba8c97..d4f75ee95c20 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyFragmentRendererPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyFragmentRendererPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FragmentRendererPass; @@ -18,7 +19,7 @@ /** * @group legacy */ -class LegacyFragmentRendererPassTest extends \PHPUnit_Framework_TestCase +class LegacyFragmentRendererPassTest extends TestCase { /** * Tests that content rendering not implementing FragmentRendererInterface diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyTemplatingAssetHelperPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyTemplatingAssetHelperPassTest.php index 5cc5c9c558bc..3bddd5e021b7 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyTemplatingAssetHelperPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyTemplatingAssetHelperPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\TemplatingAssetHelperPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; @@ -19,7 +20,7 @@ /** * @group legacy */ -class LegacyTemplatingAssetHelperPassTest extends \PHPUnit_Framework_TestCase +class LegacyTemplatingAssetHelperPassTest extends TestCase { public function getScopesTests() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php index b71fe0a80766..db6557913b06 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\LoggingTranslatorPass; -class LoggingTranslatorPassTest extends \PHPUnit_Framework_TestCase +class LoggingTranslatorPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php index 9edb44ebb6e1..3637330ed502 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ProfilerPass; -class ProfilerPassTest extends \PHPUnit_Framework_TestCase +class ProfilerPassTest extends TestCase { private $profilerDefinition; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php index 3e592916a0a2..f1e29fca5182 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass; @@ -19,7 +20,7 @@ * * @author Javier Lopez */ -class SerializerPassTest extends \PHPUnit_Framework_TestCase +class SerializerPassTest extends TestCase { public function testThrowExceptionWhenNoNormalizers() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php index dcdb0bc5bd37..10a38aabdb40 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\TranslatorPass; -class TranslatorPassTest extends \PHPUnit_Framework_TestCase +class TranslatorPassTest extends TestCase { public function testValidCollector() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php index 16980c76faea..a20a120d0710 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration; use Symfony\Component\Config\Definition\Processor; -class ConfigurationTest extends \PHPUnit_Framework_TestCase +class ConfigurationTest extends TestCase { public function testDefaultConfig() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php index 057aa6c8091a..fb5395ea6d26 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Routing; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; use Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher; use Symfony\Component\Routing\RequestContext; -class RedirectableUrlMatcherTest extends \PHPUnit_Framework_TestCase +class RedirectableUrlMatcherTest extends TestCase { public function testRedirectWhenNoSlash() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php index d90f5d8358f9..c9a3b282ce9e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Routing; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Routing\Router; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; -class RouterTest extends \PHPUnit_Framework_TestCase +class RouterTest extends TestCase { public function testGenerateWithServiceParam() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php index d18427dc4e80..e3ff92b874c0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine; use Symfony\Component\HttpFoundation\Response; -class DelegatingEngineTest extends \PHPUnit_Framework_TestCase +class DelegatingEngineTest extends TestCase { public function testSupportsRetrievesEngineFromTheContainer() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php index 9460799684bd..cd0676169fb9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper; use Symfony\Component\Asset\Package; use Symfony\Component\Asset\Packages; use Symfony\Component\Asset\PathPackage; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; -class AssetsHelperTest extends \PHPUnit_Framework_TestCase +class AssetsHelperTest extends TestCase { /** * @group legacy diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/RequestHelperTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/RequestHelperTest.php index d626e63e41cf..4ece72e47e12 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/RequestHelperTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/RequestHelperTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Bundle\FrameworkBundle\Templating\Helper\RequestHelper; -class RequestHelperTest extends \PHPUnit_Framework_TestCase +class RequestHelperTest extends TestCase { protected $requestStack; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php index 5517afdb732f..f664a49b12ee 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Symfony\Bundle\FrameworkBundle\Templating\Helper\SessionHelper; -class SessionHelperTest extends \PHPUnit_Framework_TestCase +class SessionHelperTest extends TestCase { protected $requestStack; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/StopwatchHelperTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/StopwatchHelperTest.php index 3518267d81b6..cf7b627a499a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/StopwatchHelperTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/StopwatchHelperTest.php @@ -11,9 +11,10 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Templating\Helper\StopwatchHelper; -class StopwatchHelperTest extends \PHPUnit_Framework_TestCase +class StopwatchHelperTest extends TestCase { public function testDevEnvironment() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php b/src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php index 8e724305a298..115ca1ae58a2 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php @@ -11,6 +11,8 @@ namespace Symfony\Bundle\FrameworkBundle\Tests; -class TestCase extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase as PHPUnitTestCase; + +class TestCase extends PHPUnitTestCase { } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php index 11fe9da001e6..9a7c44d850d9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Translation; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Translation\Translator; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Translation\MessageSelector; -class TranslatorTest extends \PHPUnit_Framework_TestCase +class TranslatorTest extends TestCase { protected $tmpDir; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Validator/ConstraintValidatorFactoryTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Validator/ConstraintValidatorFactoryTest.php index 12ee6ac673d9..6cf9574ece96 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Validator/ConstraintValidatorFactoryTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Validator/ConstraintValidatorFactoryTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Validator; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\Validator\Constraints\Blank as BlankConstraint; -class ConstraintValidatorFactoryTest extends \PHPUnit_Framework_TestCase +class ConstraintValidatorFactoryTest extends TestCase { public function testGetInstanceCreatesValidator() { diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php index c7845959ac42..0357b612060c 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Symfony\Component\Security\Core\Role\Role; use Symfony\Component\Security\Core\Role\RoleHierarchy; -class SecurityDataCollectorTest extends \PHPUnit_Framework_TestCase +class SecurityDataCollectorTest extends TestCase { public function testCollectWhenSecurityIsDisabled() { diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php index a07b3fc82910..ebb22fddac83 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Parameter; use Symfony\Bundle\SecurityBundle\SecurityBundle; use Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension; use Symfony\Component\DependencyInjection\ContainerBuilder; -abstract class CompleteConfigurationTest extends \PHPUnit_Framework_TestCase +abstract class CompleteConfigurationTest extends TestCase { private static $containerCache = array(); diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php index 8d9224673cd7..5d2fe28e9e05 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\SecurityBundle\DependencyInjection\MainConfiguration; use Symfony\Component\Config\Definition\Processor; -class MainConfigurationTest extends \PHPUnit_Framework_TestCase +class MainConfigurationTest extends TestCase { /** * The minimal, required config needed to not have any required validation diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php index 39daf998cb4e..846d76f770d5 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Security\Factory; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; -class AbstractFactoryTest extends \PHPUnit_Framework_TestCase +class AbstractFactoryTest extends TestCase { public function testCreate() { diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php index 4dd33020c572..8eb2f70ea5de 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension; use Symfony\Bundle\SecurityBundle\SecurityBundle; use Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Fixtures\UserProvider\DummyProvider; use Symfony\Component\DependencyInjection\ContainerBuilder; -class SecurityExtensionTest extends \PHPUnit_Framework_TestCase +class SecurityExtensionTest extends TestCase { /** * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php index 587801d8db62..b83c5645c510 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bundle\TwigBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\ExtensionPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; -class ExtensionPassTest extends \PHPUnit_Framework_TestCase +class ExtensionPassTest extends TestCase { public function testProcessDoesNotDropExistingFileLoaderMethodCalls() { diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php index e8d9476d8dc2..10bcf3e8f66a 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\TwigBundle\Tests\DependencyInjection\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\TwigLoaderPass; -class TwigLoaderPassTest extends \PHPUnit_Framework_TestCase +class TwigLoaderPassTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php index 4dfb54eb7687..d3f8652c4b6d 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\TwigBundle\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\TwigBundle\DependencyInjection\Configuration; use Symfony\Component\Config\Definition\Processor; -class ConfigurationTest extends \PHPUnit_Framework_TestCase +class ConfigurationTest extends TestCase { public function testDoNoDuplicateDefaultFormResources() { diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php index 5c4126cfe723..455ed0b6a8c0 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php @@ -17,7 +17,7 @@ use Symfony\Bundle\FrameworkBundle\FrameworkBundle; use Symfony\Bundle\TwigBundle\TwigBundle; -class CacheWarmingTest extends \PHPUnit_Framework_TestCase +class CacheWarmingTest extends TestCase { public function testCacheIsProperlyWarmedWhenTemplatingIsAvailable() { diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php index 068a10526cb6..d07e0e946b2e 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php @@ -17,7 +17,7 @@ use Symfony\Bundle\FrameworkBundle\FrameworkBundle; use Symfony\Bundle\TwigBundle\TwigBundle; -class NoTemplatingEntryTest extends \PHPUnit_Framework_TestCase +class NoTemplatingEntryTest extends TestCase { public function test() { diff --git a/src/Symfony/Bundle/TwigBundle/Tests/TestCase.php b/src/Symfony/Bundle/TwigBundle/Tests/TestCase.php index 0c7af8ae4b85..800be3008a44 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/TestCase.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/TestCase.php @@ -11,6 +11,8 @@ namespace Symfony\Bundle\TwigBundle\Tests; -class TestCase extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase as PHPUnitTestCase; + +class TestCase extends PHPUnitTestCase { } diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php index 70267ecc9ea0..f01f38f4d08e 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\Command\ExportCommand; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\HttpKernel\Profiler\Profile; -class ExportCommandTest extends \PHPUnit_Framework_TestCase +class ExportCommandTest extends TestCase { /** * @expectedException \LogicException diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php index fe3ba421ad64..8f63ab1db23b 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\Command\ImportCommand; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\HttpKernel\Profiler\Profile; -class ImportCommandTest extends \PHPUnit_Framework_TestCase +class ImportCommandTest extends TestCase { public function testExecute() { diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php index 0ae9fa80fc33..a14869d4ec20 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\Controller; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController; use Symfony\Component\HttpKernel\Profiler\Profile; use Symfony\Component\HttpFoundation\Request; -class ProfilerControllerTest extends \PHPUnit_Framework_TestCase +class ProfilerControllerTest extends TestCase { /** * @dataProvider getEmptyTokenCases diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php index 5203b9c0ea02..b11f6928b4e9 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\DependencyInjection\Configuration; use Symfony\Component\Config\Definition\Processor; -class ConfigurationTest extends \PHPUnit_Framework_TestCase +class ConfigurationTest extends TestCase { /** * @dataProvider getDebugModes diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php index 3b27745ddc0f..89d6e932f118 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -18,7 +19,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; -class WebDebugToolbarListenerTest extends \PHPUnit_Framework_TestCase +class WebDebugToolbarListenerTest extends TestCase { /** * @dataProvider getInjectToolbarTests diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php index 0c0efeb0e041..581ad2e2ea02 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php @@ -11,6 +11,8 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests; -class TestCase extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase as PHPUnitTestCase; + +class TestCase extends PHPUnitTestCase { } diff --git a/src/Symfony/Component/Asset/Tests/Context/NullContextTest.php b/src/Symfony/Component/Asset/Tests/Context/NullContextTest.php index 13e0e43d9221..4623412f5795 100644 --- a/src/Symfony/Component/Asset/Tests/Context/NullContextTest.php +++ b/src/Symfony/Component/Asset/Tests/Context/NullContextTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Asset\Tests\Context; +use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\Context\NullContext; -class NullContextTest extends \PHPUnit_Framework_TestCase +class NullContextTest extends TestCase { public function testGetBasePath() { diff --git a/src/Symfony/Component/Asset/Tests/Context/RequestStackContextTest.php b/src/Symfony/Component/Asset/Tests/Context/RequestStackContextTest.php index dea77a587efa..7269d0e6bc98 100644 --- a/src/Symfony/Component/Asset/Tests/Context/RequestStackContextTest.php +++ b/src/Symfony/Component/Asset/Tests/Context/RequestStackContextTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Asset\Tests\Context; +use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\Context\RequestStackContext; -class RequestStackContextTest extends \PHPUnit_Framework_TestCase +class RequestStackContextTest extends TestCase { public function testGetBasePathEmpty() { diff --git a/src/Symfony/Component/Asset/Tests/PackageTest.php b/src/Symfony/Component/Asset/Tests/PackageTest.php index a2310d5898de..9a1719660462 100644 --- a/src/Symfony/Component/Asset/Tests/PackageTest.php +++ b/src/Symfony/Component/Asset/Tests/PackageTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Asset\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\Package; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; use Symfony\Component\Asset\VersionStrategy\EmptyVersionStrategy; -class PackageTest extends \PHPUnit_Framework_TestCase +class PackageTest extends TestCase { /** * @dataProvider getConfigs diff --git a/src/Symfony/Component/Asset/Tests/PackagesTest.php b/src/Symfony/Component/Asset/Tests/PackagesTest.php index bb515f20964f..4b0872f7f269 100644 --- a/src/Symfony/Component/Asset/Tests/PackagesTest.php +++ b/src/Symfony/Component/Asset/Tests/PackagesTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Asset\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\Package; use Symfony\Component\Asset\Packages; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; -class PackagesTest extends \PHPUnit_Framework_TestCase +class PackagesTest extends TestCase { public function testGetterSetters() { diff --git a/src/Symfony/Component/Asset/Tests/PathPackageTest.php b/src/Symfony/Component/Asset/Tests/PathPackageTest.php index 1f0883abad82..6a7c2cc6e45d 100644 --- a/src/Symfony/Component/Asset/Tests/PathPackageTest.php +++ b/src/Symfony/Component/Asset/Tests/PathPackageTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Asset\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\PathPackage; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; -class PathPackageTest extends \PHPUnit_Framework_TestCase +class PathPackageTest extends TestCase { /** * @dataProvider getConfigs diff --git a/src/Symfony/Component/Asset/Tests/UrlPackageTest.php b/src/Symfony/Component/Asset/Tests/UrlPackageTest.php index 588e9985741d..006683448435 100644 --- a/src/Symfony/Component/Asset/Tests/UrlPackageTest.php +++ b/src/Symfony/Component/Asset/Tests/UrlPackageTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Asset\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\UrlPackage; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; use Symfony\Component\Asset\VersionStrategy\EmptyVersionStrategy; -class UrlPackageTest extends \PHPUnit_Framework_TestCase +class UrlPackageTest extends TestCase { /** * @dataProvider getConfigs diff --git a/src/Symfony/Component/Asset/Tests/VersionStrategy/EmptyVersionStrategyTest.php b/src/Symfony/Component/Asset/Tests/VersionStrategy/EmptyVersionStrategyTest.php index fb842dd4f77a..430146fd5070 100644 --- a/src/Symfony/Component/Asset/Tests/VersionStrategy/EmptyVersionStrategyTest.php +++ b/src/Symfony/Component/Asset/Tests/VersionStrategy/EmptyVersionStrategyTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Asset\Tests\VersionStrategy; +use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\VersionStrategy\EmptyVersionStrategy; -class EmptyVersionStrategyTest extends \PHPUnit_Framework_TestCase +class EmptyVersionStrategyTest extends TestCase { public function testGetVersion() { diff --git a/src/Symfony/Component/Asset/Tests/VersionStrategy/StaticVersionStrategyTest.php b/src/Symfony/Component/Asset/Tests/VersionStrategy/StaticVersionStrategyTest.php index 77958ce2ca0c..7b5a3e8d5cec 100644 --- a/src/Symfony/Component/Asset/Tests/VersionStrategy/StaticVersionStrategyTest.php +++ b/src/Symfony/Component/Asset/Tests/VersionStrategy/StaticVersionStrategyTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Asset\Tests\VersionStrategy; +use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; -class StaticVersionStrategyTest extends \PHPUnit_Framework_TestCase +class StaticVersionStrategyTest extends TestCase { public function testGetVersion() { diff --git a/src/Symfony/Component/BrowserKit/Tests/ClientTest.php b/src/Symfony/Component/BrowserKit/Tests/ClientTest.php index 7be90657ddf1..e715bb9a4c32 100644 --- a/src/Symfony/Component/BrowserKit/Tests/ClientTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/ClientTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\BrowserKit\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\BrowserKit\Client; use Symfony\Component\BrowserKit\History; use Symfony\Component\BrowserKit\CookieJar; @@ -71,7 +72,7 @@ protected function getScript($request) } } -class ClientTest extends \PHPUnit_Framework_TestCase +class ClientTest extends TestCase { public function testGetHistory() { diff --git a/src/Symfony/Component/BrowserKit/Tests/CookieJarTest.php b/src/Symfony/Component/BrowserKit/Tests/CookieJarTest.php index 54a84b43a463..ae9f6a7ae5c9 100644 --- a/src/Symfony/Component/BrowserKit/Tests/CookieJarTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/CookieJarTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\BrowserKit\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\BrowserKit\CookieJar; use Symfony\Component\BrowserKit\Cookie; use Symfony\Component\BrowserKit\Response; -class CookieJarTest extends \PHPUnit_Framework_TestCase +class CookieJarTest extends TestCase { public function testSetGet() { diff --git a/src/Symfony/Component/BrowserKit/Tests/CookieTest.php b/src/Symfony/Component/BrowserKit/Tests/CookieTest.php index 4722de6d7b04..12ca705b57a4 100644 --- a/src/Symfony/Component/BrowserKit/Tests/CookieTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/CookieTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\BrowserKit\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\BrowserKit\Cookie; -class CookieTest extends \PHPUnit_Framework_TestCase +class CookieTest extends TestCase { /** * @dataProvider getTestsForToFromString diff --git a/src/Symfony/Component/BrowserKit/Tests/HistoryTest.php b/src/Symfony/Component/BrowserKit/Tests/HistoryTest.php index d6d830e83ef0..aa09b05b3426 100644 --- a/src/Symfony/Component/BrowserKit/Tests/HistoryTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/HistoryTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\BrowserKit\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\BrowserKit\History; use Symfony\Component\BrowserKit\Request; -class HistoryTest extends \PHPUnit_Framework_TestCase +class HistoryTest extends TestCase { public function testAdd() { diff --git a/src/Symfony/Component/BrowserKit/Tests/RequestTest.php b/src/Symfony/Component/BrowserKit/Tests/RequestTest.php index b75b5fb5c0ab..f163de967437 100644 --- a/src/Symfony/Component/BrowserKit/Tests/RequestTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/RequestTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\BrowserKit\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\BrowserKit\Request; -class RequestTest extends \PHPUnit_Framework_TestCase +class RequestTest extends TestCase { public function testGetUri() { diff --git a/src/Symfony/Component/BrowserKit/Tests/ResponseTest.php b/src/Symfony/Component/BrowserKit/Tests/ResponseTest.php index bfe3cd52c231..0ba4e3b3a71d 100644 --- a/src/Symfony/Component/BrowserKit/Tests/ResponseTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/ResponseTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\BrowserKit\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\BrowserKit\Response; -class ResponseTest extends \PHPUnit_Framework_TestCase +class ResponseTest extends TestCase { public function testGetUri() { diff --git a/src/Symfony/Component/ClassLoader/Tests/ApcClassLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/ApcClassLoaderTest.php index e96ba954087c..8ad7132ee9ea 100644 --- a/src/Symfony/Component/ClassLoader/Tests/ApcClassLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/ApcClassLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\ClassLoader\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ClassLoader\ApcClassLoader; use Symfony\Component\ClassLoader\ClassLoader; -class ApcClassLoaderTest extends \PHPUnit_Framework_TestCase +class ApcClassLoaderTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php index 00be361f506f..4adff9fbfeda 100644 --- a/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\ClassLoader\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ClassLoader\ClassCollectionLoader; require_once __DIR__.'/Fixtures/ClassesWithParents/GInterface.php'; @@ -18,7 +19,7 @@ require_once __DIR__.'/Fixtures/ClassesWithParents/B.php'; require_once __DIR__.'/Fixtures/ClassesWithParents/A.php'; -class ClassCollectionLoaderTest extends \PHPUnit_Framework_TestCase +class ClassCollectionLoaderTest extends TestCase { /** * @requires PHP 5.4 diff --git a/src/Symfony/Component/ClassLoader/Tests/ClassLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/ClassLoaderTest.php index 09eea04229c0..4d8520cd0e9d 100644 --- a/src/Symfony/Component/ClassLoader/Tests/ClassLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/ClassLoaderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\ClassLoader\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ClassLoader\ClassLoader; -class ClassLoaderTest extends \PHPUnit_Framework_TestCase +class ClassLoaderTest extends TestCase { public function testGetPrefixes() { diff --git a/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php b/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php index 7016767fe7ba..db7fb962cedd 100644 --- a/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\ClassLoader\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ClassLoader\ClassMapGenerator; -class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase +class ClassMapGeneratorTest extends TestCase { /** * @var string|null diff --git a/src/Symfony/Component/ClassLoader/Tests/LegacyApcUniversalClassLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/LegacyApcUniversalClassLoaderTest.php index 512ff632a51d..6d4e57e98450 100644 --- a/src/Symfony/Component/ClassLoader/Tests/LegacyApcUniversalClassLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/LegacyApcUniversalClassLoaderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\ClassLoader\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ClassLoader\ApcUniversalClassLoader; /** * @group legacy */ -class LegacyApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase +class LegacyApcUniversalClassLoaderTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php index 2588e9603443..f9a8b5518b58 100644 --- a/src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\ClassLoader\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ClassLoader\UniversalClassLoader; /** * @group legacy */ -class LegacyUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase +class LegacyUniversalClassLoaderTest extends TestCase { /** * @dataProvider getLoadClassTests diff --git a/src/Symfony/Component/ClassLoader/Tests/Psr4ClassLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/Psr4ClassLoaderTest.php index 21a7afbd6e75..8c7ef7978616 100644 --- a/src/Symfony/Component/ClassLoader/Tests/Psr4ClassLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/Psr4ClassLoaderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\ClassLoader\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ClassLoader\Psr4ClassLoader; -class Psr4ClassLoaderTest extends \PHPUnit_Framework_TestCase +class Psr4ClassLoaderTest extends TestCase { /** * @param string $className diff --git a/src/Symfony/Component/Config/Tests/ConfigCacheFactoryTest.php b/src/Symfony/Component/Config/Tests/ConfigCacheFactoryTest.php index 291243deada7..c523e5cd5e6a 100644 --- a/src/Symfony/Component/Config/Tests/ConfigCacheFactoryTest.php +++ b/src/Symfony/Component/Config/Tests/ConfigCacheFactoryTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\ConfigCacheFactory; -class ConfigCacheFactoryTest extends \PHPUnit_Framework_TestCase +class ConfigCacheFactoryTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/Config/Tests/ConfigCacheTest.php b/src/Symfony/Component/Config/Tests/ConfigCacheTest.php index ee30d0b394fd..e6bcd19a8aac 100644 --- a/src/Symfony/Component/Config/Tests/ConfigCacheTest.php +++ b/src/Symfony/Component/Config/Tests/ConfigCacheTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Config\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\ConfigCache; use Symfony\Component\Config\Resource\FileResource; -class ConfigCacheTest extends \PHPUnit_Framework_TestCase +class ConfigCacheTest extends TestCase { private $resourceFile = null; diff --git a/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php index a7929ceb3512..8ec1763065fb 100644 --- a/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\ArrayNode; use Symfony\Component\Config\Definition\ScalarNode; -class ArrayNodeTest extends \PHPUnit_Framework_TestCase +class ArrayNodeTest extends TestCase { /** * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException diff --git a/src/Symfony/Component/Config/Tests/Definition/BooleanNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/BooleanNodeTest.php index b0cb079e96fb..ab1d3164145d 100644 --- a/src/Symfony/Component/Config/Tests/Definition/BooleanNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/BooleanNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\BooleanNode; -class BooleanNodeTest extends \PHPUnit_Framework_TestCase +class BooleanNodeTest extends TestCase { /** * @dataProvider getValidValues diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php index b07f6079ebd9..6456639af305 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Config\Tests\Definition\Builder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition; use Symfony\Component\Config\Definition\Exception\InvalidDefinitionException; -class ArrayNodeDefinitionTest extends \PHPUnit_Framework_TestCase +class ArrayNodeDefinitionTest extends TestCase { public function testAppendingSomeNode() { diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/EnumNodeDefinitionTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/EnumNodeDefinitionTest.php index 69f7fcfb22e9..d8f9bf554780 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Builder/EnumNodeDefinitionTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Builder/EnumNodeDefinitionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Definition\Builder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Builder\EnumNodeDefinition; -class EnumNodeDefinitionTest extends \PHPUnit_Framework_TestCase +class EnumNodeDefinitionTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php index ebb766eed63d..1b90ebfeb82b 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Definition\Builder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Builder\TreeBuilder; -class ExprBuilderTest extends \PHPUnit_Framework_TestCase +class ExprBuilderTest extends TestCase { public function testAlwaysExpression() { diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/NodeBuilderTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/NodeBuilderTest.php index 22c399ca9d88..88775656784f 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Builder/NodeBuilderTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Builder/NodeBuilderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Config\Tests\Definition\Builder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Builder\NodeBuilder as BaseNodeBuilder; use Symfony\Component\Config\Definition\Builder\VariableNodeDefinition as BaseVariableNodeDefinition; -class NodeBuilderTest extends \PHPUnit_Framework_TestCase +class NodeBuilderTest extends TestCase { /** * @expectedException \RuntimeException diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/NumericNodeDefinitionTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/NumericNodeDefinitionTest.php index cf0813ace002..efe0f19482cb 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Builder/NumericNodeDefinitionTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Builder/NumericNodeDefinitionTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Config\Tests\Definition\Builder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition as NumericNodeDefinition; use Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition; use Symfony\Component\Config\Definition\Builder\FloatNodeDefinition; -class NumericNodeDefinitionTest extends \PHPUnit_Framework_TestCase +class NumericNodeDefinitionTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/TreeBuilderTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/TreeBuilderTest.php index a146e89c32ae..16a10227cc29 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Builder/TreeBuilderTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Builder/TreeBuilderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Config\Tests\Definition\Builder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Tests\Definition\Builder\NodeBuilder as CustomNodeBuilder; use Symfony\Component\Config\Definition\Builder\TreeBuilder; @@ -18,7 +19,7 @@ require __DIR__.'/../../Fixtures/Builder/BarNodeDefinition.php'; require __DIR__.'/../../Fixtures/Builder/VariableNodeDefinition.php'; -class TreeBuilderTest extends \PHPUnit_Framework_TestCase +class TreeBuilderTest extends TestCase { public function testUsingACustomNodeBuilder() { diff --git a/src/Symfony/Component/Config/Tests/Definition/Dumper/XmlReferenceDumperTest.php b/src/Symfony/Component/Config/Tests/Definition/Dumper/XmlReferenceDumperTest.php index 2c0551d062ef..8676ead54c57 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Dumper/XmlReferenceDumperTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Dumper/XmlReferenceDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Config\Tests\Definition\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Dumper\XmlReferenceDumper; use Symfony\Component\Config\Tests\Fixtures\Configuration\ExampleConfiguration; -class XmlReferenceDumperTest extends \PHPUnit_Framework_TestCase +class XmlReferenceDumperTest extends TestCase { public function testDumper() { diff --git a/src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php b/src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php index ba8cb0e3feb5..971f4afc7192 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Config\Tests\Definition\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper; use Symfony\Component\Config\Tests\Fixtures\Configuration\ExampleConfiguration; -class YamlReferenceDumperTest extends \PHPUnit_Framework_TestCase +class YamlReferenceDumperTest extends TestCase { public function testDumper() { diff --git a/src/Symfony/Component/Config/Tests/Definition/EnumNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/EnumNodeTest.php index 2b84de6b098f..691a0b65186c 100644 --- a/src/Symfony/Component/Config/Tests/Definition/EnumNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/EnumNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\EnumNode; -class EnumNodeTest extends \PHPUnit_Framework_TestCase +class EnumNodeTest extends TestCase { public function testFinalizeValue() { diff --git a/src/Symfony/Component/Config/Tests/Definition/FinalizationTest.php b/src/Symfony/Component/Config/Tests/Definition/FinalizationTest.php index 19fc347d8f06..733f600850f5 100644 --- a/src/Symfony/Component/Config/Tests/Definition/FinalizationTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/FinalizationTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Config\Definition\NodeInterface; -class FinalizationTest extends \PHPUnit_Framework_TestCase +class FinalizationTest extends TestCase { public function testUnsetKeyWithDeepHierarchy() { diff --git a/src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php index 84afd6c10422..b7ec12fa739a 100644 --- a/src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\FloatNode; -class FloatNodeTest extends \PHPUnit_Framework_TestCase +class FloatNodeTest extends TestCase { /** * @dataProvider getValidValues diff --git a/src/Symfony/Component/Config/Tests/Definition/IntegerNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/IntegerNodeTest.php index 58d21485993f..55e8a137b648 100644 --- a/src/Symfony/Component/Config/Tests/Definition/IntegerNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/IntegerNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\IntegerNode; -class IntegerNodeTest extends \PHPUnit_Framework_TestCase +class IntegerNodeTest extends TestCase { /** * @dataProvider getValidValues diff --git a/src/Symfony/Component/Config/Tests/Definition/MergeTest.php b/src/Symfony/Component/Config/Tests/Definition/MergeTest.php index 08ddc3209e72..e539e25f3d02 100644 --- a/src/Symfony/Component/Config/Tests/Definition/MergeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/MergeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Builder\TreeBuilder; -class MergeTest extends \PHPUnit_Framework_TestCase +class MergeTest extends TestCase { /** * @expectedException \Symfony\Component\Config\Definition\Exception\ForbiddenOverwriteException diff --git a/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php b/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php index a896f9622148..f011f5422ffe 100644 --- a/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\NodeInterface; use Symfony\Component\Config\Definition\Builder\TreeBuilder; -class NormalizationTest extends \PHPUnit_Framework_TestCase +class NormalizationTest extends TestCase { /** * @dataProvider getEncoderTests diff --git a/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php index 77013a14b2d9..1a5de41ccb01 100644 --- a/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\PrototypedArrayNode; use Symfony\Component\Config\Definition\ArrayNode; use Symfony\Component\Config\Definition\ScalarNode; use Symfony\Component\Config\Definition\VariableNode; -class PrototypedArrayNodeTest extends \PHPUnit_Framework_TestCase +class PrototypedArrayNodeTest extends TestCase { public function testGetDefaultValueReturnsAnEmptyArrayForPrototypes() { diff --git a/src/Symfony/Component/Config/Tests/Definition/ScalarNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/ScalarNodeTest.php index 86c1803018a6..1bc31b7c12d1 100644 --- a/src/Symfony/Component/Config/Tests/Definition/ScalarNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/ScalarNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Definition; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\ScalarNode; -class ScalarNodeTest extends \PHPUnit_Framework_TestCase +class ScalarNodeTest extends TestCase { /** * @dataProvider getValidValues diff --git a/src/Symfony/Component/Config/Tests/Exception/FileLoaderLoadExceptionTest.php b/src/Symfony/Component/Config/Tests/Exception/FileLoaderLoadExceptionTest.php index c3d050c75dc7..c1ad9150e6a9 100644 --- a/src/Symfony/Component/Config/Tests/Exception/FileLoaderLoadExceptionTest.php +++ b/src/Symfony/Component/Config/Tests/Exception/FileLoaderLoadExceptionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Exception; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Exception\FileLoaderLoadException; -class FileLoaderLoadExceptionTest extends \PHPUnit_Framework_TestCase +class FileLoaderLoadExceptionTest extends TestCase { public function testMessageCannotLoadResource() { diff --git a/src/Symfony/Component/Config/Tests/FileLocatorTest.php b/src/Symfony/Component/Config/Tests/FileLocatorTest.php index d479f2569f1f..5b69f452697b 100644 --- a/src/Symfony/Component/Config/Tests/FileLocatorTest.php +++ b/src/Symfony/Component/Config/Tests/FileLocatorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\FileLocator; -class FileLocatorTest extends \PHPUnit_Framework_TestCase +class FileLocatorTest extends TestCase { /** * @dataProvider getIsAbsolutePathTests diff --git a/src/Symfony/Component/Config/Tests/Loader/DelegatingLoaderTest.php b/src/Symfony/Component/Config/Tests/Loader/DelegatingLoaderTest.php index 8f3039df8ed4..4a01d26adf22 100644 --- a/src/Symfony/Component/Config/Tests/Loader/DelegatingLoaderTest.php +++ b/src/Symfony/Component/Config/Tests/Loader/DelegatingLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Config\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Loader\LoaderResolver; use Symfony\Component\Config\Loader\DelegatingLoader; -class DelegatingLoaderTest extends \PHPUnit_Framework_TestCase +class DelegatingLoaderTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Config/Tests/Loader/FileLoaderTest.php b/src/Symfony/Component/Config/Tests/Loader/FileLoaderTest.php index 8f46051bd8ba..e1d23e45fa6d 100644 --- a/src/Symfony/Component/Config/Tests/Loader/FileLoaderTest.php +++ b/src/Symfony/Component/Config/Tests/Loader/FileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Config\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Loader\FileLoader; use Symfony\Component\Config\Loader\LoaderResolver; -class FileLoaderTest extends \PHPUnit_Framework_TestCase +class FileLoaderTest extends TestCase { public function testImportWithFileLocatorDelegation() { diff --git a/src/Symfony/Component/Config/Tests/Loader/LoaderResolverTest.php b/src/Symfony/Component/Config/Tests/Loader/LoaderResolverTest.php index 1685f32ed060..0bf56b610ebd 100644 --- a/src/Symfony/Component/Config/Tests/Loader/LoaderResolverTest.php +++ b/src/Symfony/Component/Config/Tests/Loader/LoaderResolverTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Loader\LoaderResolver; -class LoaderResolverTest extends \PHPUnit_Framework_TestCase +class LoaderResolverTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Config/Tests/Loader/LoaderTest.php b/src/Symfony/Component/Config/Tests/Loader/LoaderTest.php index e9f79a8d6ddb..fefb1d728f44 100644 --- a/src/Symfony/Component/Config/Tests/Loader/LoaderTest.php +++ b/src/Symfony/Component/Config/Tests/Loader/LoaderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Loader\Loader; -class LoaderTest extends \PHPUnit_Framework_TestCase +class LoaderTest extends TestCase { public function testGetSetResolver() { diff --git a/src/Symfony/Component/Config/Tests/Resource/DirectoryResourceTest.php b/src/Symfony/Component/Config/Tests/Resource/DirectoryResourceTest.php index 7117e4389bcb..60bd616a41de 100644 --- a/src/Symfony/Component/Config/Tests/Resource/DirectoryResourceTest.php +++ b/src/Symfony/Component/Config/Tests/Resource/DirectoryResourceTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Resource; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Resource\DirectoryResource; -class DirectoryResourceTest extends \PHPUnit_Framework_TestCase +class DirectoryResourceTest extends TestCase { protected $directory; diff --git a/src/Symfony/Component/Config/Tests/Resource/FileResourceTest.php b/src/Symfony/Component/Config/Tests/Resource/FileResourceTest.php index db85cf7bd0ee..9e77c9480b4c 100644 --- a/src/Symfony/Component/Config/Tests/Resource/FileResourceTest.php +++ b/src/Symfony/Component/Config/Tests/Resource/FileResourceTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Resource; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Resource\FileResource; -class FileResourceTest extends \PHPUnit_Framework_TestCase +class FileResourceTest extends TestCase { protected $resource; protected $file; diff --git a/src/Symfony/Component/Config/Tests/Util/XmlUtilsTest.php b/src/Symfony/Component/Config/Tests/Util/XmlUtilsTest.php index 237c197e025a..09a826586dbf 100644 --- a/src/Symfony/Component/Config/Tests/Util/XmlUtilsTest.php +++ b/src/Symfony/Component/Config/Tests/Util/XmlUtilsTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Config\Tests\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Util\XmlUtils; -class XmlUtilsTest extends \PHPUnit_Framework_TestCase +class XmlUtilsTest extends TestCase { public function testLoadFile() { diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php index 9c9acd3ec616..78cc918ae022 100644 --- a/src/Symfony/Component/Console/Tests/ApplicationTest.php +++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Console\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Helper\FormatterHelper; @@ -30,7 +31,7 @@ use Symfony\Component\Console\Event\ConsoleTerminateEvent; use Symfony\Component\EventDispatcher\EventDispatcher; -class ApplicationTest extends \PHPUnit_Framework_TestCase +class ApplicationTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/Console/Tests/Command/CommandTest.php b/src/Symfony/Component/Console/Tests/Command/CommandTest.php index 1468cbe2ea58..92b40b35c239 100644 --- a/src/Symfony/Component/Console/Tests/Command/CommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/CommandTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Console\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\FormatterHelper; use Symfony\Component\Console\Application; @@ -23,7 +24,7 @@ use Symfony\Component\Console\Output\NullOutput; use Symfony\Component\Console\Tester\CommandTester; -class CommandTest extends \PHPUnit_Framework_TestCase +class CommandTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/Console/Tests/Command/HelpCommandTest.php b/src/Symfony/Component/Console/Tests/Command/HelpCommandTest.php index 9e068587f82b..a4e032a27e76 100644 --- a/src/Symfony/Component/Console/Tests/Command/HelpCommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/HelpCommandTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Console\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Command\HelpCommand; use Symfony\Component\Console\Command\ListCommand; use Symfony\Component\Console\Application; -class HelpCommandTest extends \PHPUnit_Framework_TestCase +class HelpCommandTest extends TestCase { public function testExecuteForCommandAlias() { diff --git a/src/Symfony/Component/Console/Tests/Command/ListCommandTest.php b/src/Symfony/Component/Console/Tests/Command/ListCommandTest.php index a166a040996b..fb6ee3bbacad 100644 --- a/src/Symfony/Component/Console/Tests/Command/ListCommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/ListCommandTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Console\Tests\Command; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Application; -class ListCommandTest extends \PHPUnit_Framework_TestCase +class ListCommandTest extends TestCase { public function testExecuteListsCommands() { diff --git a/src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTest.php b/src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTest.php index 74e95b756997..fcbb719b6cd9 100644 --- a/src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTest.php +++ b/src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Console\Tests\Descriptor; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -18,7 +19,7 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\BufferedOutput; -abstract class AbstractDescriptorTest extends \PHPUnit_Framework_TestCase +abstract class AbstractDescriptorTest extends TestCase { /** @dataProvider getDescribeInputArgumentTestData */ public function testDescribeInputArgument(InputArgument $argument, $expectedDescription) diff --git a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php index 774df268ba12..6cd7c82b4a20 100644 --- a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php +++ b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Console\Tests\Formatter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Formatter\OutputFormatterStyleStack; use Symfony\Component\Console\Formatter\OutputFormatterStyle; -class OutputFormatterStyleStackTest extends \PHPUnit_Framework_TestCase +class OutputFormatterStyleStackTest extends TestCase { public function testPush() { diff --git a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleTest.php b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleTest.php index 0abfb3ce2755..f183450e44fa 100644 --- a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleTest.php +++ b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Console\Tests\Formatter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Formatter\OutputFormatterStyle; -class OutputFormatterStyleTest extends \PHPUnit_Framework_TestCase +class OutputFormatterStyleTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php index b8d5ca6d9beb..dc7b0358dea8 100644 --- a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php +++ b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Console\Tests\Formatter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Formatter\OutputFormatter; use Symfony\Component\Console\Formatter\OutputFormatterStyle; -class OutputFormatterTest extends \PHPUnit_Framework_TestCase +class OutputFormatterTest extends TestCase { public function testEmptyTag() { diff --git a/src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php index 15b53e1da61e..746c2b464029 100644 --- a/src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\FormatterHelper; -class FormatterHelperTest extends \PHPUnit_Framework_TestCase +class FormatterHelperTest extends TestCase { public function testFormatSection() { diff --git a/src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php b/src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php index a31615ee80b6..8f42cf92e9ff 100644 --- a/src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Command\Command; -class HelperSetTest extends \PHPUnit_Framework_TestCase +class HelperSetTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Helper/HelperTest.php b/src/Symfony/Component/Console/Tests/Helper/HelperTest.php index 33fa22051a05..1847582444d1 100644 --- a/src/Symfony/Component/Console/Tests/Helper/HelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/HelperTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\Helper; -class HelperTest extends \PHPUnit_Framework_TestCase +class HelperTest extends TestCase { public function formatTimeProvider() { diff --git a/src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php index 79bf7b172ade..d50366d1bf06 100644 --- a/src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Helper\DialogHelper; use Symfony\Component\Console\Helper\HelperSet; @@ -21,7 +22,7 @@ /** * @group legacy */ -class LegacyDialogHelperTest extends \PHPUnit_Framework_TestCase +class LegacyDialogHelperTest extends TestCase { public function testSelect() { diff --git a/src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php index bbb9f8b076b4..2e473c2eef17 100644 --- a/src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\ProgressHelper; use Symfony\Component\Console\Output\StreamOutput; @@ -18,7 +19,7 @@ * @group legacy * @group time-sensitive */ -class LegacyProgressHelperTest extends \PHPUnit_Framework_TestCase +class LegacyProgressHelperTest extends TestCase { public function testAdvance() { diff --git a/src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php index 4875f79285f3..7c3130945366 100644 --- a/src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\TableHelper; use Symfony\Component\Console\Output\StreamOutput; /** * @group legacy */ -class LegacyTableHelperTest extends \PHPUnit_Framework_TestCase +class LegacyTableHelperTest extends TestCase { protected $stream; diff --git a/src/Symfony/Component/Console/Tests/Helper/ProcessHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/ProcessHelperTest.php index b0d7f9c2f6f4..8069bcccc96a 100644 --- a/src/Symfony/Component/Console/Tests/Helper/ProcessHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/ProcessHelperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\DebugFormatterHelper; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Output\StreamOutput; @@ -18,7 +19,7 @@ use Symfony\Component\Process\Process; use Symfony\Component\Process\ProcessBuilder; -class ProcessHelperTest extends \PHPUnit_Framework_TestCase +class ProcessHelperTest extends TestCase { /** * @dataProvider provideCommandsAndOutput diff --git a/src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php b/src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php index 612d13d7dc4d..d1616d107f02 100644 --- a/src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\ProgressBar; use Symfony\Component\Console\Helper\Helper; use Symfony\Component\Console\Output\StreamOutput; @@ -18,7 +19,7 @@ /** * @group time-sensitive */ -class ProgressBarTest extends \PHPUnit_Framework_TestCase +class ProgressBarTest extends TestCase { public function testMultipleStart() { diff --git a/src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php index 044459660a73..49ba0ee06c79 100644 --- a/src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Formatter\OutputFormatter; use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Helper\HelperSet; @@ -23,7 +24,7 @@ /** * @group tty */ -class QuestionHelperTest extends \PHPUnit_Framework_TestCase +class QuestionHelperTest extends TestCase { public function testAskChoice() { diff --git a/src/Symfony/Component/Console/Tests/Helper/SymfonyQuestionHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/SymfonyQuestionHelperTest.php index 9bb50d52806a..1a2d1b8432f5 100644 --- a/src/Symfony/Component/Console/Tests/Helper/SymfonyQuestionHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/SymfonyQuestionHelperTest.php @@ -2,6 +2,7 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\FormatterHelper; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Helper\SymfonyQuestionHelper; @@ -12,7 +13,7 @@ /** * @group tty */ -class SymfonyQuestionHelperTest extends \PHPUnit_Framework_TestCase +class SymfonyQuestionHelperTest extends TestCase { public function testAskChoice() { diff --git a/src/Symfony/Component/Console/Tests/Helper/TableStyleTest.php b/src/Symfony/Component/Console/Tests/Helper/TableStyleTest.php index 587d8414e6e2..13e918b3a0fe 100644 --- a/src/Symfony/Component/Console/Tests/Helper/TableStyleTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/TableStyleTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\TableStyle; -class TableStyleTest extends \PHPUnit_Framework_TestCase +class TableStyleTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/Console/Tests/Helper/TableTest.php b/src/Symfony/Component/Console/Tests/Helper/TableTest.php index 10cf34ddff84..2ff581e83ef8 100644 --- a/src/Symfony/Component/Console/Tests/Helper/TableTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/TableTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Console\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Helper\TableStyle; use Symfony\Component\Console\Helper\TableSeparator; use Symfony\Component\Console\Helper\TableCell; use Symfony\Component\Console\Output\StreamOutput; -class TableTest extends \PHPUnit_Framework_TestCase +class TableTest extends TestCase { protected $stream; diff --git a/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php b/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php index 06347c87ba80..66d63e4d3855 100644 --- a/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php +++ b/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Console\Tests\Input; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; -class ArgvInputTest extends \PHPUnit_Framework_TestCase +class ArgvInputTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php b/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php index cc89083c6b1c..37e396a8ca14 100644 --- a/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php +++ b/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Console\Tests\Input; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; -class ArrayInputTest extends \PHPUnit_Framework_TestCase +class ArrayInputTest extends TestCase { public function testGetFirstArgument() { diff --git a/src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php b/src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php index cfb37cd41061..0a62d98a4a4c 100644 --- a/src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php +++ b/src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Console\Tests\Input; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\InputArgument; -class InputArgumentTest extends \PHPUnit_Framework_TestCase +class InputArgumentTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php b/src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php index f3d2c0d64ee2..b19708ebb21c 100644 --- a/src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php +++ b/src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Console\Tests\Input; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; -class InputDefinitionTest extends \PHPUnit_Framework_TestCase +class InputDefinitionTest extends TestCase { protected static $fixtures; diff --git a/src/Symfony/Component/Console/Tests/Input/InputOptionTest.php b/src/Symfony/Component/Console/Tests/Input/InputOptionTest.php index 53ce1df8cf3f..9c4df742d501 100644 --- a/src/Symfony/Component/Console/Tests/Input/InputOptionTest.php +++ b/src/Symfony/Component/Console/Tests/Input/InputOptionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Console\Tests\Input; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\InputOption; -class InputOptionTest extends \PHPUnit_Framework_TestCase +class InputOptionTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Input/InputTest.php b/src/Symfony/Component/Console/Tests/Input/InputTest.php index eb1c6617f564..42abd82eac11 100644 --- a/src/Symfony/Component/Console/Tests/Input/InputTest.php +++ b/src/Symfony/Component/Console/Tests/Input/InputTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Console\Tests\Input; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; -class InputTest extends \PHPUnit_Framework_TestCase +class InputTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Input/StringInputTest.php b/src/Symfony/Component/Console/Tests/Input/StringInputTest.php index c8a560f6b2f1..839af7387f4d 100644 --- a/src/Symfony/Component/Console/Tests/Input/StringInputTest.php +++ b/src/Symfony/Component/Console/Tests/Input/StringInputTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Console\Tests\Input; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\StringInput; -class StringInputTest extends \PHPUnit_Framework_TestCase +class StringInputTest extends TestCase { /** * @dataProvider getTokenizeData diff --git a/src/Symfony/Component/Console/Tests/Output/ConsoleOutputTest.php b/src/Symfony/Component/Console/Tests/Output/ConsoleOutputTest.php index b3808c07cfbf..db39a02b8a61 100644 --- a/src/Symfony/Component/Console/Tests/Output/ConsoleOutputTest.php +++ b/src/Symfony/Component/Console/Tests/Output/ConsoleOutputTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Console\Tests\Output; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Formatter\OutputFormatter; use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\Console\Output\Output; -class ConsoleOutputTest extends \PHPUnit_Framework_TestCase +class ConsoleOutputTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Output/NullOutputTest.php b/src/Symfony/Component/Console/Tests/Output/NullOutputTest.php index f09573f04da9..b7ff4be312ea 100644 --- a/src/Symfony/Component/Console/Tests/Output/NullOutputTest.php +++ b/src/Symfony/Component/Console/Tests/Output/NullOutputTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Console\Tests\Output; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Formatter\OutputFormatter; use Symfony\Component\Console\Output\NullOutput; use Symfony\Component\Console\Output\Output; use Symfony\Component\Console\Output\OutputInterface; -class NullOutputTest extends \PHPUnit_Framework_TestCase +class NullOutputTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Output/OutputTest.php b/src/Symfony/Component/Console/Tests/Output/OutputTest.php index cfb4afe15ca6..f122c07a1bcc 100644 --- a/src/Symfony/Component/Console/Tests/Output/OutputTest.php +++ b/src/Symfony/Component/Console/Tests/Output/OutputTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Console\Tests\Output; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Output\Output; use Symfony\Component\Console\Formatter\OutputFormatterStyle; -class OutputTest extends \PHPUnit_Framework_TestCase +class OutputTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php b/src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php index 2fd4f612142e..780b5681fa8d 100644 --- a/src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php +++ b/src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Console\Tests\Output; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Output\Output; use Symfony\Component\Console\Output\StreamOutput; -class StreamOutputTest extends \PHPUnit_Framework_TestCase +class StreamOutputTest extends TestCase { protected $stream; diff --git a/src/Symfony/Component/Console/Tests/Style/SymfonyStyleTest.php b/src/Symfony/Component/Console/Tests/Style/SymfonyStyleTest.php index e4ce037bb8f1..ee9b09f8f97e 100644 --- a/src/Symfony/Component/Console/Tests/Style/SymfonyStyleTest.php +++ b/src/Symfony/Component/Console/Tests/Style/SymfonyStyleTest.php @@ -11,14 +11,14 @@ namespace Symfony\Component\Console\Tests\Style; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\Console\Tester\CommandTester; -class SymfonyStyleTest extends PHPUnit_Framework_TestCase +class SymfonyStyleTest extends TestCase { /** @var Command */ protected $command; diff --git a/src/Symfony/Component/Console/Tests/Tester/ApplicationTesterTest.php b/src/Symfony/Component/Console/Tests/Tester/ApplicationTesterTest.php index a8389dd1866b..57e7136d5580 100644 --- a/src/Symfony/Component/Console/Tests/Tester/ApplicationTesterTest.php +++ b/src/Symfony/Component/Console/Tests/Tester/ApplicationTesterTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Console\Tests\Tester; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Output\Output; use Symfony\Component\Console\Tester\ApplicationTester; -class ApplicationTesterTest extends \PHPUnit_Framework_TestCase +class ApplicationTesterTest extends TestCase { protected $application; protected $tester; diff --git a/src/Symfony/Component/Console/Tests/Tester/CommandTesterTest.php b/src/Symfony/Component/Console/Tests/Tester/CommandTesterTest.php index b54c00e83dc8..8d4e05a760cd 100644 --- a/src/Symfony/Component/Console/Tests/Tester/CommandTesterTest.php +++ b/src/Symfony/Component/Console/Tests/Tester/CommandTesterTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Console\Tests\Tester; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Output\Output; use Symfony\Component\Console\Tester\CommandTester; -class CommandTesterTest extends \PHPUnit_Framework_TestCase +class CommandTesterTest extends TestCase { protected $command; protected $tester; diff --git a/src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php b/src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php index 61ab80eec8d0..f1dee1ee11ee 100644 --- a/src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php +++ b/src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\CssSelector\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\CssSelector; -class CssSelectorTest extends \PHPUnit_Framework_TestCase +class CssSelectorTest extends TestCase { public function testCssToXPath() { diff --git a/src/Symfony/Component/CssSelector/Tests/Node/AbstractNodeTest.php b/src/Symfony/Component/CssSelector/Tests/Node/AbstractNodeTest.php index 932e8030dd89..595551338061 100644 --- a/src/Symfony/Component/CssSelector/Tests/Node/AbstractNodeTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Node/AbstractNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\CssSelector\Tests\Node; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Node\NodeInterface; -abstract class AbstractNodeTest extends \PHPUnit_Framework_TestCase +abstract class AbstractNodeTest extends TestCase { /** @dataProvider getToStringConversionTestData */ public function testToStringConversion(NodeInterface $node, $representation) diff --git a/src/Symfony/Component/CssSelector/Tests/Node/SpecificityTest.php b/src/Symfony/Component/CssSelector/Tests/Node/SpecificityTest.php index c34fe5fc7348..b58eb8929c85 100644 --- a/src/Symfony/Component/CssSelector/Tests/Node/SpecificityTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Node/SpecificityTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\CssSelector\Tests\Node; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Node\Specificity; -class SpecificityTest extends \PHPUnit_Framework_TestCase +class SpecificityTest extends TestCase { /** @dataProvider getValueTestData */ public function testValue(Specificity $specificity, $value) diff --git a/src/Symfony/Component/CssSelector/Tests/Parser/Handler/AbstractHandlerTest.php b/src/Symfony/Component/CssSelector/Tests/Parser/Handler/AbstractHandlerTest.php index 57afa5a2422b..8005616a9208 100644 --- a/src/Symfony/Component/CssSelector/Tests/Parser/Handler/AbstractHandlerTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Parser/Handler/AbstractHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\CssSelector\Tests\Parser\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Parser\Reader; use Symfony\Component\CssSelector\Parser\Token; use Symfony\Component\CssSelector\Parser\TokenStream; @@ -18,7 +19,7 @@ /** * @author Jean-François Simon */ -abstract class AbstractHandlerTest extends \PHPUnit_Framework_TestCase +abstract class AbstractHandlerTest extends TestCase { /** @dataProvider getHandleValueTestData */ public function testHandleValue($value, Token $expectedToken, $remainingContent) diff --git a/src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php b/src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php index 0454d9faa6f7..0844709d9654 100644 --- a/src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\CssSelector\Tests\Parser; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Exception\SyntaxErrorException; use Symfony\Component\CssSelector\Node\FunctionNode; use Symfony\Component\CssSelector\Node\SelectorNode; use Symfony\Component\CssSelector\Parser\Parser; use Symfony\Component\CssSelector\Parser\Token; -class ParserTest extends \PHPUnit_Framework_TestCase +class ParserTest extends TestCase { /** @dataProvider getParserTestData */ public function testParser($source, $representation) diff --git a/src/Symfony/Component/CssSelector/Tests/Parser/ReaderTest.php b/src/Symfony/Component/CssSelector/Tests/Parser/ReaderTest.php index 03c054eaaeeb..21eb60846240 100644 --- a/src/Symfony/Component/CssSelector/Tests/Parser/ReaderTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Parser/ReaderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\CssSelector\Tests\Parser; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Parser\Reader; -class ReaderTest extends \PHPUnit_Framework_TestCase +class ReaderTest extends TestCase { public function testIsEOF() { diff --git a/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ClassParserTest.php b/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ClassParserTest.php index 6efdd6765763..7e92f5baeed1 100644 --- a/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ClassParserTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ClassParserTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\CssSelector\Tests\Parser\Shortcut; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Node\SelectorNode; use Symfony\Component\CssSelector\Parser\Shortcut\ClassParser; /** * @author Jean-François Simon */ -class ClassParserTest extends \PHPUnit_Framework_TestCase +class ClassParserTest extends TestCase { /** @dataProvider getParseTestData */ public function testParse($source, $representation) diff --git a/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ElementParserTest.php b/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ElementParserTest.php index b30b5ee7acd1..05a730fde15a 100644 --- a/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ElementParserTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ElementParserTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\CssSelector\Tests\Parser\Shortcut; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Node\SelectorNode; use Symfony\Component\CssSelector\Parser\Shortcut\ElementParser; /** * @author Jean-François Simon */ -class ElementParserTest extends \PHPUnit_Framework_TestCase +class ElementParserTest extends TestCase { /** @dataProvider getParseTestData */ public function testParse($source, $representation) diff --git a/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/EmptyStringParserTest.php b/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/EmptyStringParserTest.php index b7c3539c67a9..1cf742cf2016 100644 --- a/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/EmptyStringParserTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/EmptyStringParserTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\CssSelector\Tests\Parser\Shortcut; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Node\SelectorNode; use Symfony\Component\CssSelector\Parser\Shortcut\EmptyStringParser; /** * @author Jean-François Simon */ -class EmptyStringParserTest extends \PHPUnit_Framework_TestCase +class EmptyStringParserTest extends TestCase { public function testParse() { diff --git a/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/HashParserTest.php b/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/HashParserTest.php index d2ce891ec820..82f555d9abf1 100644 --- a/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/HashParserTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/HashParserTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\CssSelector\Tests\Parser\Shortcut; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Node\SelectorNode; use Symfony\Component\CssSelector\Parser\Shortcut\HashParser; /** * @author Jean-François Simon */ -class HashParserTest extends \PHPUnit_Framework_TestCase +class HashParserTest extends TestCase { /** @dataProvider getParseTestData */ public function testParse($source, $representation) diff --git a/src/Symfony/Component/CssSelector/Tests/Parser/TokenStreamTest.php b/src/Symfony/Component/CssSelector/Tests/Parser/TokenStreamTest.php index 8f3253a7d59f..d6ff1132e607 100644 --- a/src/Symfony/Component/CssSelector/Tests/Parser/TokenStreamTest.php +++ b/src/Symfony/Component/CssSelector/Tests/Parser/TokenStreamTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\CssSelector\Tests\Parser; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\Parser\Token; use Symfony\Component\CssSelector\Parser\TokenStream; -class TokenStreamTest extends \PHPUnit_Framework_TestCase +class TokenStreamTest extends TestCase { public function testGetNext() { diff --git a/src/Symfony/Component/CssSelector/Tests/XPath/TranslatorTest.php b/src/Symfony/Component/CssSelector/Tests/XPath/TranslatorTest.php index 407458f48f2c..79e2da14bb24 100644 --- a/src/Symfony/Component/CssSelector/Tests/XPath/TranslatorTest.php +++ b/src/Symfony/Component/CssSelector/Tests/XPath/TranslatorTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\CssSelector\Tests\XPath; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\XPath\Extension\HtmlExtension; use Symfony\Component\CssSelector\XPath\Translator; -class TranslatorTest extends \PHPUnit_Framework_TestCase +class TranslatorTest extends TestCase { /** @dataProvider getXpathLiteralTestData */ public function testXpathLiteral($value, $literal) diff --git a/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php b/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php index eeec0e0beb08..8d0a027346b3 100644 --- a/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php +++ b/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Debug\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Debug\DebugClassLoader; use Symfony\Component\Debug\ErrorHandler; -class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase +class DebugClassLoaderTest extends TestCase { /** * @var int Error reporting level before running tests diff --git a/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php b/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php index 973c3d750169..898a985a29e2 100644 --- a/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Debug\Tests; +use PHPUnit\Framework\TestCase; use Psr\Log\LogLevel; use Symfony\Component\Debug\ErrorHandler; use Symfony\Component\Debug\Exception\ContextErrorException; @@ -21,7 +22,7 @@ * @author Robert Schönthal * @author Nicolas Grekas */ -class ErrorHandlerTest extends \PHPUnit_Framework_TestCase +class ErrorHandlerTest extends TestCase { public function testRegister() { diff --git a/src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php b/src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php index 6c570e235def..ae01e9cb0d83 100644 --- a/src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php +++ b/src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Debug\Tests\Exception; +use PHPUnit\Framework\TestCase; use Symfony\Component\Debug\Exception\FlattenException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException; @@ -27,7 +28,7 @@ use Symfony\Component\HttpKernel\Exception\TooManyRequestsHttpException; use Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException; -class FlattenExceptionTest extends \PHPUnit_Framework_TestCase +class FlattenExceptionTest extends TestCase { public function testStatusCode() { diff --git a/src/Symfony/Component/Debug/Tests/ExceptionHandlerTest.php b/src/Symfony/Component/Debug/Tests/ExceptionHandlerTest.php index fb105828d23f..77cc0b5cbdd4 100644 --- a/src/Symfony/Component/Debug/Tests/ExceptionHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/ExceptionHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Debug\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Debug\ExceptionHandler; use Symfony\Component\Debug\Exception\OutOfMemoryException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; @@ -18,7 +19,7 @@ require_once __DIR__.'/HeaderMock.php'; -class ExceptionHandlerTest extends \PHPUnit_Framework_TestCase +class ExceptionHandlerTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php index c93983721f6c..0611ed91e31d 100644 --- a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Debug\Tests\FatalErrorHandler; +use PHPUnit\Framework\TestCase; use Symfony\Component\ClassLoader\ClassLoader as SymfonyClassLoader; use Symfony\Component\ClassLoader\UniversalClassLoader as SymfonyUniversalClassLoader; use Symfony\Component\Debug\Exception\FatalErrorException; @@ -18,7 +19,7 @@ use Symfony\Component\Debug\DebugClassLoader; use Composer\Autoload\ClassLoader as ComposerClassLoader; -class ClassNotFoundFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase +class ClassNotFoundFatalErrorHandlerTest extends TestCase { public static function setUpBeforeClass() { diff --git a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php index 795b74781c23..1dc2120045c2 100644 --- a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Debug\Tests\FatalErrorHandler; +use PHPUnit\Framework\TestCase; use Symfony\Component\Debug\Exception\FatalErrorException; use Symfony\Component\Debug\FatalErrorHandler\UndefinedFunctionFatalErrorHandler; -class UndefinedFunctionFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase +class UndefinedFunctionFatalErrorHandlerTest extends TestCase { /** * @dataProvider provideUndefinedFunctionData diff --git a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php index 22cbc3033bd6..739e5b2b15b7 100644 --- a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Debug\Tests\FatalErrorHandler; +use PHPUnit\Framework\TestCase; use Symfony\Component\Debug\Exception\FatalErrorException; use Symfony\Component\Debug\FatalErrorHandler\UndefinedMethodFatalErrorHandler; -class UndefinedMethodFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase +class UndefinedMethodFatalErrorHandlerTest extends TestCase { /** * @dataProvider provideUndefinedMethodData diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/AnalyzeServiceReferencesPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/AnalyzeServiceReferencesPassTest.php index 04fe7c2cf116..1c374662ff2e 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/AnalyzeServiceReferencesPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/AnalyzeServiceReferencesPassTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Compiler\AnalyzeServiceReferencesPass; use Symfony\Component\DependencyInjection\Compiler\RepeatedPass; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; -class AnalyzeServiceReferencesPassTest extends \PHPUnit_Framework_TestCase +class AnalyzeServiceReferencesPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutoAliasServicePassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutoAliasServicePassTest.php index e3aba6d7074c..f8199b8c9f79 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutoAliasServicePassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutoAliasServicePassTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\AutoAliasServicePass; use Symfony\Component\DependencyInjection\ContainerBuilder; -class AutoAliasServicePassTest extends \PHPUnit_Framework_TestCase +class AutoAliasServicePassTest extends TestCase { /** * @expectedException \Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php index 55351e551c87..d894f7ab6f6d 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Compiler\CheckCircularReferencesPass; use Symfony\Component\DependencyInjection\Compiler\AnalyzeServiceReferencesPass; use Symfony\Component\DependencyInjection\Compiler\Compiler; use Symfony\Component\DependencyInjection\ContainerBuilder; -class CheckCircularReferencesPassTest extends \PHPUnit_Framework_TestCase +class CheckCircularReferencesPassTest extends TestCase { /** * @expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckDefinitionValidityPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckDefinitionValidityPassTest.php index 4e8efdc8b4fa..60f44c3f0224 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckDefinitionValidityPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckDefinitionValidityPassTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\CheckDefinitionValidityPass; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; -class CheckDefinitionValidityPassTest extends \PHPUnit_Framework_TestCase +class CheckDefinitionValidityPassTest extends TestCase { /** * @expectedException \Symfony\Component\DependencyInjection\Exception\RuntimeException diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckExceptionOnInvalidReferenceBehaviorPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckExceptionOnInvalidReferenceBehaviorPassTest.php index 18b605b4671c..c5f4ec7f9569 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckExceptionOnInvalidReferenceBehaviorPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckExceptionOnInvalidReferenceBehaviorPassTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; -class CheckExceptionOnInvalidReferenceBehaviorPassTest extends \PHPUnit_Framework_TestCase +class CheckExceptionOnInvalidReferenceBehaviorPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckReferenceValidityPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckReferenceValidityPassTest.php index cd4448a96abf..d7e15df9e43a 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckReferenceValidityPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckReferenceValidityPassTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Scope; use Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; -class CheckReferenceValidityPassTest extends \PHPUnit_Framework_TestCase +class CheckReferenceValidityPassTest extends TestCase { public function testProcessIgnoresScopeWideningIfNonStrictReference() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/DecoratorServicePassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/DecoratorServicePassTest.php index 10781e255e37..7f935acbfc91 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/DecoratorServicePassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/DecoratorServicePassTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\DecoratorServicePass; -class DecoratorServicePassTest extends \PHPUnit_Framework_TestCase +class DecoratorServicePassTest extends TestCase { public function testProcessWithoutAlias() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ExtensionCompilerPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ExtensionCompilerPassTest.php index 33060dcd0e29..e08361145877 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ExtensionCompilerPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ExtensionCompilerPassTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\ExtensionCompilerPass; /** * @author Wouter J */ -class ExtensionCompilerPassTest extends \PHPUnit_Framework_TestCase +class ExtensionCompilerPassTest extends TestCase { private $container; private $pass; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/InlineServiceDefinitionsPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/InlineServiceDefinitionsPassTest.php index 590ca4cfae2f..e3056cf4fde6 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/InlineServiceDefinitionsPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/InlineServiceDefinitionsPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Scope; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Compiler\AnalyzeServiceReferencesPass; @@ -19,7 +20,7 @@ use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; -class InlineServiceDefinitionsPassTest extends \PHPUnit_Framework_TestCase +class InlineServiceDefinitionsPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php index c4479403aa3d..db33d4b4a14d 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -18,7 +19,7 @@ /** * This class tests the integration of the different compiler passes. */ -class IntegrationTest extends \PHPUnit_Framework_TestCase +class IntegrationTest extends TestCase { /** * This tests that dependencies are correctly processed. diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/LegacyResolveParameterPlaceHoldersPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/LegacyResolveParameterPlaceHoldersPassTest.php index e730a1a288a8..8450ee98988a 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/LegacyResolveParameterPlaceHoldersPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/LegacyResolveParameterPlaceHoldersPassTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\ResolveParameterPlaceHoldersPass; use Symfony\Component\DependencyInjection\ContainerBuilder; /** * @group legacy */ -class LegacyResolveParameterPlaceHoldersPassTest extends \PHPUnit_Framework_TestCase +class LegacyResolveParameterPlaceHoldersPassTest extends TestCase { public function testFactoryClassParametersShouldBeResolved() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/MergeExtensionConfigurationPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/MergeExtensionConfigurationPassTest.php index 6ba0b2f48110..b35521d20620 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/MergeExtensionConfigurationPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/MergeExtensionConfigurationPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\Config\Resource\FileResource; @@ -18,7 +19,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; -class MergeExtensionConfigurationPassTest extends \PHPUnit_Framework_TestCase +class MergeExtensionConfigurationPassTest extends TestCase { public function testExpressionLanguageProviderForwarding() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/RemoveUnusedDefinitionsPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/RemoveUnusedDefinitionsPassTest.php index 82149ebdb3c1..57dd42b487ab 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/RemoveUnusedDefinitionsPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/RemoveUnusedDefinitionsPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\AnalyzeServiceReferencesPass; use Symfony\Component\DependencyInjection\Compiler\RepeatedPass; use Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass; @@ -18,7 +19,7 @@ use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; -class RemoveUnusedDefinitionsPassTest extends \PHPUnit_Framework_TestCase +class RemoveUnusedDefinitionsPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ReplaceAliasByActualDefinitionPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ReplaceAliasByActualDefinitionPassTest.php index 1b2ec6bd7604..7e7c3e41e2a8 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ReplaceAliasByActualDefinitionPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ReplaceAliasByActualDefinitionPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; @@ -18,7 +19,7 @@ require_once __DIR__.'/../Fixtures/includes/foo.php'; -class ReplaceAliasByActualDefinitionPassTest extends \PHPUnit_Framework_TestCase +class ReplaceAliasByActualDefinitionPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php index 845edd2c1419..6d7ab4b013e5 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\DefinitionDecorator; use Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass; use Symfony\Component\DependencyInjection\ContainerBuilder; -class ResolveDefinitionTemplatesPassTest extends \PHPUnit_Framework_TestCase +class ResolveDefinitionTemplatesPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php index 72058868d44e..53e314e23df6 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Compiler\ResolveInvalidReferencesPass; use Symfony\Component\DependencyInjection\ContainerBuilder; -class ResolveInvalidReferencesPassTest extends \PHPUnit_Framework_TestCase +class ResolveInvalidReferencesPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveParameterPlaceHoldersPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveParameterPlaceHoldersPassTest.php index 1f604c228f13..50be82d74111 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveParameterPlaceHoldersPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveParameterPlaceHoldersPassTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\ResolveParameterPlaceHoldersPass; use Symfony\Component\DependencyInjection\ContainerBuilder; -class ResolveParameterPlaceHoldersPassTest extends \PHPUnit_Framework_TestCase +class ResolveParameterPlaceHoldersPassTest extends TestCase { private $compilerPass; private $container; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php index 651ca85a5b8b..aaf2f5593a96 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Compiler\ResolveReferencesToAliasesPass; use Symfony\Component\DependencyInjection\ContainerBuilder; -class ResolveReferencesToAliasesPassTest extends \PHPUnit_Framework_TestCase +class ResolveReferencesToAliasesPassTest extends TestCase { public function testProcess() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php b/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php index 77015aab2500..192abb7092c0 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php @@ -14,6 +14,7 @@ require_once __DIR__.'/Fixtures/includes/classes.php'; require_once __DIR__.'/Fixtures/includes/ProjectExtension.php'; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Resource\ResourceInterface; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -32,7 +33,7 @@ use Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition; use Symfony\Component\ExpressionLanguage\Expression; -class ContainerBuilderTest extends \PHPUnit_Framework_TestCase +class ContainerBuilderTest extends TestCase { public function testDefinitions() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php b/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php index 83a805d61212..02018c5a0a99 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\DependencyInjection\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Scope; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; use Symfony\Component\DependencyInjection\Exception\InactiveScopeException; -class ContainerTest extends \PHPUnit_Framework_TestCase +class ContainerTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/CrossCheckTest.php b/src/Symfony/Component/DependencyInjection/Tests/CrossCheckTest.php index f81fcf060896..6bdc8f4f4950 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/CrossCheckTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/CrossCheckTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\DependencyInjection\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; -class CrossCheckTest extends \PHPUnit_Framework_TestCase +class CrossCheckTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php b/src/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php index 732eead1407b..9581743fd5d6 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\DependencyInjection\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\DefinitionDecorator; -class DefinitionDecoratorTest extends \PHPUnit_Framework_TestCase +class DefinitionDecoratorTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php b/src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php index 0d3cb8a000bf..8ca51c0b6efe 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\DependencyInjection\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; -class DefinitionTest extends \PHPUnit_Framework_TestCase +class DefinitionTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/GraphvizDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/GraphvizDumperTest.php index 5da11359fa8b..f457c1776b36 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/GraphvizDumperTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/GraphvizDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\DependencyInjection\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Dumper\GraphvizDumper; -class GraphvizDumperTest extends \PHPUnit_Framework_TestCase +class GraphvizDumperTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php index 05918b14ec52..d46b250c51ce 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Dumper; use DummyProxyDumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Dumper\PhpDumper; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; @@ -22,7 +23,7 @@ require_once __DIR__.'/../Fixtures/includes/classes.php'; -class PhpDumperTest extends \PHPUnit_Framework_TestCase +class PhpDumperTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php index 8aa544c728f4..9f96f33e9dec 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\DependencyInjection\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Dumper\XmlDumper; -class XmlDumperTest extends \PHPUnit_Framework_TestCase +class XmlDumperTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php index 0f421c0127e5..f19a2f5cb834 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\DependencyInjection\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Dumper\YamlDumper; use Symfony\Component\Yaml\Yaml; -class YamlDumperTest extends \PHPUnit_Framework_TestCase +class YamlDumperTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php b/src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php index e7f19a6e94dc..90852c359e51 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\DependencyInjection\Tests\Extension; -class ExtensionTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class ExtensionTest extends TestCase { /** * @dataProvider getResolvedEnabledFixtures diff --git a/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/Instantiator/RealServiceInstantiatorTest.php b/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/Instantiator/RealServiceInstantiatorTest.php index a3524c3d7263..f93965f46ebf 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/Instantiator/RealServiceInstantiatorTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/Instantiator/RealServiceInstantiatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\LazyProxy\Instantiator; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\LazyProxy\Instantiator\RealServiceInstantiator; @@ -19,7 +20,7 @@ * * @author Marco Pivetta */ -class RealServiceInstantiatorTest extends \PHPUnit_Framework_TestCase +class RealServiceInstantiatorTest extends TestCase { public function testInstantiateProxy() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php index 1fcedca5f98c..cde2c147e752 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\LazyProxy\PhpDumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\NullDumper; @@ -19,7 +20,7 @@ * * @author Marco Pivetta */ -class NullDumperTest extends \PHPUnit_Framework_TestCase +class NullDumperTest extends TestCase { public function testNullDumper() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php b/src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php index 81d2b51a2fa9..1cb8d33b6ed4 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\DependencyInjection\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; /** * @group legacy */ -class LegacyContainerBuilderTest extends \PHPUnit_Framework_TestCase +class LegacyContainerBuilderTest extends TestCase { public function testCreateServiceFactoryMethod() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/LegacyDefinitionTest.php b/src/Symfony/Component/DependencyInjection/Tests/LegacyDefinitionTest.php index 07891fff6dc5..a605729f97ad 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/LegacyDefinitionTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/LegacyDefinitionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\DependencyInjection\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; /** * @group legacy */ -class LegacyDefinitionTest extends \PHPUnit_Framework_TestCase +class LegacyDefinitionTest extends TestCase { public function testSetGetFactoryClass() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Loader/ClosureLoaderTest.php b/src/Symfony/Component/DependencyInjection/Tests/Loader/ClosureLoaderTest.php index be057313ab90..125e09b6cf8f 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Loader/ClosureLoaderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Loader/ClosureLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\DependencyInjection\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\ClosureLoader; -class ClosureLoaderTest extends \PHPUnit_Framework_TestCase +class ClosureLoaderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php b/src/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php index cab44b20c74c..70fbf306070c 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\DependencyInjection\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\IniFileLoader; use Symfony\Component\Config\FileLocator; -class IniFileLoaderTest extends \PHPUnit_Framework_TestCase +class IniFileLoaderTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Loader/PhpFileLoaderTest.php b/src/Symfony/Component/DependencyInjection/Tests/Loader/PhpFileLoaderTest.php index 00b957b73115..b936bf5e63ce 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Loader/PhpFileLoaderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Loader/PhpFileLoaderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\DependencyInjection\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; use Symfony\Component\Config\FileLocator; -class PhpFileLoaderTest extends \PHPUnit_Framework_TestCase +class PhpFileLoaderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php b/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php index 8c6674efe715..66da1912c479 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; @@ -21,7 +22,7 @@ use Symfony\Component\Config\FileLocator; use Symfony\Component\ExpressionLanguage\Expression; -class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase +class XmlFileLoaderTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php b/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php index b2082f07a126..85a52ad1c245 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; @@ -21,7 +22,7 @@ use Symfony\Component\Config\FileLocator; use Symfony\Component\ExpressionLanguage\Expression; -class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase +class YamlFileLoaderTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php index b87ca916bbfe..ef9a66f6cff7 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\DependencyInjection\Tests\ParameterBag; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag; -class FrozenParameterBagTest extends \PHPUnit_Framework_TestCase +class FrozenParameterBagTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php index 39dfb48455b4..ae6b1990954b 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\DependencyInjection\Tests\ParameterBag; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException; use Symfony\Component\DependencyInjection\Exception\ParameterCircularReferenceException; use Symfony\Component\DependencyInjection\Exception\RuntimeException; -class ParameterBagTest extends \PHPUnit_Framework_TestCase +class ParameterBagTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/ParameterTest.php b/src/Symfony/Component/DependencyInjection/Tests/ParameterTest.php index 571ca029881f..975e5582c22f 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ParameterTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ParameterTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\DependencyInjection\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Parameter; -class ParameterTest extends \PHPUnit_Framework_TestCase +class ParameterTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/ReferenceTest.php b/src/Symfony/Component/DependencyInjection/Tests/ReferenceTest.php index 6800267c96b1..ec0803fa3b8b 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ReferenceTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ReferenceTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\DependencyInjection\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; -class ReferenceTest extends \PHPUnit_Framework_TestCase +class ReferenceTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php b/src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php index 5d5c633888fa..8e34a361580a 100755 --- a/src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php +++ b/src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\DomCrawler\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\CssSelector\CssSelector; use Symfony\Component\DomCrawler\Crawler; -class CrawlerTest extends \PHPUnit_Framework_TestCase +class CrawlerTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/DomCrawler/Tests/Field/FormFieldTestCase.php b/src/Symfony/Component/DomCrawler/Tests/Field/FormFieldTestCase.php index 26b1b0e24465..2059d049c1d0 100644 --- a/src/Symfony/Component/DomCrawler/Tests/Field/FormFieldTestCase.php +++ b/src/Symfony/Component/DomCrawler/Tests/Field/FormFieldTestCase.php @@ -11,7 +11,9 @@ namespace Symfony\Component\DomCrawler\Tests\Field; -class FormFieldTestCase extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class FormFieldTestCase extends TestCase { protected function createNode($tag, $value, $attributes = array()) { diff --git a/src/Symfony/Component/DomCrawler/Tests/FormTest.php b/src/Symfony/Component/DomCrawler/Tests/FormTest.php index b052db213463..0a4cd7201e1b 100644 --- a/src/Symfony/Component/DomCrawler/Tests/FormTest.php +++ b/src/Symfony/Component/DomCrawler/Tests/FormTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\DomCrawler\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DomCrawler\Form; use Symfony\Component\DomCrawler\FormFieldRegistry; -class FormTest extends \PHPUnit_Framework_TestCase +class FormTest extends TestCase { public static function setUpBeforeClass() { diff --git a/src/Symfony/Component/DomCrawler/Tests/LinkTest.php b/src/Symfony/Component/DomCrawler/Tests/LinkTest.php index 98a45a3a0cef..3f0364705f98 100644 --- a/src/Symfony/Component/DomCrawler/Tests/LinkTest.php +++ b/src/Symfony/Component/DomCrawler/Tests/LinkTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\DomCrawler\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DomCrawler\Link; -class LinkTest extends \PHPUnit_Framework_TestCase +class LinkTest extends TestCase { /** * @expectedException \LogicException diff --git a/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php b/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php index bae74bb888df..bde6caa4eeb3 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\EventDispatcher\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -abstract class AbstractEventDispatcherTest extends \PHPUnit_Framework_TestCase +abstract class AbstractEventDispatcherTest extends TestCase { /* Some pseudo events */ const preFoo = 'pre.foo'; diff --git a/src/Symfony/Component/EventDispatcher/Tests/Debug/TraceableEventDispatcherTest.php b/src/Symfony/Component/EventDispatcher/Tests/Debug/TraceableEventDispatcherTest.php index 1b424e93fcaa..9ee85bb0ac25 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/Debug/TraceableEventDispatcherTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/Debug/TraceableEventDispatcherTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\EventDispatcher\Tests\Debug; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; @@ -18,7 +19,7 @@ use Symfony\Component\EventDispatcher\Event; use Symfony\Component\Stopwatch\Stopwatch; -class TraceableEventDispatcherTest extends \PHPUnit_Framework_TestCase +class TraceableEventDispatcherTest extends TestCase { public function testAddRemoveListener() { diff --git a/src/Symfony/Component/EventDispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php b/src/Symfony/Component/EventDispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php index cb04f74beb6d..53d7282b37a7 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\EventDispatcher\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass; -class RegisterListenersPassTest extends \PHPUnit_Framework_TestCase +class RegisterListenersPassTest extends TestCase { /** * Tests that event subscribers not implementing EventSubscriberInterface diff --git a/src/Symfony/Component/EventDispatcher/Tests/EventTest.php b/src/Symfony/Component/EventDispatcher/Tests/EventTest.php index 9a822670cd5e..bdc14abbf5a3 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/EventTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/EventTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\EventDispatcher\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\EventDispatcher; /** * Test class for Event. */ -class EventTest extends \PHPUnit_Framework_TestCase +class EventTest extends TestCase { /** * @var \Symfony\Component\EventDispatcher\Event diff --git a/src/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php b/src/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php index aebd82dabdf4..bbb459fb3494 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\EventDispatcher\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\GenericEvent; /** * Test class for Event. */ -class GenericEventTest extends \PHPUnit_Framework_TestCase +class GenericEventTest extends TestCase { /** * @var GenericEvent diff --git a/src/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php b/src/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php index 0f8868037d15..04f2861e3319 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\EventDispatcher\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\ImmutableEventDispatcher; /** * @author Bernhard Schussek */ -class ImmutableEventDispatcherTest extends \PHPUnit_Framework_TestCase +class ImmutableEventDispatcherTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Component/ExpressionLanguage/Tests/ExpressionLanguageTest.php b/src/Symfony/Component/ExpressionLanguage/Tests/ExpressionLanguageTest.php index d2e60bd64905..fa8d1f4b6457 100644 --- a/src/Symfony/Component/ExpressionLanguage/Tests/ExpressionLanguageTest.php +++ b/src/Symfony/Component/ExpressionLanguage/Tests/ExpressionLanguageTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\ExpressionLanguage\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\ExpressionLanguage\Tests\Fixtures\TestProvider; -class ExpressionLanguageTest extends \PHPUnit_Framework_TestCase +class ExpressionLanguageTest extends TestCase { public function testCachedParse() { diff --git a/src/Symfony/Component/ExpressionLanguage/Tests/ExpressionTest.php b/src/Symfony/Component/ExpressionLanguage/Tests/ExpressionTest.php index f28c6a942397..052ef2201a32 100644 --- a/src/Symfony/Component/ExpressionLanguage/Tests/ExpressionTest.php +++ b/src/Symfony/Component/ExpressionLanguage/Tests/ExpressionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\ExpressionLanguage\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ExpressionLanguage\Expression; -class ExpressionTest extends \PHPUnit_Framework_TestCase +class ExpressionTest extends TestCase { public function testSerialization() { diff --git a/src/Symfony/Component/ExpressionLanguage/Tests/LexerTest.php b/src/Symfony/Component/ExpressionLanguage/Tests/LexerTest.php index 8af5c1c10175..4292c2235969 100644 --- a/src/Symfony/Component/ExpressionLanguage/Tests/LexerTest.php +++ b/src/Symfony/Component/ExpressionLanguage/Tests/LexerTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\ExpressionLanguage\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ExpressionLanguage\Lexer; use Symfony\Component\ExpressionLanguage\Token; use Symfony\Component\ExpressionLanguage\TokenStream; -class LexerTest extends \PHPUnit_Framework_TestCase +class LexerTest extends TestCase { /** * @dataProvider getTokenizeData diff --git a/src/Symfony/Component/ExpressionLanguage/Tests/Node/AbstractNodeTest.php b/src/Symfony/Component/ExpressionLanguage/Tests/Node/AbstractNodeTest.php index 58b0e177e8e1..550fea976fab 100644 --- a/src/Symfony/Component/ExpressionLanguage/Tests/Node/AbstractNodeTest.php +++ b/src/Symfony/Component/ExpressionLanguage/Tests/Node/AbstractNodeTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\ExpressionLanguage\Tests\Node; +use PHPUnit\Framework\TestCase; use Symfony\Component\ExpressionLanguage\Compiler; -abstract class AbstractNodeTest extends \PHPUnit_Framework_TestCase +abstract class AbstractNodeTest extends TestCase { /** * @dataProvider getEvaluateData diff --git a/src/Symfony/Component/ExpressionLanguage/Tests/Node/NodeTest.php b/src/Symfony/Component/ExpressionLanguage/Tests/Node/NodeTest.php index 6901329a5e71..0f35b5febe8e 100644 --- a/src/Symfony/Component/ExpressionLanguage/Tests/Node/NodeTest.php +++ b/src/Symfony/Component/ExpressionLanguage/Tests/Node/NodeTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\ExpressionLanguage\Tests\Node; +use PHPUnit\Framework\TestCase; use Symfony\Component\ExpressionLanguage\Node\Node; use Symfony\Component\ExpressionLanguage\Node\ConstantNode; -class NodeTest extends \PHPUnit_Framework_TestCase +class NodeTest extends TestCase { public function testToString() { diff --git a/src/Symfony/Component/ExpressionLanguage/Tests/ParsedExpressionTest.php b/src/Symfony/Component/ExpressionLanguage/Tests/ParsedExpressionTest.php index 18bde0210eab..d28101fb6fe0 100644 --- a/src/Symfony/Component/ExpressionLanguage/Tests/ParsedExpressionTest.php +++ b/src/Symfony/Component/ExpressionLanguage/Tests/ParsedExpressionTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\ExpressionLanguage\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ExpressionLanguage\Node\ConstantNode; use Symfony\Component\ExpressionLanguage\ParsedExpression; -class ParsedExpressionTest extends \PHPUnit_Framework_TestCase +class ParsedExpressionTest extends TestCase { public function testSerialization() { diff --git a/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php b/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php index dd850dd36003..8996d5bfa023 100644 --- a/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php +++ b/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\ExpressionLanguage\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ExpressionLanguage\Parser; use Symfony\Component\ExpressionLanguage\Lexer; use Symfony\Component\ExpressionLanguage\Node; -class ParserTest extends \PHPUnit_Framework_TestCase +class ParserTest extends TestCase { /** * @expectedException \Symfony\Component\ExpressionLanguage\SyntaxError diff --git a/src/Symfony/Component/Filesystem/Tests/ExceptionTest.php b/src/Symfony/Component/Filesystem/Tests/ExceptionTest.php index 53bd8db76a00..5a04e0409048 100644 --- a/src/Symfony/Component/Filesystem/Tests/ExceptionTest.php +++ b/src/Symfony/Component/Filesystem/Tests/ExceptionTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Filesystem\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Exception\FileNotFoundException; /** * Test class for Filesystem. */ -class ExceptionTest extends \PHPUnit_Framework_TestCase +class ExceptionTest extends TestCase { public function testGetPath() { diff --git a/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php b/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php index 63d8b8fc9023..5586a00547a6 100644 --- a/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php +++ b/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Filesystem\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; -class FilesystemTestCase extends \PHPUnit_Framework_TestCase +class FilesystemTestCase extends TestCase { private $umask; diff --git a/src/Symfony/Component/Filesystem/Tests/LockHandlerTest.php b/src/Symfony/Component/Filesystem/Tests/LockHandlerTest.php index c7509f61e686..1fc2ebc0c1e6 100644 --- a/src/Symfony/Component/Filesystem/Tests/LockHandlerTest.php +++ b/src/Symfony/Component/Filesystem/Tests/LockHandlerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Filesystem\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\LockHandler; -class LockHandlerTest extends \PHPUnit_Framework_TestCase +class LockHandlerTest extends TestCase { /** * @expectedException \Symfony\Component\Filesystem\Exception\IOException diff --git a/src/Symfony/Component/Finder/Tests/Comparator/ComparatorTest.php b/src/Symfony/Component/Finder/Tests/Comparator/ComparatorTest.php index bf5984414f65..656fc57a4bc4 100644 --- a/src/Symfony/Component/Finder/Tests/Comparator/ComparatorTest.php +++ b/src/Symfony/Component/Finder/Tests/Comparator/ComparatorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests\Comparator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Comparator\Comparator; -class ComparatorTest extends \PHPUnit_Framework_TestCase +class ComparatorTest extends TestCase { public function testGetSetOperator() { diff --git a/src/Symfony/Component/Finder/Tests/Comparator/DateComparatorTest.php b/src/Symfony/Component/Finder/Tests/Comparator/DateComparatorTest.php index 273912635e33..8a6c1ddfd19e 100644 --- a/src/Symfony/Component/Finder/Tests/Comparator/DateComparatorTest.php +++ b/src/Symfony/Component/Finder/Tests/Comparator/DateComparatorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests\Comparator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Comparator\DateComparator; -class DateComparatorTest extends \PHPUnit_Framework_TestCase +class DateComparatorTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Finder/Tests/Comparator/NumberComparatorTest.php b/src/Symfony/Component/Finder/Tests/Comparator/NumberComparatorTest.php index 8284d078a851..30a75c738c5a 100644 --- a/src/Symfony/Component/Finder/Tests/Comparator/NumberComparatorTest.php +++ b/src/Symfony/Component/Finder/Tests/Comparator/NumberComparatorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests\Comparator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Comparator\NumberComparator; -class NumberComparatorTest extends \PHPUnit_Framework_TestCase +class NumberComparatorTest extends TestCase { /** * @dataProvider getConstructorTestData diff --git a/src/Symfony/Component/Finder/Tests/Expression/ExpressionTest.php b/src/Symfony/Component/Finder/Tests/Expression/ExpressionTest.php index 4254a453a0c0..f551c9bdacee 100644 --- a/src/Symfony/Component/Finder/Tests/Expression/ExpressionTest.php +++ b/src/Symfony/Component/Finder/Tests/Expression/ExpressionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests\Expression; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Expression\Expression; -class ExpressionTest extends \PHPUnit_Framework_TestCase +class ExpressionTest extends TestCase { /** * @dataProvider getTypeGuesserData diff --git a/src/Symfony/Component/Finder/Tests/Expression/GlobTest.php b/src/Symfony/Component/Finder/Tests/Expression/GlobTest.php index 9d4c3e571cf1..acac5cc33c58 100644 --- a/src/Symfony/Component/Finder/Tests/Expression/GlobTest.php +++ b/src/Symfony/Component/Finder/Tests/Expression/GlobTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests\Expression; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Expression\Expression; -class GlobTest extends \PHPUnit_Framework_TestCase +class GlobTest extends TestCase { /** * @dataProvider getToRegexData diff --git a/src/Symfony/Component/Finder/Tests/Expression/RegexTest.php b/src/Symfony/Component/Finder/Tests/Expression/RegexTest.php index 620ba1003e72..c1342f7ab539 100644 --- a/src/Symfony/Component/Finder/Tests/Expression/RegexTest.php +++ b/src/Symfony/Component/Finder/Tests/Expression/RegexTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests\Expression; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Expression\Expression; -class RegexTest extends \PHPUnit_Framework_TestCase +class RegexTest extends TestCase { /** * @dataProvider getHasFlagsData diff --git a/src/Symfony/Component/Finder/Tests/GlobTest.php b/src/Symfony/Component/Finder/Tests/GlobTest.php index dd73e257ba82..b81151e1e478 100755 --- a/src/Symfony/Component/Finder/Tests/GlobTest.php +++ b/src/Symfony/Component/Finder/Tests/GlobTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Glob; -class GlobTest extends \PHPUnit_Framework_TestCase +class GlobTest extends TestCase { public function testGlobToRegexDelimiters() { diff --git a/src/Symfony/Component/Finder/Tests/Iterator/IteratorTestCase.php b/src/Symfony/Component/Finder/Tests/Iterator/IteratorTestCase.php index 2d29efedf1c2..c724a75c692d 100644 --- a/src/Symfony/Component/Finder/Tests/Iterator/IteratorTestCase.php +++ b/src/Symfony/Component/Finder/Tests/Iterator/IteratorTestCase.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Finder\Tests\Iterator; -abstract class IteratorTestCase extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +abstract class IteratorTestCase extends TestCase { protected function assertIterator($expected, \Traversable $iterator) { diff --git a/src/Symfony/Component/Finder/Tests/Iterator/MultiplePcreFilterIteratorTest.php b/src/Symfony/Component/Finder/Tests/Iterator/MultiplePcreFilterIteratorTest.php index 89d8edb0093b..99923a5eb256 100644 --- a/src/Symfony/Component/Finder/Tests/Iterator/MultiplePcreFilterIteratorTest.php +++ b/src/Symfony/Component/Finder/Tests/Iterator/MultiplePcreFilterIteratorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests\Iterator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator; -class MultiplePcreFilterIteratorTest extends \PHPUnit_Framework_TestCase +class MultiplePcreFilterIteratorTest extends TestCase { /** * @dataProvider getIsRegexFixtures diff --git a/src/Symfony/Component/Finder/Tests/Shell/CommandTest.php b/src/Symfony/Component/Finder/Tests/Shell/CommandTest.php index d45ea9d23825..c78e76169266 100644 --- a/src/Symfony/Component/Finder/Tests/Shell/CommandTest.php +++ b/src/Symfony/Component/Finder/Tests/Shell/CommandTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Finder\Tests\Shell; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Shell\Command; -class CommandTest extends \PHPUnit_Framework_TestCase +class CommandTest extends TestCase { public function testCreate() { diff --git a/src/Symfony/Component/Form/Test/FormIntegrationTestCase.php b/src/Symfony/Component/Form/Test/FormIntegrationTestCase.php index caab26970ce4..a5c0b23384d9 100644 --- a/src/Symfony/Component/Form/Test/FormIntegrationTestCase.php +++ b/src/Symfony/Component/Form/Test/FormIntegrationTestCase.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Form\Test; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Forms; use Symfony\Component\Form\FormFactoryInterface; /** * @author Bernhard Schussek */ -abstract class FormIntegrationTestCase extends \PHPUnit_Framework_TestCase +abstract class FormIntegrationTestCase extends TestCase { /** * @var FormFactoryInterface diff --git a/src/Symfony/Component/Form/Tests/AbstractExtensionTest.php b/src/Symfony/Component/Form/Tests/AbstractExtensionTest.php index b1534db3abc8..0d53365625af 100644 --- a/src/Symfony/Component/Form/Tests/AbstractExtensionTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractExtensionTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\AbstractExtension; use Symfony\Component\Form\Tests\Fixtures\FooType; -class AbstractExtensionTest extends \PHPUnit_Framework_TestCase +class AbstractExtensionTest extends TestCase { public function testHasType() { diff --git a/src/Symfony/Component/Form/Tests/AbstractFormTest.php b/src/Symfony/Component/Form/Tests/AbstractFormTest.php index ba8b574751c7..fb10318ebf57 100644 --- a/src/Symfony/Component/Form/Tests/AbstractFormTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractFormTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormBuilder; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface; -abstract class AbstractFormTest extends \PHPUnit_Framework_TestCase +abstract class AbstractFormTest extends TestCase { /** * @var EventDispatcherInterface diff --git a/src/Symfony/Component/Form/Tests/AbstractRequestHandlerTest.php b/src/Symfony/Component/Form/Tests/AbstractRequestHandlerTest.php index 93f6d7fb2259..0ef713da1745 100644 --- a/src/Symfony/Component/Form/Tests/AbstractRequestHandlerTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractRequestHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormError; use Symfony\Component\Form\FormFactory; use Symfony\Component\Form\Forms; @@ -19,7 +20,7 @@ /** * @author Bernhard Schussek */ -abstract class AbstractRequestHandlerTest extends \PHPUnit_Framework_TestCase +abstract class AbstractRequestHandlerTest extends TestCase { /** * @var RequestHandlerInterface diff --git a/src/Symfony/Component/Form/Tests/ButtonBuilderTest.php b/src/Symfony/Component/Form/Tests/ButtonBuilderTest.php index dc5d38b74486..5b2b2659a33c 100644 --- a/src/Symfony/Component/Form/Tests/ButtonBuilderTest.php +++ b/src/Symfony/Component/Form/Tests/ButtonBuilderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ButtonBuilder; /** * @author Alexander Cheprasov */ -class ButtonBuilderTest extends \PHPUnit_Framework_TestCase +class ButtonBuilderTest extends TestCase { public function getValidNames() { diff --git a/src/Symfony/Component/Form/Tests/ButtonTest.php b/src/Symfony/Component/Form/Tests/ButtonTest.php index 5fa2fa136874..08d2d74e65b3 100644 --- a/src/Symfony/Component/Form/Tests/ButtonTest.php +++ b/src/Symfony/Component/Form/Tests/ButtonTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ButtonBuilder; use Symfony\Component\Form\FormBuilder; /** * @author Bernhard Schussek */ -class ButtonTest extends \PHPUnit_Framework_TestCase +class ButtonTest extends TestCase { private $dispatcher; diff --git a/src/Symfony/Component/Form/Tests/CallbackTransformerTest.php b/src/Symfony/Component/Form/Tests/CallbackTransformerTest.php index af49e69e6c1e..396e3d91df40 100644 --- a/src/Symfony/Component/Form/Tests/CallbackTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/CallbackTransformerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\CallbackTransformer; -class CallbackTransformerTest extends \PHPUnit_Framework_TestCase +class CallbackTransformerTest extends TestCase { public function testTransform() { diff --git a/src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTest.php b/src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTest.php index 08e4285f0cd5..fc25cffc1fc2 100644 --- a/src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTest.php +++ b/src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTest.php @@ -11,10 +11,12 @@ namespace Symfony\Component\Form\Tests\ChoiceList; +use PHPUnit\Framework\TestCase; + /** * @author Bernhard Schussek */ -abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase +abstract class AbstractChoiceListTest extends TestCase { /** * @var \Symfony\Component\Form\ChoiceList\ChoiceListInterface diff --git a/src/Symfony/Component/Form/Tests/ChoiceList/Factory/CachingFactoryDecoratorTest.php b/src/Symfony/Component/Form/Tests/ChoiceList/Factory/CachingFactoryDecoratorTest.php index 251a1dfb5844..257aba96903e 100644 --- a/src/Symfony/Component/Form/Tests/ChoiceList/Factory/CachingFactoryDecoratorTest.php +++ b/src/Symfony/Component/Form/Tests/ChoiceList/Factory/CachingFactoryDecoratorTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Form\Tests\ChoiceList\Factory; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator; /** * @author Bernhard Schussek */ -class CachingFactoryDecoratorTest extends \PHPUnit_Framework_TestCase +class CachingFactoryDecoratorTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php b/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php index ac6f5d5c719b..0e281a8e8605 100644 --- a/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php +++ b/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\ChoiceList\Factory; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ChoiceList\ArrayChoiceList; use Symfony\Component\Form\ChoiceList\ChoiceListInterface; use Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory; @@ -21,7 +22,7 @@ use Symfony\Component\Form\ChoiceList\View\ChoiceView; use Symfony\Component\Form\Extension\Core\View\ChoiceView as LegacyChoiceView; -class DefaultChoiceListFactoryTest extends \PHPUnit_Framework_TestCase +class DefaultChoiceListFactoryTest extends TestCase { private $obj1; diff --git a/src/Symfony/Component/Form/Tests/ChoiceList/Factory/PropertyAccessDecoratorTest.php b/src/Symfony/Component/Form/Tests/ChoiceList/Factory/PropertyAccessDecoratorTest.php index 5dc192c3f24b..c9fbb5cbd9eb 100644 --- a/src/Symfony/Component/Form/Tests/ChoiceList/Factory/PropertyAccessDecoratorTest.php +++ b/src/Symfony/Component/Form/Tests/ChoiceList/Factory/PropertyAccessDecoratorTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Form\Tests\ChoiceList\Factory; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator; use Symfony\Component\PropertyAccess\PropertyPath; /** * @author Bernhard Schussek */ -class PropertyAccessDecoratorTest extends \PHPUnit_Framework_TestCase +class PropertyAccessDecoratorTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Component/Form/Tests/ChoiceList/LazyChoiceListTest.php b/src/Symfony/Component/Form/Tests/ChoiceList/LazyChoiceListTest.php index 3aae8e683d77..3f6742c4486a 100644 --- a/src/Symfony/Component/Form/Tests/ChoiceList/LazyChoiceListTest.php +++ b/src/Symfony/Component/Form/Tests/ChoiceList/LazyChoiceListTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Form\Tests\ChoiceList; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ChoiceList\LazyChoiceList; /** * @author Bernhard Schussek */ -class LazyChoiceListTest extends \PHPUnit_Framework_TestCase +class LazyChoiceListTest extends TestCase { /** * @var LazyChoiceList diff --git a/src/Symfony/Component/Form/Tests/ChoiceList/LegacyChoiceListAdapterTest.php b/src/Symfony/Component/Form/Tests/ChoiceList/LegacyChoiceListAdapterTest.php index 32f07294243c..363960fdf158 100644 --- a/src/Symfony/Component/Form/Tests/ChoiceList/LegacyChoiceListAdapterTest.php +++ b/src/Symfony/Component/Form/Tests/ChoiceList/LegacyChoiceListAdapterTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\ChoiceList; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ChoiceList\LegacyChoiceListAdapter; use Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface; @@ -18,7 +19,7 @@ * @author Bernhard Schussek * @group legacy */ -class LegacyChoiceListAdapterTest extends \PHPUnit_Framework_TestCase +class LegacyChoiceListAdapterTest extends TestCase { /** * @var LegacyChoiceListAdapter diff --git a/src/Symfony/Component/Form/Tests/CompoundFormTest.php b/src/Symfony/Component/Form/Tests/CompoundFormTest.php index de6db05ab15c..3738a4c953c0 100644 --- a/src/Symfony/Component/Form/Tests/CompoundFormTest.php +++ b/src/Symfony/Component/Form/Tests/CompoundFormTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper; use Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler; use Symfony\Component\Form\FormError; @@ -945,7 +946,7 @@ public function testCreateViewWithChildren() $assertChildViewsEqual = function (array $childViews) use ($test) { return function (FormView $view) use ($test, $childViews) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertSame($childViews, $view->children); }; }; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/AbstractChoiceListTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/AbstractChoiceListTest.php index a17d672f6267..090580ec735b 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/AbstractChoiceListTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/AbstractChoiceListTest.php @@ -11,12 +11,14 @@ namespace Symfony\Component\Form\Tests\Extension\Core\ChoiceList; +use PHPUnit\Framework\TestCase; + /** * @author Bernhard Schussek * * @group legacy */ -abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase +abstract class AbstractChoiceListTest extends TestCase { /** * @var \Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/LazyChoiceListTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/LazyChoiceListTest.php index 5504d8df7371..5dd53b4e2574 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/LazyChoiceListTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/LazyChoiceListTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\Extension\Core\ChoiceList; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList; use Symfony\Component\Form\Extension\Core\View\ChoiceView; use Symfony\Component\Form\Tests\Extension\Core\ChoiceList\Fixtures\LazyChoiceListImpl; @@ -19,7 +20,7 @@ /** * @group legacy */ -class LazyChoiceListTest extends \PHPUnit_Framework_TestCase +class LazyChoiceListTest extends TestCase { /** * @var LazyChoiceListImpl diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php index 3385c05dc4be..32886e565129 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataMapper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormConfigBuilder; use Symfony\Component\Form\FormConfigInterface; use Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper; -class PropertyPathMapperTest extends \PHPUnit_Framework_TestCase +class PropertyPathMapperTest extends TestCase { /** * @var PropertyPathMapper diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ArrayToPartsTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ArrayToPartsTransformerTest.php index 33779260ae10..220a36765521 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ArrayToPartsTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ArrayToPartsTransformerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataTransformer\ArrayToPartsTransformer; -class ArrayToPartsTransformerTest extends \PHPUnit_Framework_TestCase +class ArrayToPartsTransformerTest extends TestCase { private $transformer; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BaseDateTimeTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BaseDateTimeTransformerTest.php index ac61acc4e64f..385accd7f369 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BaseDateTimeTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BaseDateTimeTransformerTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; -class BaseDateTimeTransformerTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class BaseDateTimeTransformerTest extends TestCase { /** * @expectedException \Symfony\Component\Form\Exception\InvalidArgumentException diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php index a1217783d17e..5195092e18b8 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataTransformer\BooleanToStringTransformer; -class BooleanToStringTransformerTest extends \PHPUnit_Framework_TestCase +class BooleanToStringTransformerTest extends TestCase { const TRUE_VALUE = '1'; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoiceToValueTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoiceToValueTransformerTest.php index 5362ab9fc76c..cf5dbaa6af7d 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoiceToValueTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoiceToValueTransformerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ChoiceList\ArrayChoiceList; use Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer; -class ChoiceToValueTransformerTest extends \PHPUnit_Framework_TestCase +class ChoiceToValueTransformerTest extends TestCase { protected $transformer; protected $transformerWithNull; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoicesToValuesTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoicesToValuesTransformerTest.php index 5eb01a2ccb63..aa4936f82263 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoicesToValuesTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoicesToValuesTransformerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ChoiceList\ArrayChoiceList; use Symfony\Component\Form\Extension\Core\DataTransformer\ChoicesToValuesTransformer; -class ChoicesToValuesTransformerTest extends \PHPUnit_Framework_TestCase +class ChoicesToValuesTransformerTest extends TestCase { protected $transformer; protected $transformerWithNull; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DataTransformerChainTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DataTransformerChainTest.php index 9ec553db4bd7..fc9f85e3c752 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DataTransformerChainTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DataTransformerChainTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataTransformer\DataTransformerChain; -class DataTransformerChainTest extends \PHPUnit_Framework_TestCase +class DataTransformerChainTest extends TestCase { public function testTransform() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeTestCase.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeTestCase.php index 200cbc32824f..c6d1a07cd780 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeTestCase.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeTestCase.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; -abstract class DateTimeTestCase extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +abstract class DateTimeTestCase extends TestCase { public static function assertDateTimeEquals(\DateTime $expected, \DateTime $actual) { diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php index af6443ac8405..fe1f7d31792f 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataTransformer\IntegerToLocalizedStringTransformer; use Symfony\Component\Intl\Util\IntlTestHelper; -class IntegerToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCase +class IntegerToLocalizedStringTransformerTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformerTest.php index 0fa2df05641a..5a3417e4d203 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataTransformer\MoneyToLocalizedStringTransformer; use Symfony\Component\Intl\Util\IntlTestHelper; -class MoneyToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCase +class MoneyToLocalizedStringTransformerTest extends TestCase { public function testTransform() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php index c619ca729fdf..0789e414bd1f 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer; use Symfony\Component\Intl\Util\IntlTestHelper; -class NumberToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCase +class NumberToLocalizedStringTransformerTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php index c0447656f3e5..93fe38def89f 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer; use Symfony\Component\Intl\Util\IntlTestHelper; -class PercentToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCase +class PercentToLocalizedStringTransformerTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ValueToDuplicatesTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ValueToDuplicatesTransformerTest.php index eb3cf9704bc2..5c1d56264ed8 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ValueToDuplicatesTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ValueToDuplicatesTransformerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\DataTransformer\ValueToDuplicatesTransformer; -class ValueToDuplicatesTransformerTest extends \PHPUnit_Framework_TestCase +class ValueToDuplicatesTransformerTest extends TestCase { private $transformer; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php index 65cc25539483..2772e47660ef 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Core\EventListener\FixRadioInputListener; @@ -18,7 +19,7 @@ /** * @group legacy */ -class FixRadioInputListenerTest extends \PHPUnit_Framework_TestCase +class FixRadioInputListenerTest extends TestCase { private $choiceList; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php index d31de3cadab6..e3fd9523d96d 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Core\EventListener\FixUrlProtocolListener; -class FixUrlProtocolListenerTest extends \PHPUnit_Framework_TestCase +class FixUrlProtocolListenerTest extends TestCase { public function testFixHttpUrl() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php index ddd46819a4f0..2dcbc359eab9 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Core\EventListener\MergeCollectionListener; -abstract class MergeCollectionListenerTest extends \PHPUnit_Framework_TestCase +abstract class MergeCollectionListenerTest extends TestCase { protected $dispatcher; protected $factory; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php index 52afec76013e..281581bcffc1 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php @@ -12,11 +12,12 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; use Doctrine\Common\Collections\ArrayCollection; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener; use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\FormEvent; -class ResizeFormListenerTest extends \PHPUnit_Framework_TestCase +class ResizeFormListenerTest extends TestCase { private $dispatcher; private $factory; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php index a6b111e78e63..d1ea3331a943 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Core\EventListener\TrimListener; -class TrimListenerTest extends \PHPUnit_Framework_TestCase +class TrimListenerTest extends TestCase { public function testTrim() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacyDefaultCsrfProviderTest.php b/src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacyDefaultCsrfProviderTest.php index 29e370df096f..824e81c55303 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacyDefaultCsrfProviderTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacyDefaultCsrfProviderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\Extension\Csrf\CsrfProvider; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Csrf\CsrfProvider\DefaultCsrfProvider; /** @@ -18,7 +19,7 @@ * @preserveGlobalState disabled * @group legacy */ -class LegacyDefaultCsrfProviderTest extends \PHPUnit_Framework_TestCase +class LegacyDefaultCsrfProviderTest extends TestCase { protected $provider; diff --git a/src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacySessionCsrfProviderTest.php b/src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacySessionCsrfProviderTest.php index 43918643b617..bd87d9cc8c57 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacySessionCsrfProviderTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacySessionCsrfProviderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Form\Tests\Extension\Csrf\CsrfProvider; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider; /** * @group legacy */ -class LegacySessionCsrfProviderTest extends \PHPUnit_Framework_TestCase +class LegacySessionCsrfProviderTest extends TestCase { protected $provider; protected $session; diff --git a/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php index 356d1c808c1c..fc0dee140b04 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Form\Tests\Extension\Csrf\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Form; use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener; -class CsrfValidationListenerTest extends \PHPUnit_Framework_TestCase +class CsrfValidationListenerTest extends TestCase { protected $dispatcher; protected $factory; diff --git a/src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php b/src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php index 993d818d5b62..6a551bb2fcb9 100644 --- a/src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Form\Tests\Extension\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\DataCollector\DataCollectorExtension; -class DataCollectorExtensionTest extends \PHPUnit_Framework_TestCase +class DataCollectorExtensionTest extends TestCase { /** * @var DataCollectorExtension diff --git a/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php b/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php index f76b19e4b6ef..a004f77704c3 100644 --- a/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Form\Tests\Extension\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\DataCollector\FormDataCollector; use Symfony\Component\Form\Form; use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\FormView; -class FormDataCollectorTest extends \PHPUnit_Framework_TestCase +class FormDataCollectorTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataExtractorTest.php b/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataExtractorTest.php index ac74746cd83e..9e0b5f57e647 100644 --- a/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataExtractorTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataExtractorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\Extension\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\CallbackTransformer; use Symfony\Component\Form\Exception\TransformationFailedException; use Symfony\Component\Form\Extension\DataCollector\FormDataExtractor; @@ -34,7 +35,7 @@ public function exportValue($value, $depth = 1, $deep = false) /** * @author Bernhard Schussek */ -class FormDataExtractorTest extends \PHPUnit_Framework_TestCase +class FormDataExtractorTest extends TestCase { /** * @var FormDataExtractorTest_SimpleValueExporter diff --git a/src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php b/src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php index 4131a46cee05..c19b1153be2b 100644 --- a/src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Form\Tests\Extension\DataCollector\Type; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\DataCollector\Type\DataCollectorTypeExtension; -class DataCollectorTypeExtensionTest extends \PHPUnit_Framework_TestCase +class DataCollectorTypeExtensionTest extends TestCase { /** * @var DataCollectorTypeExtension diff --git a/src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/LegacyBindRequestListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/LegacyBindRequestListenerTest.php index f84220c78c9d..a05847e0bc20 100644 --- a/src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/LegacyBindRequestListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/LegacyBindRequestListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\Extension\HttpFoundation\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\HttpFoundation\EventListener\BindRequestListener; use Symfony\Component\Form\Form; use Symfony\Component\Form\FormConfigBuilder; @@ -22,7 +23,7 @@ * @author Bernhard Schussek * @group legacy */ -class LegacyBindRequestListenerTest extends \PHPUnit_Framework_TestCase +class LegacyBindRequestListenerTest extends TestCase { private $values; diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php index 72a9bdfffc71..46e540ee4c19 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\Extension\Validator\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Validator\Constraints\Form; @@ -19,7 +20,7 @@ use Symfony\Component\Validator\ConstraintViolation; use Symfony\Component\Validator\ConstraintViolationList; -class ValidationListenerTest extends \PHPUnit_Framework_TestCase +class ValidationListenerTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/Util/ServerParamsTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/Util/ServerParamsTest.php index 3627f4b9e6c6..c3ee7303efa1 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/Util/ServerParamsTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/Util/ServerParamsTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Validator\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Validator\Util\ServerParams; use Symfony\Component\HttpFoundation\Request; -class ServerParamsTest extends \PHPUnit_Framework_TestCase +class ServerParamsTest extends TestCase { public function testGetContentLengthFromSuperglobals() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorExtensionTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorExtensionTest.php index 5a41f928ca52..39e6ae562d95 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorExtensionTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorExtensionTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests\Extension\Validator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Validator\ValidatorExtension; use Symfony\Component\Validator\ValidatorInterface; -class ValidatorExtensionTest extends \PHPUnit_Framework_TestCase +class ValidatorExtensionTest extends TestCase { public function test2Dot5ValidationApi() { diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorTypeGuesserTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorTypeGuesserTest.php index a5e49d5e6376..6ddac337afea 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorTypeGuesserTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorTypeGuesserTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\Extension\Validator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser; use Symfony\Component\Form\Guess\Guess; use Symfony\Component\Form\Guess\ValueGuess; @@ -27,7 +28,7 @@ * @author franek * @author Bernhard Schussek */ -class ValidatorTypeGuesserTest extends \PHPUnit_Framework_TestCase +class ValidatorTypeGuesserTest extends TestCase { const TEST_CLASS = 'Symfony\Component\Form\Tests\Extension\Validator\ValidatorTypeGuesserTest_TestClass'; diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php index 314a645dbcc3..dd70b23bda0d 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests\Extension\Validator\ViolationMapper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Validator\ViolationMapper\ViolationMapper; use Symfony\Component\Form\Exception\TransformationFailedException; use Symfony\Component\Form\CallbackTransformer; @@ -25,7 +26,7 @@ /** * @author Bernhard Schussek */ -class ViolationMapperTest extends \PHPUnit_Framework_TestCase +class ViolationMapperTest extends TestCase { const LEVEL_0 = 0; diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationPathTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationPathTest.php index fdbf747f2033..31377dec3e58 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationPathTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationPathTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Form\Tests\Extension\Validator\ViolationMapper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Extension\Validator\ViolationMapper\ViolationPath; /** * @author Bernhard Schussek */ -class ViolationPathTest extends \PHPUnit_Framework_TestCase +class ViolationPathTest extends TestCase { public function providePaths() { diff --git a/src/Symfony/Component/Form/Tests/FormBuilderTest.php b/src/Symfony/Component/Form/Tests/FormBuilderTest.php index e0edf5d89f7b..214313cba1b5 100644 --- a/src/Symfony/Component/Form/Tests/FormBuilderTest.php +++ b/src/Symfony/Component/Form/Tests/FormBuilderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ButtonBuilder; use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\SubmitButtonBuilder; -class FormBuilderTest extends \PHPUnit_Framework_TestCase +class FormBuilderTest extends TestCase { private $dispatcher; private $factory; diff --git a/src/Symfony/Component/Form/Tests/FormConfigTest.php b/src/Symfony/Component/Form/Tests/FormConfigTest.php index 1bfaf4d0e0bd..21eabba871d3 100644 --- a/src/Symfony/Component/Form/Tests/FormConfigTest.php +++ b/src/Symfony/Component/Form/Tests/FormConfigTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Exception\UnexpectedTypeException; use Symfony\Component\Form\FormConfigBuilder; use Symfony\Component\Form\Exception\InvalidArgumentException; @@ -18,7 +19,7 @@ /** * @author Bernhard Schussek */ -class FormConfigTest extends \PHPUnit_Framework_TestCase +class FormConfigTest extends TestCase { public function getHtml4Ids() { diff --git a/src/Symfony/Component/Form/Tests/FormFactoryBuilderTest.php b/src/Symfony/Component/Form/Tests/FormFactoryBuilderTest.php index e41a8085b520..e08ac98c3f92 100644 --- a/src/Symfony/Component/Form/Tests/FormFactoryBuilderTest.php +++ b/src/Symfony/Component/Form/Tests/FormFactoryBuilderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormFactoryBuilder; use Symfony\Component\Form\Tests\Fixtures\FooType; -class FormFactoryBuilderTest extends \PHPUnit_Framework_TestCase +class FormFactoryBuilderTest extends TestCase { private $registry; private $guesser; diff --git a/src/Symfony/Component/Form/Tests/FormFactoryTest.php b/src/Symfony/Component/Form/Tests/FormFactoryTest.php index 41de2d95a6a8..4185a4a0025d 100644 --- a/src/Symfony/Component/Form/Tests/FormFactoryTest.php +++ b/src/Symfony/Component/Form/Tests/FormFactoryTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormTypeGuesserChain; use Symfony\Component\Form\FormFactory; use Symfony\Component\Form\Guess\Guess; @@ -23,7 +24,7 @@ /** * @author Bernhard Schussek */ -class FormFactoryTest extends \PHPUnit_Framework_TestCase +class FormFactoryTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Component/Form/Tests/FormRegistryTest.php b/src/Symfony/Component/Form/Tests/FormRegistryTest.php index 3d6864b09e88..d34d14a956dc 100644 --- a/src/Symfony/Component/Form/Tests/FormRegistryTest.php +++ b/src/Symfony/Component/Form/Tests/FormRegistryTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormRegistry; use Symfony\Component\Form\FormTypeGuesserChain; use Symfony\Component\Form\Tests\Fixtures\TestExtension; @@ -23,7 +24,7 @@ /** * @author Bernhard Schussek */ -class FormRegistryTest extends \PHPUnit_Framework_TestCase +class FormRegistryTest extends TestCase { /** * @var FormRegistry diff --git a/src/Symfony/Component/Form/Tests/FormRendererTest.php b/src/Symfony/Component/Form/Tests/FormRendererTest.php index eda35e36acaf..452bb71e8905 100644 --- a/src/Symfony/Component/Form/Tests/FormRendererTest.php +++ b/src/Symfony/Component/Form/Tests/FormRendererTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Form\Tests; -class FormRendererTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class FormRendererTest extends TestCase { public function testHumanize() { diff --git a/src/Symfony/Component/Form/Tests/Guess/GuessTest.php b/src/Symfony/Component/Form/Tests/Guess/GuessTest.php index 2422663720c6..8f7e1d020302 100644 --- a/src/Symfony/Component/Form/Tests/Guess/GuessTest.php +++ b/src/Symfony/Component/Form/Tests/Guess/GuessTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Form\Tests\Guess; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Guess\Guess; class TestGuess extends Guess { } -class GuessTest extends \PHPUnit_Framework_TestCase +class GuessTest extends TestCase { public function testGetBestGuessReturnsGuessWithHighestConfidence() { diff --git a/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php b/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php index 942c06e43e4f..6ae8a85bcfc8 100644 --- a/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php +++ b/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Form\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\ResolvedFormType; use Symfony\Component\Form\FormBuilder; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -18,7 +19,7 @@ /** * @author Bernhard Schussek */ -class ResolvedFormTypeTest extends \PHPUnit_Framework_TestCase +class ResolvedFormTypeTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject @@ -61,7 +62,7 @@ public function testGetOptionsResolver() $assertIndexAndAddOption = function ($index, $option, $default) use (&$i, $test) { return function (OptionsResolver $resolver) use (&$i, $test, $index, $option, $default) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals($index, $i, 'Executed at index '.$index); ++$i; @@ -160,7 +161,7 @@ public function testBuildForm() $assertIndex = function ($index) use (&$i, $test) { return function () use (&$i, $test, $index) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals($index, $i, 'Executed at index '.$index); ++$i; @@ -228,7 +229,7 @@ public function testBuildView() $assertIndex = function ($index) use (&$i, $test) { return function () use (&$i, $test, $index) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals($index, $i, 'Executed at index '.$index); ++$i; @@ -272,7 +273,7 @@ public function testFinishView() $assertIndex = function ($index) use (&$i, $test) { return function () use (&$i, $test, $index) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals($index, $i, 'Executed at index '.$index); ++$i; diff --git a/src/Symfony/Component/Form/Tests/Resources/TranslationFilesTest.php b/src/Symfony/Component/Form/Tests/Resources/TranslationFilesTest.php index 7596b879a18b..fb2bc47ef1c8 100644 --- a/src/Symfony/Component/Form/Tests/Resources/TranslationFilesTest.php +++ b/src/Symfony/Component/Form/Tests/Resources/TranslationFilesTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Form\Tests\Resources; -class TranslationFilesTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class TranslationFilesTest extends TestCase { /** * @dataProvider provideTranslationFiles diff --git a/src/Symfony/Component/Form/Tests/Util/OrderedHashMapTest.php b/src/Symfony/Component/Form/Tests/Util/OrderedHashMapTest.php index dd51fa5d23a3..4328919651ef 100644 --- a/src/Symfony/Component/Form/Tests/Util/OrderedHashMapTest.php +++ b/src/Symfony/Component/Form/Tests/Util/OrderedHashMapTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Form\Tests\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Util\OrderedHashMap; /** * @author Bernhard Schussek */ -class OrderedHashMapTest extends \PHPUnit_Framework_TestCase +class OrderedHashMapTest extends TestCase { public function testGet() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderItemTest.php b/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderItemTest.php index e4f354fc1f27..cb43bb35168a 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderItemTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderItemTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\AcceptHeaderItem; -class AcceptHeaderItemTest extends \PHPUnit_Framework_TestCase +class AcceptHeaderItemTest extends TestCase { /** * @dataProvider provideFromStringData diff --git a/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php b/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php index 9b3b58e21424..9929eac28ef0 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\AcceptHeader; use Symfony\Component\HttpFoundation\AcceptHeaderItem; -class AcceptHeaderTest extends \PHPUnit_Framework_TestCase +class AcceptHeaderTest extends TestCase { public function testFirst() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/ApacheRequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/ApacheRequestTest.php index 6845118cc2e3..157ab90ec59a 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ApacheRequestTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ApacheRequestTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\ApacheRequest; -class ApacheRequestTest extends \PHPUnit_Framework_TestCase +class ApacheRequestTest extends TestCase { /** * @dataProvider provideServerVars diff --git a/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php b/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php index d9f2e2114d41..f3f74f635eb4 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Cookie; /** @@ -21,7 +22,7 @@ * * @group time-sensitive */ -class CookieTest extends \PHPUnit_Framework_TestCase +class CookieTest extends TestCase { public function invalidNames() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/ExpressionRequestMatcherTest.php b/src/Symfony/Component/HttpFoundation/Tests/ExpressionRequestMatcherTest.php index fda372f3fb70..1152e46c0be7 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ExpressionRequestMatcherTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ExpressionRequestMatcherTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\HttpFoundation\ExpressionRequestMatcher; use Symfony\Component\HttpFoundation\Request; -class ExpressionRequestMatcherTest extends \PHPUnit_Framework_TestCase +class ExpressionRequestMatcherTest extends TestCase { /** * @expectedException \LogicException diff --git a/src/Symfony/Component/HttpFoundation/Tests/File/FileTest.php b/src/Symfony/Component/HttpFoundation/Tests/File/FileTest.php index 129d99eea43b..eea437f13e5f 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/File/FileTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/File/FileTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\HttpFoundation\Tests\File; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser; -class FileTest extends \PHPUnit_Framework_TestCase +class FileTest extends TestCase { protected $file; diff --git a/src/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php b/src/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php index 1d5648eada8e..3fb15e9c8ac4 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpFoundation\Tests\File\MimeType; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser; use Symfony\Component\HttpFoundation\File\MimeType\FileBinaryMimeTypeGuesser; /** * @requires extension fileinfo */ -class MimeTypeTest extends \PHPUnit_Framework_TestCase +class MimeTypeTest extends TestCase { protected $path; diff --git a/src/Symfony/Component/HttpFoundation/Tests/File/UploadedFileTest.php b/src/Symfony/Component/HttpFoundation/Tests/File/UploadedFileTest.php index 0837250780b8..eafeb4fb6d61 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/File/UploadedFileTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/File/UploadedFileTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests\File; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\File\UploadedFile; -class UploadedFileTest extends \PHPUnit_Framework_TestCase +class UploadedFileTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php index 738604bcc789..e7defa677713 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\FileBag; @@ -20,7 +21,7 @@ * @author Fabien Potencier * @author Bulat Shakirzyanov */ -class FileBagTest extends \PHPUnit_Framework_TestCase +class FileBagTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/HttpFoundation/Tests/HeaderBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/HeaderBagTest.php index d4d02d94fead..e5b1b38fdd02 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/HeaderBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/HeaderBagTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\HeaderBag; -class HeaderBagTest extends \PHPUnit_Framework_TestCase +class HeaderBagTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php b/src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php index a6d28a2943bb..61aa74861dde 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\IpUtils; -class IpUtilsTest extends \PHPUnit_Framework_TestCase +class IpUtilsTest extends TestCase { /** * @dataProvider testIpv4Provider diff --git a/src/Symfony/Component/HttpFoundation/Tests/JsonResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/JsonResponseTest.php index 7b1c44674e36..8156da06939e 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/JsonResponseTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/JsonResponseTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\JsonResponse; -class JsonResponseTest extends \PHPUnit_Framework_TestCase +class JsonResponseTest extends TestCase { public function testConstructorEmptyCreatesJsonObject() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/ParameterBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/ParameterBagTest.php index b0e21edd0a21..5ee2954db946 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ParameterBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ParameterBagTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\ParameterBag; -class ParameterBagTest extends \PHPUnit_Framework_TestCase +class ParameterBagTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/RedirectResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/RedirectResponseTest.php index 2a097d6fd422..9e3e90c53e4f 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RedirectResponseTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RedirectResponseTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\RedirectResponse; -class RedirectResponseTest extends \PHPUnit_Framework_TestCase +class RedirectResponseTest extends TestCase { public function testGenerateMetaRedirect() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestMatcherTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestMatcherTest.php index cee9bcc26144..6f864d4468fe 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestMatcherTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestMatcherTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\RequestMatcher; use Symfony\Component\HttpFoundation\Request; -class RequestMatcherTest extends \PHPUnit_Framework_TestCase +class RequestMatcherTest extends TestCase { /** * @dataProvider testMethodFixtures diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestStackTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestStackTest.php index e26b806fd287..a84fb26f0b59 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestStackTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestStackTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; -class RequestStackTest extends \PHPUnit_Framework_TestCase +class RequestStackTest extends TestCase { public function testGetCurrentRequest() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index 74f058923f13..47c435f24b11 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpFoundation\Request; -class RequestTest extends \PHPUnit_Framework_TestCase +class RequestTest extends TestCase { public function testInitialize() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/ResponseHeaderBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/ResponseHeaderBagTest.php index ef91f52af512..debcdc1faf16 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ResponseHeaderBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ResponseHeaderBagTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\ResponseHeaderBag; use Symfony\Component\HttpFoundation\Cookie; /** * @group time-sensitive */ -class ResponseHeaderBagTest extends \PHPUnit_Framework_TestCase +class ResponseHeaderBagTest extends TestCase { /** * @dataProvider provideAllPreserveCase diff --git a/src/Symfony/Component/HttpFoundation/Tests/ResponseTestCase.php b/src/Symfony/Component/HttpFoundation/Tests/ResponseTestCase.php index 94c770a894ba..4ead34c1053d 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ResponseTestCase.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ResponseTestCase.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; -abstract class ResponseTestCase extends \PHPUnit_Framework_TestCase +abstract class ResponseTestCase extends TestCase { public function testNoCacheControlHeaderOnAttachmentUsingHTTPSAndMSIE() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/ServerBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/ServerBagTest.php index 41e44e10056e..c1d9d12a654b 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ServerBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ServerBagTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\ServerBag; /** @@ -18,7 +19,7 @@ * * @author Bulat Shakirzyanov */ -class ServerBagTest extends \PHPUnit_Framework_TestCase +class ServerBagTest extends TestCase { public function testShouldExtractHeadersFromServerArray() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/AttributeBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/AttributeBagTest.php index ca6ce8a38670..8c148b58f06c 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/AttributeBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/AttributeBagTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Attribute; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; /** @@ -18,7 +19,7 @@ * * @author Drak */ -class AttributeBagTest extends \PHPUnit_Framework_TestCase +class AttributeBagTest extends TestCase { /** * @var array diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php index 470038fe5517..d9d9eb7fbee7 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Attribute; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag; /** @@ -18,7 +19,7 @@ * * @author Drak */ -class NamespacedAttributeBagTest extends \PHPUnit_Framework_TestCase +class NamespacedAttributeBagTest extends TestCase { /** * @var array diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php index 852158f1870b..4eb200afa3bd 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Flash; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag as FlashBag; /** @@ -18,7 +19,7 @@ * * @author Drak */ -class AutoExpireFlashBagTest extends \PHPUnit_Framework_TestCase +class AutoExpireFlashBagTest extends TestCase { /** * @var \Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php index 1dbbabd5a1a8..3de22460357b 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Flash; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Flash\FlashBag; /** @@ -18,7 +19,7 @@ * * @author Drak */ -class FlashBagTest extends \PHPUnit_Framework_TestCase +class FlashBagTest extends TestCase { /** * @var \Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/SessionTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/SessionTest.php index 57460c6daac5..4d5d337a3c01 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/SessionTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/SessionTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpFoundation\Session\Flash\FlashBag; use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; @@ -23,7 +24,7 @@ * @author Robert Schönthal * @author Drak */ -class SessionTest extends \PHPUnit_Framework_TestCase +class SessionTest extends TestCase { /** * @var \Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/LegacyPdoSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/LegacyPdoSessionHandlerTest.php index f8497f53ec7d..8559e6791187 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/LegacyPdoSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/LegacyPdoSessionHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\LegacyPdoSessionHandler; /** @@ -18,7 +19,7 @@ * @group time-sensitive * @requires extension pdo_sqlite */ -class LegacyPdoSessionHandlerTest extends \PHPUnit_Framework_TestCase +class LegacyPdoSessionHandlerTest extends TestCase { private $pdo; diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcacheSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcacheSessionHandlerTest.php index b321a9279c60..06193c8befbe 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcacheSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcacheSessionHandlerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler; /** * @requires extension memcache * @group time-sensitive */ -class MemcacheSessionHandlerTest extends \PHPUnit_Framework_TestCase +class MemcacheSessionHandlerTest extends TestCase { const PREFIX = 'prefix_'; const TTL = 1000; diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php index 2ffd7c15c5f6..2e7be359efcf 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler; /** * @requires extension memcached * @group time-sensitive */ -class MemcachedSessionHandlerTest extends \PHPUnit_Framework_TestCase +class MemcachedSessionHandlerTest extends TestCase { const PREFIX = 'prefix_'; const TTL = 1000; diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php index 37ccf9ef19f0..f23161c10b07 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler; /** * @author Markus Bachmann * @group time-sensitive */ -class MongoDbSessionHandlerTest extends \PHPUnit_Framework_TestCase +class MongoDbSessionHandlerTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php index ab848b6b972a..947502f7b166 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage; @@ -22,7 +23,7 @@ * @runTestsInSeparateProcesses * @preserveGlobalState disabled */ -class NativeFileSessionHandlerTest extends \PHPUnit_Framework_TestCase +class NativeFileSessionHandlerTest extends TestCase { public function testConstruct() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeSessionHandlerTest.php index 3437cf08f1d8..bd335b3b4cf7 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeSessionHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler; /** @@ -21,7 +22,7 @@ * @runTestsInSeparateProcesses * @preserveGlobalState disabled */ -class NativeSessionHandlerTest extends \PHPUnit_Framework_TestCase +class NativeSessionHandlerTest extends TestCase { public function testConstruct() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php index 35823d685ddf..718fd0f830e4 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage; use Symfony\Component\HttpFoundation\Session\Session; @@ -23,7 +24,7 @@ * @runTestsInSeparateProcesses * @preserveGlobalState disabled */ -class NullSessionHandlerTest extends \PHPUnit_Framework_TestCase +class NullSessionHandlerTest extends TestCase { public function testSaveHandlers() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php index cfc8acebaaf9..a47120f1807e 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler; /** * @requires extension pdo_sqlite * @group time-sensitive */ -class PdoSessionHandlerTest extends \PHPUnit_Framework_TestCase +class PdoSessionHandlerTest extends TestCase { private $dbFile; diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/WriteCheckSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/WriteCheckSessionHandlerTest.php index 4fbf31aa3ebb..5e41a4743edd 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/WriteCheckSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/WriteCheckSessionHandlerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Handler\WriteCheckSessionHandler; /** * @author Adrien Brault */ -class WriteCheckSessionHandlerTest extends \PHPUnit_Framework_TestCase +class WriteCheckSessionHandlerTest extends TestCase { public function test() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php index 2fa473fbdf5c..1f55a2d5c440 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag; /** @@ -18,7 +19,7 @@ * * @group time-sensitive */ -class MetadataBagTest extends \PHPUnit_Framework_TestCase +class MetadataBagTest extends TestCase { /** * @var MetadataBag diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php index c56ea4a60071..99da778b5fd8 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; use Symfony\Component\HttpFoundation\Session\Flash\FlashBag; @@ -20,7 +21,7 @@ * * @author Drak */ -class MockArraySessionStorageTest extends \PHPUnit_Framework_TestCase +class MockArraySessionStorageTest extends TestCase { /** * @var MockArraySessionStorage diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php index 54321ea4f771..53accd38447d 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage; use Symfony\Component\HttpFoundation\Session\Flash\FlashBag; use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; @@ -20,7 +21,7 @@ * * @author Drak */ -class MockFileSessionStorageTest extends \PHPUnit_Framework_TestCase +class MockFileSessionStorageTest extends TestCase { /** * @var string diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php index 160b5758620b..4da9a1bc515c 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; use Symfony\Component\HttpFoundation\Session\Flash\FlashBag; use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler; @@ -29,7 +30,7 @@ * @runTestsInSeparateProcesses * @preserveGlobalState disabled */ -class NativeSessionStorageTest extends \PHPUnit_Framework_TestCase +class NativeSessionStorageTest extends TestCase { private $savePath; diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php index 7c865cb3db55..99491ce86ac2 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage; use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; @@ -24,7 +25,7 @@ * @runTestsInSeparateProcesses * @preserveGlobalState disabled */ -class PhpBridgeSessionStorageTest extends \PHPUnit_Framework_TestCase +class PhpBridgeSessionStorageTest extends TestCase { private $savePath; diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php index eab420f9a1ba..efd8d80d35c5 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Proxy; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy; // Note until PHPUnit_Mock_Objects 1.2 is released you cannot mock abstracts due to @@ -51,7 +52,7 @@ public function gc($maxlifetime) * * @author Drak */ -class AbstractProxyTest extends \PHPUnit_Framework_TestCase +class AbstractProxyTest extends TestCase { /** * @var AbstractProxy diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/NativeProxyTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/NativeProxyTest.php index e9184ce06eed..8ec305344136 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/NativeProxyTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/NativeProxyTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Proxy; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Proxy\NativeProxy; /** @@ -18,7 +19,7 @@ * * @author Drak */ -class NativeProxyTest extends \PHPUnit_Framework_TestCase +class NativeProxyTest extends TestCase { public function testIsWrapper() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php index 052296a4c5fb..243f850b5ebd 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Proxy; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy; /** @@ -21,7 +22,7 @@ * @runTestsInSeparateProcesses * @preserveGlobalState disabled */ -class SessionHandlerProxyTest extends \PHPUnit_Framework_TestCase +class SessionHandlerProxyTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_Matcher diff --git a/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php index 940f17cac48c..844274b1e7e2 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\HttpFoundation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\StreamedResponse; -class StreamedResponseTest extends \PHPUnit_Framework_TestCase +class StreamedResponseTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php b/src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php index 58644336984b..f5c40cbb4d22 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\Bundle; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionNotValidBundle\ExtensionNotValidBundle; use Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionPresentBundle\ExtensionPresentBundle; use Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionAbsentBundle\ExtensionAbsentBundle; use Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionPresentBundle\Command\FooCommand; -class BundleTest extends \PHPUnit_Framework_TestCase +class BundleTest extends TestCase { public function testRegisterCommands() { diff --git a/src/Symfony/Component/HttpKernel/Tests/CacheClearer/ChainCacheClearerTest.php b/src/Symfony/Component/HttpKernel/Tests/CacheClearer/ChainCacheClearerTest.php index 41af579b06fd..1bc853349f23 100644 --- a/src/Symfony/Component/HttpKernel/Tests/CacheClearer/ChainCacheClearerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/CacheClearer/ChainCacheClearerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\CacheClearer; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer; -class ChainCacheClearerTest extends \PHPUnit_Framework_TestCase +class ChainCacheClearerTest extends TestCase { protected static $cacheDir; diff --git a/src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php b/src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php index e78c8d14cc12..d07ade303f10 100644 --- a/src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\CacheWarmer; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate; -class CacheWarmerAggregateTest extends \PHPUnit_Framework_TestCase +class CacheWarmerAggregateTest extends TestCase { protected static $cacheDir; diff --git a/src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerTest.php b/src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerTest.php index fe5ecb2ed313..05666cb0dcdc 100644 --- a/src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\CacheWarmer; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmer; -class CacheWarmerTest extends \PHPUnit_Framework_TestCase +class CacheWarmerTest extends TestCase { protected static $cacheFile; diff --git a/src/Symfony/Component/HttpKernel/Tests/ClientTest.php b/src/Symfony/Component/HttpKernel/Tests/ClientTest.php index b5d2c9cedd89..ac3ea1e860af 100644 --- a/src/Symfony/Component/HttpKernel/Tests/ClientTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/ClientTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; @@ -18,7 +19,7 @@ use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpKernel\Tests\Fixtures\TestClient; -class ClientTest extends \PHPUnit_Framework_TestCase +class ClientTest extends TestCase { public function testDoRequest() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Config/EnvParametersResourceTest.php b/src/Symfony/Component/HttpKernel/Tests/Config/EnvParametersResourceTest.php index ee5ecce3ced3..6fe8a6756899 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Config/EnvParametersResourceTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Config/EnvParametersResourceTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\Config; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Config\EnvParametersResource; -class EnvParametersResourceTest extends \PHPUnit_Framework_TestCase +class EnvParametersResourceTest extends TestCase { protected $prefix = '__DUMMY_'; protected $initialEnv; diff --git a/src/Symfony/Component/HttpKernel/Tests/Config/FileLocatorTest.php b/src/Symfony/Component/HttpKernel/Tests/Config/FileLocatorTest.php index b7babf2c5f63..397edbc8a71d 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Config/FileLocatorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Config/FileLocatorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\Config; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Config\FileLocator; -class FileLocatorTest extends \PHPUnit_Framework_TestCase +class FileLocatorTest extends TestCase { public function testLocate() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Controller/ControllerResolverTest.php b/src/Symfony/Component/HttpKernel/Tests/Controller/ControllerResolverTest.php index 53aa6ca3c64b..046b71ac0117 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Controller/ControllerResolverTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Controller/ControllerResolverTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\Controller; +use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; use Symfony\Component\HttpKernel\Controller\ControllerResolver; use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\NullableController; use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\VariadicController; use Symfony\Component\HttpFoundation\Request; -class ControllerResolverTest extends \PHPUnit_Framework_TestCase +class ControllerResolverTest extends TestCase { public function testGetControllerWithoutControllerParameter() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/ConfigDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/ConfigDataCollectorTest.php index 4a0dc263b7d8..b6dfb70c1b62 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/ConfigDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/ConfigDataCollectorTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -class ConfigDataCollectorTest extends \PHPUnit_Framework_TestCase +class ConfigDataCollectorTest extends TestCase { public function testCollect() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php index 68d28cf2d211..48b46efad055 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DataCollector\DumpDataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -19,7 +20,7 @@ /** * @author Nicolas Grekas */ -class DumpDataCollectorTest extends \PHPUnit_Framework_TestCase +class DumpDataCollectorTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/ExceptionDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/ExceptionDataCollectorTest.php index 6c71f4c9ebdd..afad9f58af63 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/ExceptionDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/ExceptionDataCollectorTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\HttpKernel\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\Debug\Exception\FlattenException; use Symfony\Component\HttpKernel\DataCollector\ExceptionDataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -class ExceptionDataCollectorTest extends \PHPUnit_Framework_TestCase +class ExceptionDataCollectorTest extends TestCase { public function testCollect() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php index 01b72fd7d80e..7f390cf9fab5 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector; -class LoggerDataCollectorTest extends \PHPUnit_Framework_TestCase +class LoggerDataCollectorTest extends TestCase { /** * @dataProvider getCollectTestData diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/MemoryDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/MemoryDataCollectorTest.php index 340b42881688..ab78e9e8e178 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/MemoryDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/MemoryDataCollectorTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\HttpKernel\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -class MemoryDataCollectorTest extends \PHPUnit_Framework_TestCase +class MemoryDataCollectorTest extends TestCase { public function testCollect() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php index ba70bfa92abd..20bd1a8364b0 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\HttpKernel; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\DataCollector\RequestDataCollector; @@ -20,7 +21,7 @@ use Symfony\Component\HttpFoundation\Cookie; use Symfony\Component\EventDispatcher\EventDispatcher; -class RequestDataCollectorTest extends \PHPUnit_Framework_TestCase +class RequestDataCollectorTest extends TestCase { public function testCollect() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/TimeDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/TimeDataCollectorTest.php index a07e924d86f2..814b958163dc 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/TimeDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/TimeDataCollectorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DataCollector\TimeDataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -18,7 +19,7 @@ /** * @group time-sensitive */ -class TimeDataCollectorTest extends \PHPUnit_Framework_TestCase +class TimeDataCollectorTest extends TestCase { public function testCollect() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/Util/ValueExporterTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/Util/ValueExporterTest.php index df0f108ebe7e..34b7a8fa7ea2 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/Util/ValueExporterTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/Util/ValueExporterTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\DataCollector\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DataCollector\Util\ValueExporter; -class ValueExporterTest extends \PHPUnit_Framework_TestCase +class ValueExporterTest extends TestCase { /** * @var ValueExporter diff --git a/src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php b/src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php index 32b286999f9d..d8c926f7938f 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\Debug; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher; use Symfony\Component\HttpKernel\HttpKernel; @@ -18,7 +19,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Stopwatch\Stopwatch; -class TraceableEventDispatcherTest extends \PHPUnit_Framework_TestCase +class TraceableEventDispatcherTest extends TestCase { public function testStopwatchSections() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php index c6ce79783bde..abe061b5f2fd 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel; use Symfony\Component\HttpFoundation\RequestStack; @@ -21,7 +22,7 @@ /** * @group legacy */ -class ContainerAwareHttpKernelTest extends \PHPUnit_Framework_TestCase +class ContainerAwareHttpKernelTest extends TestCase { /** * @dataProvider getProviderTypes diff --git a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/FragmentRendererPassTest.php b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/FragmentRendererPassTest.php index c4652cd88a66..2a27fcac2146 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/FragmentRendererPassTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/FragmentRendererPassTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\HttpKernel\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\DependencyInjection\FragmentRendererPass; use Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface; -class FragmentRendererPassTest extends \PHPUnit_Framework_TestCase +class FragmentRendererPassTest extends TestCase { /** * @group legacy diff --git a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/LazyLoadingFragmentHandlerTest.php b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/LazyLoadingFragmentHandlerTest.php index a6170dfd4f54..60570ee693a1 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/LazyLoadingFragmentHandlerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/LazyLoadingFragmentHandlerTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\HttpKernel\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -class LazyLoadingFragmentHandlerTest extends \PHPUnit_Framework_TestCase +class LazyLoadingFragmentHandlerTest extends TestCase { public function test() { diff --git a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/MergeExtensionConfigurationPassTest.php b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/MergeExtensionConfigurationPassTest.php index 516813f072de..81fc8b455d18 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/MergeExtensionConfigurationPassTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/MergeExtensionConfigurationPassTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\DependencyInjection; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass; -class MergeExtensionConfigurationPassTest extends \PHPUnit_Framework_TestCase +class MergeExtensionConfigurationPassTest extends TestCase { public function testAutoloadMainExtension() { diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/AddRequestFormatsListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/AddRequestFormatsListenerTest.php index c5b2c51e40ec..f4878f626f05 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/AddRequestFormatsListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/AddRequestFormatsListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\EventListener\AddRequestFormatsListener; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\KernelEvents; @@ -20,7 +21,7 @@ * * @author Gildas Quemener */ -class AddRequestFormatsListenerTest extends \PHPUnit_Framework_TestCase +class AddRequestFormatsListenerTest extends TestCase { /** * @var AddRequestFormatsListener diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/DebugHandlersListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/DebugHandlersListenerTest.php index 2aa284cc71bc..d1349906bbe6 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/DebugHandlersListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/DebugHandlersListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Psr\Log\LogLevel; use Symfony\Component\Console\Event\ConsoleEvent; use Symfony\Component\Console\Command\Command; @@ -32,7 +33,7 @@ * * @author Nicolas Grekas */ -class DebugHandlersListenerTest extends \PHPUnit_Framework_TestCase +class DebugHandlersListenerTest extends TestCase { public function testConfigure() { diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/DumpListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/DumpListenerTest.php index c475bbfff3cc..332ec55bceb8 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/DumpListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/DumpListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\ConsoleEvents; use Symfony\Component\HttpKernel\EventListener\DumpListener; use Symfony\Component\VarDumper\Cloner\ClonerInterface; @@ -23,7 +24,7 @@ * * @author Nicolas Grekas */ -class DumpListenerTest extends \PHPUnit_Framework_TestCase +class DumpListenerTest extends TestCase { public function testSubscribedEvents() { diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php index 94c2557fb128..f5501a3f5978 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\EventListener\ExceptionListener; use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; @@ -26,7 +27,7 @@ * * @group time-sensitive */ -class ExceptionListenerTest extends \PHPUnit_Framework_TestCase +class ExceptionListenerTest extends TestCase { public function testConstruct() { diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/FragmentListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/FragmentListenerTest.php index b1d7d82c135f..464b2ab462f1 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/FragmentListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/FragmentListenerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\EventListener\FragmentListener; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\UriSigner; -class FragmentListenerTest extends \PHPUnit_Framework_TestCase +class FragmentListenerTest extends TestCase { public function testOnlyTriggeredOnFragmentRoute() { diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/LocaleListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/LocaleListenerTest.php index 9b42f2775781..b6977ea88b6d 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/LocaleListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/LocaleListenerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\EventListener\LocaleListener; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Event\GetResponseEvent; -class LocaleListenerTest extends \PHPUnit_Framework_TestCase +class LocaleListenerTest extends TestCase { private $requestStack; diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/ProfilerListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/ProfilerListenerTest.php index 479287ceacac..882961bf5a1e 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/ProfilerListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/ProfilerListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpKernel\EventListener\ProfilerListener; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; @@ -20,7 +21,7 @@ use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Kernel; -class ProfilerListenerTest extends \PHPUnit_Framework_TestCase +class ProfilerListenerTest extends TestCase { /** * Test to ensure BC without RequestStack. diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/ResponseListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/ResponseListenerTest.php index e23c2cd1881a..12a31eb3eeed 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/ResponseListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/ResponseListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\EventListener\ResponseListener; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -19,7 +20,7 @@ use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\EventDispatcher\EventDispatcher; -class ResponseListenerTest extends \PHPUnit_Framework_TestCase +class ResponseListenerTest extends TestCase { private $dispatcher; diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php index fd1543b6bc61..40636fa684d5 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\EventListener\RouterListener; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\Routing\RequestContext; -class RouterListenerTest extends \PHPUnit_Framework_TestCase +class RouterListenerTest extends TestCase { private $requestStack; diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/SurrogateListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/SurrogateListenerTest.php index 0100131f00b1..1e79ebe05239 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/SurrogateListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/SurrogateListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\HttpCache\Esi; use Symfony\Component\HttpKernel\EventListener\SurrogateListener; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; @@ -20,7 +21,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\EventDispatcher\EventDispatcher; -class SurrogateListenerTest extends \PHPUnit_Framework_TestCase +class SurrogateListenerTest extends TestCase { public function testFilterDoesNothingForSubRequests() { diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/TestSessionListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/TestSessionListenerTest.php index 34f561d1499c..52794e027283 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/TestSessionListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/TestSessionListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\HttpKernelInterface; @@ -24,7 +25,7 @@ * * @author Bulat Shakirzyanov */ -class TestSessionListenerTest extends \PHPUnit_Framework_TestCase +class TestSessionListenerTest extends TestCase { /** * @var TestSessionListener diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/TranslatorListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/TranslatorListenerTest.php index b5b05bb454de..23b833177ab6 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/TranslatorListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/TranslatorListenerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Event\FinishRequestEvent; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\EventListener\TranslatorListener; use Symfony\Component\HttpKernel\HttpKernelInterface; -class TranslatorListenerTest extends \PHPUnit_Framework_TestCase +class TranslatorListenerTest extends TestCase { private $listener; private $translator; diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/ValidateRequestListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/ValidateRequestListenerTest.php index 7fcbc3b7e64f..8311a76e35a0 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/ValidateRequestListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/ValidateRequestListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\EventListener; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\EventListener\ValidateRequestListener; @@ -18,7 +19,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\KernelEvents; -class ValidateRequestListenerTest extends \PHPUnit_Framework_TestCase +class ValidateRequestListenerTest extends TestCase { /** * @expectedException \Symfony\Component\HttpFoundation\Exception\ConflictingHeadersException diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/EsiFragmentRendererTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/EsiFragmentRendererTest.php index 88c92b67ebb8..6cefea6b02f3 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/EsiFragmentRendererTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/EsiFragmentRendererTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\Fragment; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Controller\ControllerReference; use Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer; use Symfony\Component\HttpKernel\HttpCache\Esi; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\UriSigner; -class EsiFragmentRendererTest extends \PHPUnit_Framework_TestCase +class EsiFragmentRendererTest extends TestCase { public function testRenderFallbackToInlineStrategyIfEsiNotSupported() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php index 4f87037c2047..72ed971d48de 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\Fragment; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Fragment\FragmentHandler; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -18,7 +19,7 @@ /** * @group time-sensitive */ -class FragmentHandlerTest extends \PHPUnit_Framework_TestCase +class FragmentHandlerTest extends TestCase { private $requestStack; diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/HIncludeFragmentRendererTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/HIncludeFragmentRendererTest.php index 9a9373c6d57d..1be052e5e62f 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/HIncludeFragmentRendererTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/HIncludeFragmentRendererTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\HttpKernel\Tests\Fragment; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Controller\ControllerReference; use Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer; use Symfony\Component\HttpKernel\UriSigner; use Symfony\Component\HttpFoundation\Request; -class HIncludeFragmentRendererTest extends \PHPUnit_Framework_TestCase +class HIncludeFragmentRendererTest extends TestCase { /** * @expectedException \LogicException diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php index 49e94a0bb09b..f85fd5ed26fd 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\Fragment; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Controller\ControllerReference; use Symfony\Component\HttpKernel\HttpKernel; use Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer; @@ -19,7 +20,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\EventDispatcher\EventDispatcher; -class InlineFragmentRendererTest extends \PHPUnit_Framework_TestCase +class InlineFragmentRendererTest extends TestCase { public function testRender() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php index 1b5f47119afc..3a040dedd6e5 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\HttpKernel\Tests\Fragment; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Controller\ControllerReference; -class RoutableFragmentRendererTest extends \PHPUnit_Framework_TestCase +class RoutableFragmentRendererTest extends TestCase { /** * @dataProvider getGenerateFragmentUriData diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/SsiFragmentRendererTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/SsiFragmentRendererTest.php index ba54fcd3cfc5..b537625f2401 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/SsiFragmentRendererTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/SsiFragmentRendererTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\Fragment; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Controller\ControllerReference; use Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer; use Symfony\Component\HttpKernel\HttpCache\Ssi; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\UriSigner; -class SsiFragmentRendererTest extends \PHPUnit_Framework_TestCase +class SsiFragmentRendererTest extends TestCase { public function testRenderFallbackToInlineStrategyIfSsiNotSupported() { diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php index dd8955780dcc..28a566e0d2e9 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\HttpKernel\Tests\HttpCache; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\HttpCache\Esi; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -class EsiTest extends \PHPUnit_Framework_TestCase +class EsiTest extends TestCase { public function testHasSurrogateEsiCapability() { diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTestCase.php b/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTestCase.php index 722e98760f11..96a66771a06b 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTestCase.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTestCase.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\HttpCache; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\HttpCache\Esi; use Symfony\Component\HttpKernel\HttpCache\HttpCache; use Symfony\Component\HttpKernel\HttpCache\Store; use Symfony\Component\HttpKernel\HttpKernelInterface; -class HttpCacheTestCase extends \PHPUnit_Framework_TestCase +class HttpCacheTestCase extends TestCase { protected $kernel; protected $cache; diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpCache/ResponseCacheStrategyTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpCache/ResponseCacheStrategyTest.php index 41e40962406a..f30a3b6ad94a 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpCache/ResponseCacheStrategyTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpCache/ResponseCacheStrategyTest.php @@ -15,10 +15,11 @@ namespace Symfony\Component\HttpKernel\Tests\HttpCache; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\HttpCache\ResponseCacheStrategy; -class ResponseCacheStrategyTest extends \PHPUnit_Framework_TestCase +class ResponseCacheStrategyTest extends TestCase { public function testMinimumSharedMaxAgeWins() { diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpCache/SsiTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpCache/SsiTest.php index 357fc5671769..8634aff6f9d1 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpCache/SsiTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpCache/SsiTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\HttpKernel\Tests\HttpCache; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\HttpCache\Ssi; -class SsiTest extends \PHPUnit_Framework_TestCase +class SsiTest extends TestCase { public function testHasSurrogateSsiCapability() { diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php index bf4239beaea6..8b9e52b03ea9 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\HttpKernel\Tests\HttpCache; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\HttpCache\Store; -class StoreTest extends \PHPUnit_Framework_TestCase +class StoreTest extends TestCase { protected $request; protected $response; diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php index 270926f79c59..6a5b2331f713 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\HttpKernel; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\KernelEvents; @@ -21,7 +22,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\EventDispatcher\EventDispatcher; -class HttpKernelTest extends \PHPUnit_Framework_TestCase +class HttpKernelTest extends TestCase { /** * @expectedException \RuntimeException diff --git a/src/Symfony/Component/HttpKernel/Tests/KernelTest.php b/src/Symfony/Component/HttpKernel/Tests/KernelTest.php index 8639818397e6..8d4ebd7215db 100644 --- a/src/Symfony/Component/HttpKernel/Tests/KernelTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/KernelTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\BundleInterface; use Symfony\Component\HttpKernel\Config\EnvParametersResource; @@ -22,7 +23,7 @@ use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForOverrideName; use Symfony\Component\HttpKernel\Tests\Fixtures\FooBarBundle; -class KernelTest extends \PHPUnit_Framework_TestCase +class KernelTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php b/src/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php index dc361ed0f08a..f3557eedcb88 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests\Profiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Profiler\Profile; -abstract class AbstractProfilerStorageTest extends \PHPUnit_Framework_TestCase +abstract class AbstractProfilerStorageTest extends TestCase { public function testStore() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php b/src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php index 6e56f8bcf5c3..6b2c57a07612 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\HttpKernel\Tests\Profiler; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DataCollector\RequestDataCollector; use Symfony\Component\HttpKernel\Profiler\FileProfilerStorage; use Symfony\Component\HttpKernel\Profiler\Profiler; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -class ProfilerTest extends \PHPUnit_Framework_TestCase +class ProfilerTest extends TestCase { private $tmp; private $storage; diff --git a/src/Symfony/Component/HttpKernel/Tests/UriSignerTest.php b/src/Symfony/Component/HttpKernel/Tests/UriSignerTest.php index 10f41b344dfd..06de8902dc8c 100644 --- a/src/Symfony/Component/HttpKernel/Tests/UriSignerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/UriSignerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\HttpKernel\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\UriSigner; -class UriSignerTest extends \PHPUnit_Framework_TestCase +class UriSignerTest extends TestCase { public function testSign() { diff --git a/src/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php b/src/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php index 4f71c05e1d5d..3465bb0c1d64 100644 --- a/src/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php +++ b/src/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Intl\Tests\Collator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Collator\Collator; /** @@ -18,7 +19,7 @@ * * @author Bernhard Schussek */ -abstract class AbstractCollatorTest extends \PHPUnit_Framework_TestCase +abstract class AbstractCollatorTest extends TestCase { /** * @dataProvider asortProvider diff --git a/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/BundleEntryReaderTest.php b/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/BundleEntryReaderTest.php index 9ddef240a497..d76e2ab39af4 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/BundleEntryReaderTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/BundleEntryReaderTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Intl\Tests\Data\Bundle\Reader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Exception\ResourceBundleNotFoundException; use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReader; /** * @author Bernhard Schussek */ -class BundleEntryReaderTest extends \PHPUnit_Framework_TestCase +class BundleEntryReaderTest extends TestCase { const RES_DIR = '/res/dir'; diff --git a/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/IntlBundleReaderTest.php b/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/IntlBundleReaderTest.php index b2d7c63a9395..88e6974bf295 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/IntlBundleReaderTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/IntlBundleReaderTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Intl\Tests\Data\Bundle\Reader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Data\Bundle\Reader\IntlBundleReader; /** * @author Bernhard Schussek * @requires extension intl */ -class IntlBundleReaderTest extends \PHPUnit_Framework_TestCase +class IntlBundleReaderTest extends TestCase { /** * @var IntlBundleReader diff --git a/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/JsonBundleReaderTest.php b/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/JsonBundleReaderTest.php index a6183edfe073..a8ccabe07bb7 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/JsonBundleReaderTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/JsonBundleReaderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Intl\Tests\Data\Bundle\Reader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Data\Bundle\Reader\JsonBundleReader; /** * @author Bernhard Schussek */ -class JsonBundleReaderTest extends \PHPUnit_Framework_TestCase +class JsonBundleReaderTest extends TestCase { /** * @var JsonBundleReader diff --git a/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/PhpBundleReaderTest.php b/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/PhpBundleReaderTest.php index 3c58ee7c416c..51898cb2be5d 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/PhpBundleReaderTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/PhpBundleReaderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Intl\Tests\Data\Bundle\Reader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Data\Bundle\Reader\PhpBundleReader; /** * @author Bernhard Schussek */ -class PhpBundleReaderTest extends \PHPUnit_Framework_TestCase +class PhpBundleReaderTest extends TestCase { /** * @var PhpBundleReader diff --git a/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/JsonBundleWriterTest.php b/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/JsonBundleWriterTest.php index 5e4c4b225e2b..b8610334d5a7 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/JsonBundleWriterTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/JsonBundleWriterTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Intl\Tests\Data\Bundle\Writer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Intl\Data\Bundle\Writer\JsonBundleWriter; @@ -18,7 +19,7 @@ * @author Bernhard Schussek * @requires PHP 5.4 */ -class JsonBundleWriterTest extends \PHPUnit_Framework_TestCase +class JsonBundleWriterTest extends TestCase { /** * @var JsonBundleWriter diff --git a/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/PhpBundleWriterTest.php b/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/PhpBundleWriterTest.php index ee7b12f1ed04..a4c0330e0d5e 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/PhpBundleWriterTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/PhpBundleWriterTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Intl\Tests\Data\Bundle\Writer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Intl\Data\Bundle\Writer\PhpBundleWriter; /** * @author Bernhard Schussek */ -class PhpBundleWriterTest extends \PHPUnit_Framework_TestCase +class PhpBundleWriterTest extends TestCase { /** * @var PhpBundleWriter diff --git a/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/TextBundleWriterTest.php b/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/TextBundleWriterTest.php index 197a4e1fc05f..4908f2837026 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/TextBundleWriterTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/TextBundleWriterTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Intl\Tests\Data\Bundle\Writer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Intl\Data\Bundle\Writer\TextBundleWriter; @@ -19,7 +20,7 @@ * * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt */ -class TextBundleWriterTest extends \PHPUnit_Framework_TestCase +class TextBundleWriterTest extends TestCase { /** * @var TextBundleWriter diff --git a/src/Symfony/Component/Intl/Tests/Data/Provider/AbstractDataProviderTest.php b/src/Symfony/Component/Intl/Tests/Data/Provider/AbstractDataProviderTest.php index 431f588e77a8..e852c1eb34e5 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Provider/AbstractDataProviderTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Provider/AbstractDataProviderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Intl\Tests\Data\Provider; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReader; use Symfony\Component\Intl\Data\Bundle\Reader\BundleReaderInterface; use Symfony\Component\Intl\Locale; @@ -18,7 +19,7 @@ /** * @author Bernhard Schussek */ -abstract class AbstractDataProviderTest extends \PHPUnit_Framework_TestCase +abstract class AbstractDataProviderTest extends TestCase { // Include the locales statically so that the data providers are decoupled // from the Intl class. Otherwise tests will fail if the intl extension is diff --git a/src/Symfony/Component/Intl/Tests/Data/Util/LocaleScannerTest.php b/src/Symfony/Component/Intl/Tests/Data/Util/LocaleScannerTest.php index fa487ba3b533..f76c71d8f7a4 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Util/LocaleScannerTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Util/LocaleScannerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Intl\Tests\Data\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Intl\Data\Util\LocaleScanner; /** * @author Bernhard Schussek */ -class LocaleScannerTest extends \PHPUnit_Framework_TestCase +class LocaleScannerTest extends TestCase { private $directory; diff --git a/src/Symfony/Component/Intl/Tests/Data/Util/RingBufferTest.php b/src/Symfony/Component/Intl/Tests/Data/Util/RingBufferTest.php index f19a1714f7f1..bbaecfcbd668 100644 --- a/src/Symfony/Component/Intl/Tests/Data/Util/RingBufferTest.php +++ b/src/Symfony/Component/Intl/Tests/Data/Util/RingBufferTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Intl\Tests\Data\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Data\Util\RingBuffer; /** * @author Bernhard Schussek */ -class RingBufferTest extends \PHPUnit_Framework_TestCase +class RingBufferTest extends TestCase { /** * @var RingBuffer diff --git a/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php b/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php index f2788ba469cd..88cc55e9be8c 100644 --- a/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php +++ b/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Intl\Tests\DateFormatter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\DateFormatter\IntlDateFormatter; use Symfony\Component\Intl\Globals\IntlGlobals; @@ -19,7 +20,7 @@ * * @author Bernhard Schussek */ -abstract class AbstractIntlDateFormatterTest extends \PHPUnit_Framework_TestCase +abstract class AbstractIntlDateFormatterTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Intl/Tests/Globals/AbstractIntlGlobalsTest.php b/src/Symfony/Component/Intl/Tests/Globals/AbstractIntlGlobalsTest.php index 75d54eb23486..57c75fb95494 100644 --- a/src/Symfony/Component/Intl/Tests/Globals/AbstractIntlGlobalsTest.php +++ b/src/Symfony/Component/Intl/Tests/Globals/AbstractIntlGlobalsTest.php @@ -11,12 +11,14 @@ namespace Symfony\Component\Intl\Tests\Globals; +use PHPUnit\Framework\TestCase; + /** * Test case for intl function implementations. * * @author Bernhard Schussek */ -abstract class AbstractIntlGlobalsTest extends \PHPUnit_Framework_TestCase +abstract class AbstractIntlGlobalsTest extends TestCase { public function errorNameProvider() { diff --git a/src/Symfony/Component/Intl/Tests/Locale/AbstractLocaleTest.php b/src/Symfony/Component/Intl/Tests/Locale/AbstractLocaleTest.php index 08569fad4d1a..cf991c9bcc6d 100644 --- a/src/Symfony/Component/Intl/Tests/Locale/AbstractLocaleTest.php +++ b/src/Symfony/Component/Intl/Tests/Locale/AbstractLocaleTest.php @@ -11,12 +11,14 @@ namespace Symfony\Component\Intl\Tests\Locale; +use PHPUnit\Framework\TestCase; + /** * Test case for Locale implementations. * * @author Bernhard Schussek */ -abstract class AbstractLocaleTest extends \PHPUnit_Framework_TestCase +abstract class AbstractLocaleTest extends TestCase { public function testSetDefault() { diff --git a/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php b/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php index e424b715fce4..8ba2be2e23ca 100644 --- a/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php +++ b/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Intl\Tests\NumberFormatter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Globals\IntlGlobals; use Symfony\Component\Intl\NumberFormatter\NumberFormatter; use Symfony\Component\Intl\Util\IntlTestHelper; @@ -19,7 +20,7 @@ * Note that there are some values written like -2147483647 - 1. This is the lower 32bit int max and is a known * behavior of PHP. */ -abstract class AbstractNumberFormatterTest extends \PHPUnit_Framework_TestCase +abstract class AbstractNumberFormatterTest extends TestCase { /** * @dataProvider formatCurrencyWithDecimalStyleProvider diff --git a/src/Symfony/Component/Intl/Tests/Util/IcuVersionTest.php b/src/Symfony/Component/Intl/Tests/Util/IcuVersionTest.php index d1a7e8c15d88..2fe7a0e4587b 100644 --- a/src/Symfony/Component/Intl/Tests/Util/IcuVersionTest.php +++ b/src/Symfony/Component/Intl/Tests/Util/IcuVersionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Intl\Tests\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Util\IcuVersion; /** * @author Bernhard Schussek */ -class IcuVersionTest extends \PHPUnit_Framework_TestCase +class IcuVersionTest extends TestCase { public function normalizeProvider() { diff --git a/src/Symfony/Component/Intl/Tests/Util/VersionTest.php b/src/Symfony/Component/Intl/Tests/Util/VersionTest.php index 60cec6c09970..b570b3ae96ae 100644 --- a/src/Symfony/Component/Intl/Tests/Util/VersionTest.php +++ b/src/Symfony/Component/Intl/Tests/Util/VersionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Intl\Tests\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Util\Version; /** * @author Bernhard Schussek */ -class VersionTest extends \PHPUnit_Framework_TestCase +class VersionTest extends TestCase { public function normalizeProvider() { diff --git a/src/Symfony/Component/Intl/Util/IntlTestHelper.php b/src/Symfony/Component/Intl/Util/IntlTestHelper.php index c1e37a72ec8a..12c3ff05913c 100644 --- a/src/Symfony/Component/Intl/Util/IntlTestHelper.php +++ b/src/Symfony/Component/Intl/Util/IntlTestHelper.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Intl\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Intl; /** @@ -29,7 +30,7 @@ class IntlTestHelper /** * Should be called before tests that work fine with the stub implementation. */ - public static function requireIntl(\PHPUnit_Framework_TestCase $testCase, $minimumIcuVersion = null) + public static function requireIntl(TestCase $testCase, $minimumIcuVersion = null) { if (null === $minimumIcuVersion) { $minimumIcuVersion = Intl::getIcuStubVersion(); @@ -63,7 +64,7 @@ public static function requireIntl(\PHPUnit_Framework_TestCase $testCase, $minim * Should be called before tests that require a feature-complete intl * implementation. */ - public static function requireFullIntl(\PHPUnit_Framework_TestCase $testCase, $minimumIcuVersion = null) + public static function requireFullIntl(TestCase $testCase, $minimumIcuVersion = null) { // We only run tests if the intl extension is loaded... if (!Intl::isExtensionLoaded()) { @@ -83,7 +84,7 @@ public static function requireFullIntl(\PHPUnit_Framework_TestCase $testCase, $m /** * Skips the test unless the current system has a 32bit architecture. */ - public static function require32Bit(\PHPUnit_Framework_TestCase $testCase) + public static function require32Bit(TestCase $testCase) { if (4 !== PHP_INT_SIZE) { $testCase->markTestSkipped('PHP 32 bit is required.'); @@ -93,7 +94,7 @@ public static function require32Bit(\PHPUnit_Framework_TestCase $testCase) /** * Skips the test unless the current system has a 64bit architecture. */ - public static function require64Bit(\PHPUnit_Framework_TestCase $testCase) + public static function require64Bit(TestCase $testCase) { if (8 !== PHP_INT_SIZE) { $testCase->markTestSkipped('PHP 64 bit is required.'); diff --git a/src/Symfony/Component/Locale/Tests/LocaleTest.php b/src/Symfony/Component/Locale/Tests/LocaleTest.php index 6d160a08332b..63f82a72b411 100644 --- a/src/Symfony/Component/Locale/Tests/LocaleTest.php +++ b/src/Symfony/Component/Locale/Tests/LocaleTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Locale\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Locale\Locale; use Symfony\Component\Intl\Util\IntlTestHelper; @@ -21,7 +22,7 @@ * * @group legacy */ -class LocaleTest extends \PHPUnit_Framework_TestCase +class LocaleTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php b/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php index b79ea86ea322..4d82b42881fa 100644 --- a/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php +++ b/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Locale\Tests\Stub; +use PHPUnit\Framework\TestCase; use Symfony\Component\Locale\Stub\StubLocale; /** @@ -18,7 +19,7 @@ * * @group legacy */ -class StubLocaleTest extends \PHPUnit_Framework_TestCase +class StubLocaleTest extends TestCase { public function testGetCurrenciesData() { diff --git a/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsResolverTest.php b/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsResolverTest.php index ee89f5279797..c277425c4d7f 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsResolverTest.php +++ b/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsResolverTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\OptionsResolver\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\Options; /** * @group legacy */ -class LegacyOptionsResolverTest extends \PHPUnit_Framework_TestCase +class LegacyOptionsResolverTest extends TestCase { /** * @var OptionsResolver @@ -122,7 +123,7 @@ public function testResolveLazyDependencyOnMissingOptionalWithoutDefault() $this->resolver->setDefaults(array( 'two' => function (Options $options) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertFalse(isset($options['one'])); return '2'; @@ -146,7 +147,7 @@ public function testResolveLazyDependencyOnOptionalWithoutDefault() $this->resolver->setDefaults(array( 'two' => function (Options $options) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertTrue(isset($options['one'])); return $options['one'].'2'; @@ -190,7 +191,7 @@ public function testResolveLazyReplaceDefaults() $this->resolver->setDefaults(array( 'one' => function (Options $options) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->fail('Previous closure should not be executed'); }, )); diff --git a/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsTest.php b/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsTest.php index fb4d25b5bcea..642d1d5e22fa 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsTest.php +++ b/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\OptionsResolver\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\OptionsResolver\Options; use Symfony\Component\OptionsResolver\OptionsResolver; /** * @group legacy */ -class LegacyOptionsTest extends \PHPUnit_Framework_TestCase +class LegacyOptionsTest extends TestCase { /** * @var OptionsResolver @@ -49,7 +50,7 @@ public function testOverloadKeepsPreviousValue() // defined by subclass $this->options->overload('foo', function (Options $options, $previousValue) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals('bar', $previousValue); return 'dynamic'; @@ -69,7 +70,7 @@ public function testPreviousValueIsEvaluatedIfLazy() // defined by subclass $this->options->overload('foo', function (Options $options, $previousValue) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals('bar', $previousValue); return 'dynamic'; @@ -102,7 +103,7 @@ public function testLazyOptionCanAccessOtherOptions() $this->options->set('foo', 'bar'); $this->options->set('bam', function (Options $options) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals('bar', $options->get('foo')); return 'dynamic'; @@ -120,7 +121,7 @@ public function testLazyOptionCanAccessOtherLazyOptions() }); $this->options->set('bam', function (Options $options) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals('bar', $options->get('foo')); return 'dynamic'; @@ -159,7 +160,7 @@ public function testNormalizerCanAccessOtherOptions() $this->options->set('bam', 'baz'); $this->options->setNormalizer('bam', function (Options $options) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals('bar', $options->get('foo')); return 'normalized'; @@ -178,7 +179,7 @@ public function testNormalizerCanAccessOtherLazyOptions() $this->options->set('bam', 'baz'); $this->options->setNormalizer('bam', function (Options $options) use ($test) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var TestCase $test */ $test->assertEquals('bar', $options->get('foo')); return 'normalized'; diff --git a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php index 2dc4362375a4..6d9ddaf5713c 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php +++ b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php @@ -11,11 +11,13 @@ namespace Symfony\Component\OptionsResolver\Tests; +use PHPUnit\Framework\Assert; +use PHPUnit\Framework\TestCase; use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; use Symfony\Component\OptionsResolver\Options; use Symfony\Component\OptionsResolver\OptionsResolver; -class OptionsResolver2Dot6Test extends \PHPUnit_Framework_TestCase +class OptionsResolver2Dot6Test extends TestCase { /** * @var OptionsResolver @@ -134,7 +136,7 @@ public function testSetLazyClosure() public function testClosureWithoutTypeHintNotInvoked() { $closure = function ($options) { - \PHPUnit_Framework_Assert::fail('Should not be called'); + Assert::fail('Should not be called'); }; $this->resolver->setDefault('foo', $closure); @@ -145,7 +147,7 @@ public function testClosureWithoutTypeHintNotInvoked() public function testClosureWithoutParametersNotInvoked() { $closure = function () { - \PHPUnit_Framework_Assert::fail('Should not be called'); + Assert::fail('Should not be called'); }; $this->resolver->setDefault('foo', $closure); @@ -160,7 +162,7 @@ public function testAccessPreviousDefaultValue() // defined by subclass $this->resolver->setDefault('foo', function (Options $options, $previousValue) { - \PHPUnit_Framework_Assert::assertEquals('bar', $previousValue); + Assert::assertEquals('bar', $previousValue); return 'lazy'; }); @@ -177,7 +179,7 @@ public function testAccessPreviousLazyDefaultValue() // defined by subclass $this->resolver->setDefault('foo', function (Options $options, $previousValue) { - \PHPUnit_Framework_Assert::assertEquals('bar', $previousValue); + Assert::assertEquals('bar', $previousValue); return 'lazy'; }); @@ -189,7 +191,7 @@ public function testPreviousValueIsNotEvaluatedIfNoSecondArgument() { // defined by superclass $this->resolver->setDefault('foo', function () { - \PHPUnit_Framework_Assert::fail('Should not be called'); + Assert::fail('Should not be called'); }); // defined by subclass, no $previousValue argument defined! @@ -203,7 +205,7 @@ public function testPreviousValueIsNotEvaluatedIfNoSecondArgument() public function testOverwrittenLazyOptionNotEvaluated() { $this->resolver->setDefault('foo', function (Options $options) { - \PHPUnit_Framework_Assert::fail('Should not be called'); + Assert::fail('Should not be called'); }); $this->resolver->setDefault('foo', 'bar'); @@ -216,13 +218,13 @@ public function testInvokeEachLazyOptionOnlyOnce() $calls = 0; $this->resolver->setDefault('lazy1', function (Options $options) use (&$calls) { - \PHPUnit_Framework_Assert::assertSame(1, ++$calls); + Assert::assertSame(1, ++$calls); $options['lazy2']; }); $this->resolver->setDefault('lazy2', function (Options $options) use (&$calls) { - \PHPUnit_Framework_Assert::assertSame(2, ++$calls); + Assert::assertSame(2, ++$calls); }); $this->resolver->resolve(); @@ -996,7 +998,7 @@ public function testValidateTypeBeforeNormalization() $this->resolver->setAllowedTypes('foo', 'int'); $this->resolver->setNormalizer('foo', function () { - \PHPUnit_Framework_Assert::fail('Should not be called.'); + Assert::fail('Should not be called.'); }); $this->resolver->resolve(); @@ -1012,7 +1014,7 @@ public function testValidateValueBeforeNormalization() $this->resolver->setAllowedValues('foo', 'baz'); $this->resolver->setNormalizer('foo', function () { - \PHPUnit_Framework_Assert::fail('Should not be called.'); + Assert::fail('Should not be called.'); }); $this->resolver->resolve(); @@ -1024,8 +1026,8 @@ public function testNormalizerCanAccessOtherOptions() $this->resolver->setDefault('norm', 'baz'); $this->resolver->setNormalizer('norm', function (Options $options) { - /* @var \PHPUnit_Framework_TestCase $test */ - \PHPUnit_Framework_Assert::assertSame('bar', $options['default']); + /* @var TestCase $test */ + Assert::assertSame('bar', $options['default']); return 'normalized'; }); @@ -1044,8 +1046,8 @@ public function testNormalizerCanAccessLazyOptions() $this->resolver->setDefault('norm', 'baz'); $this->resolver->setNormalizer('norm', function (Options $options) { - /* @var \PHPUnit_Framework_TestCase $test */ - \PHPUnit_Framework_Assert::assertEquals('bar', $options['lazy']); + /* @var TestCase $test */ + Assert::assertEquals('bar', $options['lazy']); return 'normalized'; }); @@ -1151,12 +1153,12 @@ public function testInvokeEachNormalizerOnlyOnce() $this->resolver->setDefault('norm2', 'baz'); $this->resolver->setNormalizer('norm1', function ($options) use (&$calls) { - \PHPUnit_Framework_Assert::assertSame(1, ++$calls); + Assert::assertSame(1, ++$calls); $options['norm2']; }); $this->resolver->setNormalizer('norm2', function () use (&$calls) { - \PHPUnit_Framework_Assert::assertSame(2, ++$calls); + Assert::assertSame(2, ++$calls); }); $this->resolver->resolve(); @@ -1169,7 +1171,7 @@ public function testNormalizerNotCalledForUnsetOptions() $this->resolver->setDefined('norm'); $this->resolver->setNormalizer('norm', function () { - \PHPUnit_Framework_Assert::fail('Should not be called.'); + Assert::fail('Should not be called.'); }); $this->assertEmpty($this->resolver->resolve()); @@ -1410,17 +1412,17 @@ public function testArrayAccess() }); $this->resolver->setDefault('lazy2', function (Options $options) { - \PHPUnit_Framework_Assert::assertTrue(isset($options['default1'])); - \PHPUnit_Framework_Assert::assertTrue(isset($options['default2'])); - \PHPUnit_Framework_Assert::assertTrue(isset($options['required'])); - \PHPUnit_Framework_Assert::assertTrue(isset($options['lazy1'])); - \PHPUnit_Framework_Assert::assertTrue(isset($options['lazy2'])); - \PHPUnit_Framework_Assert::assertFalse(isset($options['defined'])); - - \PHPUnit_Framework_Assert::assertSame(0, $options['default1']); - \PHPUnit_Framework_Assert::assertSame(42, $options['default2']); - \PHPUnit_Framework_Assert::assertSame('value', $options['required']); - \PHPUnit_Framework_Assert::assertSame('lazy', $options['lazy1']); + Assert::assertTrue(isset($options['default1'])); + Assert::assertTrue(isset($options['default2'])); + Assert::assertTrue(isset($options['required'])); + Assert::assertTrue(isset($options['lazy1'])); + Assert::assertTrue(isset($options['lazy2'])); + Assert::assertFalse(isset($options['defined'])); + + Assert::assertSame(0, $options['default1']); + Assert::assertSame(42, $options['default2']); + Assert::assertSame('value', $options['required']); + Assert::assertSame('lazy', $options['lazy1']); // Obviously $options['lazy'] and $options['defined'] cannot be // accessed @@ -1525,7 +1527,7 @@ public function testCount() $this->resolver->setDefault('lazy1', function () {}); $this->resolver->setDefault('lazy2', function (Options $options) { - \PHPUnit_Framework_Assert::assertCount(4, $options); + Assert::assertCount(4, $options); }); $this->assertCount(4, $this->resolver->resolve(array('required' => 'value'))); diff --git a/src/Symfony/Component/Process/Tests/ExecutableFinderTest.php b/src/Symfony/Component/Process/Tests/ExecutableFinderTest.php index 0e97ae9b1781..3aaeb0fb8851 100644 --- a/src/Symfony/Component/Process/Tests/ExecutableFinderTest.php +++ b/src/Symfony/Component/Process/Tests/ExecutableFinderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Process\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Process\ExecutableFinder; /** * @author Chris Smith */ -class ExecutableFinderTest extends \PHPUnit_Framework_TestCase +class ExecutableFinderTest extends TestCase { private $path; diff --git a/src/Symfony/Component/Process/Tests/PhpExecutableFinderTest.php b/src/Symfony/Component/Process/Tests/PhpExecutableFinderTest.php index 28bafe38ea1c..23465e9e808d 100644 --- a/src/Symfony/Component/Process/Tests/PhpExecutableFinderTest.php +++ b/src/Symfony/Component/Process/Tests/PhpExecutableFinderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Process\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Process\PhpExecutableFinder; /** * @author Robert Schönthal */ -class PhpExecutableFinderTest extends \PHPUnit_Framework_TestCase +class PhpExecutableFinderTest extends TestCase { /** * tests find() with the env var PHP_PATH. diff --git a/src/Symfony/Component/Process/Tests/PhpProcessTest.php b/src/Symfony/Component/Process/Tests/PhpProcessTest.php index f54623a5ec34..79ab02717a58 100644 --- a/src/Symfony/Component/Process/Tests/PhpProcessTest.php +++ b/src/Symfony/Component/Process/Tests/PhpProcessTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Process\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Process\PhpExecutableFinder; use Symfony\Component\Process\PhpProcess; -class PhpProcessTest extends \PHPUnit_Framework_TestCase +class PhpProcessTest extends TestCase { public function testNonBlockingWorks() { diff --git a/src/Symfony/Component/Process/Tests/ProcessBuilderTest.php b/src/Symfony/Component/Process/Tests/ProcessBuilderTest.php index 1b5056d1bb10..3faa50c551c7 100644 --- a/src/Symfony/Component/Process/Tests/ProcessBuilderTest.php +++ b/src/Symfony/Component/Process/Tests/ProcessBuilderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Process\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Process\ProcessBuilder; -class ProcessBuilderTest extends \PHPUnit_Framework_TestCase +class ProcessBuilderTest extends TestCase { public function testInheritEnvironmentVars() { diff --git a/src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php b/src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php index c1feaa6ba9ae..11f2779420ce 100644 --- a/src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php +++ b/src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Process\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Process\Exception\ProcessFailedException; /** * @author Sebastian Marek */ -class ProcessFailedExceptionTest extends \PHPUnit_Framework_TestCase +class ProcessFailedExceptionTest extends TestCase { /** * tests ProcessFailedException throws exception if the process was successful. diff --git a/src/Symfony/Component/Process/Tests/ProcessTest.php b/src/Symfony/Component/Process/Tests/ProcessTest.php index f8608337a4a0..842dbf5b9ad1 100644 --- a/src/Symfony/Component/Process/Tests/ProcessTest.php +++ b/src/Symfony/Component/Process/Tests/ProcessTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Process\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Process\Exception\LogicException; use Symfony\Component\Process\Exception\ProcessTimedOutException; use Symfony\Component\Process\Exception\RuntimeException; @@ -21,7 +22,7 @@ /** * @author Robert Schönthal */ -class ProcessTest extends \PHPUnit_Framework_TestCase +class ProcessTest extends TestCase { private static $phpBin; private static $process; diff --git a/src/Symfony/Component/Process/Tests/ProcessUtilsTest.php b/src/Symfony/Component/Process/Tests/ProcessUtilsTest.php index 0f554b615180..cdcd3845caaa 100644 --- a/src/Symfony/Component/Process/Tests/ProcessUtilsTest.php +++ b/src/Symfony/Component/Process/Tests/ProcessUtilsTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Process\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Process\ProcessUtils; -class ProcessUtilsTest extends \PHPUnit_Framework_TestCase +class ProcessUtilsTest extends TestCase { /** * @dataProvider dataArguments diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorArrayAccessTest.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorArrayAccessTest.php index 07f44f19d8a1..b0ed69c85953 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorArrayAccessTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorArrayAccessTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\PropertyAccess\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\PropertyAccess\PropertyAccessor; -abstract class PropertyAccessorArrayAccessTest extends \PHPUnit_Framework_TestCase +abstract class PropertyAccessorArrayAccessTest extends TestCase { /** * @var PropertyAccessor diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php index 951c6802f93b..f57433d875f5 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\PropertyAccess\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\PropertyAccess\PropertyAccessorBuilder; -class PropertyAccessorBuilderTest extends \PHPUnit_Framework_TestCase +class PropertyAccessorBuilderTest extends TestCase { /** * @var PropertyAccessorBuilder diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php index a7e142e878e8..fc434adb45a0 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\PropertyAccess\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\PropertyAccess\Exception\NoSuchIndexException; use Symfony\Component\PropertyAccess\PropertyAccessor; use Symfony\Component\PropertyAccess\Tests\Fixtures\TestClass; @@ -21,7 +22,7 @@ use Symfony\Component\PropertyAccess\Tests\Fixtures\TestClassIsWritable; use Symfony\Component\PropertyAccess\Tests\Fixtures\TypeHinted; -class PropertyAccessorTest extends \PHPUnit_Framework_TestCase +class PropertyAccessorTest extends TestCase { /** * @var PropertyAccessor diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyPathBuilderTest.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyPathBuilderTest.php index 6b4fdd8db982..75e9834ae85c 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/PropertyPathBuilderTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyPathBuilderTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\PropertyAccess\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\PropertyAccess\PropertyPath; use Symfony\Component\PropertyAccess\PropertyPathBuilder; /** * @author Bernhard Schussek */ -class PropertyPathBuilderTest extends \PHPUnit_Framework_TestCase +class PropertyPathBuilderTest extends TestCase { /** * @var string diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyPathTest.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyPathTest.php index aa8c1288b012..5e3a06a4b4d8 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/PropertyPathTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyPathTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\PropertyAccess\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\PropertyAccess\PropertyPath; -class PropertyPathTest extends \PHPUnit_Framework_TestCase +class PropertyPathTest extends TestCase { public function testToString() { diff --git a/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php b/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php index e6d0e5e908ba..e463ead43b6e 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\PropertyAccess\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\PropertyAccess\StringUtil; -class StringUtilTest extends \PHPUnit_Framework_TestCase +class StringUtilTest extends TestCase { public function singularifyProvider() { diff --git a/src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php b/src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php index 3b340b33eeae..2a6f32ee75bf 100644 --- a/src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php +++ b/src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Routing\Tests\Annotation; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Annotation\Route; -class RouteTest extends \PHPUnit_Framework_TestCase +class RouteTest extends TestCase { /** * @expectedException \BadMethodCallException diff --git a/src/Symfony/Component/Routing/Tests/CompiledRouteTest.php b/src/Symfony/Component/Routing/Tests/CompiledRouteTest.php index 215ebb707bad..c55317958487 100644 --- a/src/Symfony/Component/Routing/Tests/CompiledRouteTest.php +++ b/src/Symfony/Component/Routing/Tests/CompiledRouteTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Routing\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\CompiledRoute; -class CompiledRouteTest extends \PHPUnit_Framework_TestCase +class CompiledRouteTest extends TestCase { public function testAccessors() { diff --git a/src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php b/src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php index 4fc03ba64289..f84802b35b25 100644 --- a/src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Routing\Tests\Generator\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\Generator\Dumper\PhpGeneratorDumper; use Symfony\Component\Routing\RequestContext; -class PhpGeneratorDumperTest extends \PHPUnit_Framework_TestCase +class PhpGeneratorDumperTest extends TestCase { /** * @var RouteCollection diff --git a/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php b/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php index 9f4090ff8609..36094ba49df8 100644 --- a/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php +++ b/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Routing\Tests\Generator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\Generator\UrlGenerator; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Routing\RequestContext; -class UrlGeneratorTest extends \PHPUnit_Framework_TestCase +class UrlGeneratorTest extends TestCase { public function testAbsoluteUrlWithPort80() { diff --git a/src/Symfony/Component/Routing/Tests/Loader/AbstractAnnotationLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/AbstractAnnotationLoaderTest.php index 288bf64ffaf7..e8bbe8fcf43e 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/AbstractAnnotationLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/AbstractAnnotationLoaderTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Routing\Tests\Loader; -abstract class AbstractAnnotationLoaderTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +abstract class AbstractAnnotationLoaderTest extends TestCase { public function getReader() { diff --git a/src/Symfony/Component/Routing/Tests/Loader/ClosureLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/ClosureLoaderTest.php index d34fa87ec533..5d963f86fb01 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/ClosureLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/ClosureLoaderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Routing\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Loader\ClosureLoader; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; -class ClosureLoaderTest extends \PHPUnit_Framework_TestCase +class ClosureLoaderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/Routing/Tests/Loader/PhpFileLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/PhpFileLoaderTest.php index ed7c5a4ba73d..bda64236f602 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/PhpFileLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/PhpFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Routing\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\FileLocator; use Symfony\Component\Routing\Loader\PhpFileLoader; -class PhpFileLoaderTest extends \PHPUnit_Framework_TestCase +class PhpFileLoaderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/Routing/Tests/Loader/XmlFileLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/XmlFileLoaderTest.php index f2edebd584bf..354e8be0c41c 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/XmlFileLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/XmlFileLoaderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Routing\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\FileLocator; use Symfony\Component\Routing\Loader\XmlFileLoader; use Symfony\Component\Routing\Tests\Fixtures\CustomXmlFileLoader; -class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase +class XmlFileLoaderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/Routing/Tests/Loader/YamlFileLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/YamlFileLoaderTest.php index d3edc0849484..d94437f6cf03 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/YamlFileLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/YamlFileLoaderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Routing\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\FileLocator; use Symfony\Component\Routing\Loader\YamlFileLoader; use Symfony\Component\Config\Resource\FileResource; -class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase +class YamlFileLoaderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php index 7b6001c1f6d9..823efdb84002 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Routing\Tests\Matcher\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Matcher\Dumper\DumperCollection; -class DumperCollectionTest extends \PHPUnit_Framework_TestCase +class DumperCollectionTest extends TestCase { public function testGetRoot() { diff --git a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperPrefixCollectionTest.php b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperPrefixCollectionTest.php index de01a75d0b1b..e687b8a67d04 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperPrefixCollectionTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperPrefixCollectionTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Routing\Tests\Matcher\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\Matcher\Dumper\DumperPrefixCollection; use Symfony\Component\Routing\Matcher\Dumper\DumperRoute; use Symfony\Component\Routing\Matcher\Dumper\DumperCollection; -class DumperPrefixCollectionTest extends \PHPUnit_Framework_TestCase +class DumperPrefixCollectionTest extends TestCase { public function testAddPrefixRoute() { diff --git a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php index 4bf513e9a6b3..6f1b7dc981ed 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Routing\Tests\Matcher\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\Matcher\Dumper\ApacheMatcherDumper; @@ -18,7 +19,7 @@ /** * @group legacy */ -class LegacyApacheMatcherDumperTest extends \PHPUnit_Framework_TestCase +class LegacyApacheMatcherDumperTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php index 0b9cdc2331ea..cb3a1441656e 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Routing\Tests\Matcher\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; -class PhpMatcherDumperTest extends \PHPUnit_Framework_TestCase +class PhpMatcherDumperTest extends TestCase { /** * @expectedException \LogicException diff --git a/src/Symfony/Component/Routing/Tests/Matcher/LegacyApacheUrlMatcherTest.php b/src/Symfony/Component/Routing/Tests/Matcher/LegacyApacheUrlMatcherTest.php index 931f910df4c5..0c5f73f3eacc 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/LegacyApacheUrlMatcherTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/LegacyApacheUrlMatcherTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Routing\Tests\Matcher; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Matcher\ApacheUrlMatcher; @@ -18,7 +19,7 @@ /** * @group legacy */ -class LegacyApacheUrlMatcherTest extends \PHPUnit_Framework_TestCase +class LegacyApacheUrlMatcherTest extends TestCase { protected $server; diff --git a/src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php b/src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php index b6c5a3e62218..ba4c6e972f19 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Routing\Tests\Matcher; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RequestContext; -class RedirectableUrlMatcherTest extends \PHPUnit_Framework_TestCase +class RedirectableUrlMatcherTest extends TestCase { public function testRedirectWhenNoSlash() { diff --git a/src/Symfony/Component/Routing/Tests/Matcher/TraceableUrlMatcherTest.php b/src/Symfony/Component/Routing/Tests/Matcher/TraceableUrlMatcherTest.php index e43cbcb6bd14..9f0529e2de5d 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/TraceableUrlMatcherTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/TraceableUrlMatcherTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Routing\Tests\Matcher; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Matcher\TraceableUrlMatcher; -class TraceableUrlMatcherTest extends \PHPUnit_Framework_TestCase +class TraceableUrlMatcherTest extends TestCase { public function test() { diff --git a/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php b/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php index bf82fb7f86e6..8f7fbb07be96 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Routing\Tests\Matcher; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\Matcher\UrlMatcher; @@ -18,7 +19,7 @@ use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RequestContext; -class UrlMatcherTest extends \PHPUnit_Framework_TestCase +class UrlMatcherTest extends TestCase { public function testNoMethodSoAllowed() { diff --git a/src/Symfony/Component/Routing/Tests/RequestContextTest.php b/src/Symfony/Component/Routing/Tests/RequestContextTest.php index 58612683ef13..ffe29d1a747c 100644 --- a/src/Symfony/Component/Routing/Tests/RequestContextTest.php +++ b/src/Symfony/Component/Routing/Tests/RequestContextTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Routing\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\RequestContext; -class RequestContextTest extends \PHPUnit_Framework_TestCase +class RequestContextTest extends TestCase { public function testConstruct() { diff --git a/src/Symfony/Component/Routing/Tests/RouteCollectionTest.php b/src/Symfony/Component/Routing/Tests/RouteCollectionTest.php index 376b8db76fe4..83457ff14a7b 100644 --- a/src/Symfony/Component/Routing/Tests/RouteCollectionTest.php +++ b/src/Symfony/Component/Routing/Tests/RouteCollectionTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Routing\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\Route; use Symfony\Component\Config\Resource\FileResource; -class RouteCollectionTest extends \PHPUnit_Framework_TestCase +class RouteCollectionTest extends TestCase { public function testRoute() { diff --git a/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php b/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php index f08b9688a921..8d89dae0f4a9 100644 --- a/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php +++ b/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Routing\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCompiler; -class RouteCompilerTest extends \PHPUnit_Framework_TestCase +class RouteCompilerTest extends TestCase { /** * @dataProvider provideCompileData diff --git a/src/Symfony/Component/Routing/Tests/RouteTest.php b/src/Symfony/Component/Routing/Tests/RouteTest.php index 85273a696a80..18c0206474a3 100644 --- a/src/Symfony/Component/Routing/Tests/RouteTest.php +++ b/src/Symfony/Component/Routing/Tests/RouteTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Routing\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Route; -class RouteTest extends \PHPUnit_Framework_TestCase +class RouteTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Routing/Tests/RouterTest.php b/src/Symfony/Component/Routing/Tests/RouterTest.php index fd418e1300e4..409959eec07d 100644 --- a/src/Symfony/Component/Routing/Tests/RouterTest.php +++ b/src/Symfony/Component/Routing/Tests/RouterTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Routing\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Router; use Symfony\Component\HttpFoundation\Request; -class RouterTest extends \PHPUnit_Framework_TestCase +class RouterTest extends TestCase { private $router = null; diff --git a/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderBenchmarkTest.php b/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderBenchmarkTest.php index c95b474dca03..b5b4dab95f54 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderBenchmarkTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderBenchmarkTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Acl\Tests\Dbal; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Dbal\AclProvider; use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; @@ -20,7 +21,7 @@ /** * @group benchmark */ -class AclProviderBenchmarkTest extends \PHPUnit_Framework_TestCase +class AclProviderBenchmarkTest extends TestCase { /** @var \Doctrine\DBAL\Connection */ protected $con; diff --git a/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderTest.php b/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderTest.php index 680c6c36d618..e0a47e7f0fd0 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Acl\Tests\Dbal; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Dbal\AclProvider; use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; @@ -20,7 +21,7 @@ /** * @requires extension pdo_sqlite */ -class AclProviderTest extends \PHPUnit_Framework_TestCase +class AclProviderTest extends TestCase { protected $con; protected $insertClassStmt; diff --git a/src/Symfony/Component/Security/Acl/Tests/Dbal/MutableAclProviderTest.php b/src/Symfony/Component/Security/Acl/Tests/Dbal/MutableAclProviderTest.php index 6df2d79ccc29..e7de0b54875e 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Dbal/MutableAclProviderTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Dbal/MutableAclProviderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Acl\Tests\Dbal; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Model\FieldEntryInterface; use Symfony\Component\Security\Acl\Model\AuditableEntryInterface; @@ -30,7 +31,7 @@ /** * @requires extension pdo_sqlite */ -class MutableAclProviderTest extends \PHPUnit_Framework_TestCase +class MutableAclProviderTest extends TestCase { protected $con; diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/AclTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/AclTest.php index bfe85e2e0b86..640859192d1b 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/AclTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/AclTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; use Symfony\Component\Security\Acl\Domain\Acl; -class AclTest extends \PHPUnit_Framework_TestCase +class AclTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/AuditLoggerTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/AuditLoggerTest.php index ae11474a35c2..630d217558ac 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/AuditLoggerTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/AuditLoggerTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; -class AuditLoggerTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class AuditLoggerTest extends TestCase { /** * @dataProvider getTestLogData diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/DoctrineAclCacheTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/DoctrineAclCacheTest.php index 255f7f4447e6..09164f2e6dc8 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/DoctrineAclCacheTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/DoctrineAclCacheTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy; @@ -18,7 +19,7 @@ use Symfony\Component\Security\Acl\Domain\DoctrineAclCache; use Doctrine\Common\Cache\ArrayCache; -class DoctrineAclCacheTest extends \PHPUnit_Framework_TestCase +class DoctrineAclCacheTest extends TestCase { protected $permissionGrantingStrategy; diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/EntryTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/EntryTest.php index 58f2786344c7..454f8ff5d35b 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/EntryTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/EntryTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\Entry; -class EntryTest extends \PHPUnit_Framework_TestCase +class EntryTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/FieldEntryTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/FieldEntryTest.php index 55b083ca4c32..6f72f1ebb403 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/FieldEntryTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/FieldEntryTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\FieldEntry; -class FieldEntryTest extends \PHPUnit_Framework_TestCase +class FieldEntryTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityRetrievalStrategyTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityRetrievalStrategyTest.php index 59fc3bdb7e37..a243f9a67c1c 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityRetrievalStrategyTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityRetrievalStrategyTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\ObjectIdentityRetrievalStrategy; -class ObjectIdentityRetrievalStrategyTest extends \PHPUnit_Framework_TestCase +class ObjectIdentityRetrievalStrategyTest extends TestCase { public function testGetObjectIdentityReturnsNullForInvalidDomainObject() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityTest.php index 770ada7a7b1d..89782640c363 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityTest.php @@ -11,10 +11,12 @@ namespace Symfony\Component\Security\Acl\Tests\Domain { + + use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; use Symfony\Component\Security\Acl\Model\DomainObjectInterface; - class ObjectIdentityTest extends \PHPUnit_Framework_TestCase + class ObjectIdentityTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/PermissionGrantingStrategyTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/PermissionGrantingStrategyTest.php index 463f2c126c98..f77262654f12 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/PermissionGrantingStrategyTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/PermissionGrantingStrategyTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Domain\Acl; @@ -18,7 +19,7 @@ use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy; use Symfony\Component\Security\Acl\Exception\NoAceFoundException; -class PermissionGrantingStrategyTest extends \PHPUnit_Framework_TestCase +class PermissionGrantingStrategyTest extends TestCase { public function testIsGrantedObjectAcesHavePriority() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/RoleSecurityIdentityTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/RoleSecurityIdentityTest.php index ad5f23639f17..2e67936cf4ab 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/RoleSecurityIdentityTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/RoleSecurityIdentityTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use Symfony\Component\Security\Core\Role\Role; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; -class RoleSecurityIdentityTest extends \PHPUnit_Framework_TestCase +class RoleSecurityIdentityTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/SecurityIdentityRetrievalStrategyTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/SecurityIdentityRetrievalStrategyTest.php index 579a52e66ec8..2b5e35ecb7c3 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/SecurityIdentityRetrievalStrategyTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/SecurityIdentityRetrievalStrategyTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use Symfony\Component\Security\Acl\Domain\SecurityIdentityRetrievalStrategy; -class SecurityIdentityRetrievalStrategyTest extends \PHPUnit_Framework_TestCase +class SecurityIdentityRetrievalStrategyTest extends TestCase { /** * @dataProvider getSecurityIdentityRetrievalTests diff --git a/src/Symfony/Component/Security/Acl/Tests/Domain/UserSecurityIdentityTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/UserSecurityIdentityTest.php index 1eb52836bc84..613de22ada01 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Domain/UserSecurityIdentityTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/UserSecurityIdentityTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Acl\Tests\Domain; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; -class UserSecurityIdentityTest extends \PHPUnit_Framework_TestCase +class UserSecurityIdentityTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Permission/BasicPermissionMapTest.php b/src/Symfony/Component/Security/Acl/Tests/Permission/BasicPermissionMapTest.php index 2afe588f038a..41eb5b27ab0c 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Permission/BasicPermissionMapTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Permission/BasicPermissionMapTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Acl\Tests\Permission; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Permission\BasicPermissionMap; -class BasicPermissionMapTest extends \PHPUnit_Framework_TestCase +class BasicPermissionMapTest extends TestCase { public function testGetMasksReturnsNullWhenNotSupportedMask() { diff --git a/src/Symfony/Component/Security/Acl/Tests/Permission/MaskBuilderTest.php b/src/Symfony/Component/Security/Acl/Tests/Permission/MaskBuilderTest.php index 824566918025..6e34e6d5e709 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Permission/MaskBuilderTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Permission/MaskBuilderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Acl\Tests\Permission; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Permission\MaskBuilder; -class MaskBuilderTest extends \PHPUnit_Framework_TestCase +class MaskBuilderTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/Security/Acl/Tests/Voter/AclVoterTest.php b/src/Symfony/Component/Security/Acl/Tests/Voter/AclVoterTest.php index bf8d6744acaa..508008d279b0 100644 --- a/src/Symfony/Component/Security/Acl/Tests/Voter/AclVoterTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Voter/AclVoterTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Acl\Tests\Voter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Acl\Exception\NoAceFoundException; use Symfony\Component\Security\Acl\Voter\FieldVote; use Symfony\Component\Security\Acl\Exception\AclNotFoundException; @@ -20,7 +21,7 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; use Symfony\Component\Security\Acl\Voter\AclVoter; -class AclVoterTest extends \PHPUnit_Framework_TestCase +class AclVoterTest extends TestCase { /** * @dataProvider getSupportsAttributeTests diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationProviderManagerTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationProviderManagerTest.php index 274992ed049e..9b8105012c3d 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationProviderManagerTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationProviderManagerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Security\Core\Tests\Authentication; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager; use Symfony\Component\Security\Core\Exception\ProviderNotFoundException; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Exception\AccountStatusException; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; -class AuthenticationProviderManagerTest extends \PHPUnit_Framework_TestCase +class AuthenticationProviderManagerTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php index e3f7f5f18bb7..55ca05b43b5f 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Authentication; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver; -class AuthenticationTrustResolverTest extends \PHPUnit_Framework_TestCase +class AuthenticationTrustResolverTest extends TestCase { public function testIsAnonymous() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php index 43eb62f3252a..b7fa4d6b5494 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider; -class AnonymousAuthenticationProviderTest extends \PHPUnit_Framework_TestCase +class AnonymousAuthenticationProviderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/DaoAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/DaoAuthenticationProviderTest.php index 8edf1b02d450..85dafc1e9f8b 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/DaoAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/DaoAuthenticationProviderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder; use Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; -class DaoAuthenticationProviderTest extends \PHPUnit_Framework_TestCase +class DaoAuthenticationProviderTest extends TestCase { /** * @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationServiceException diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php index 27d8566e6874..5a78d0ebb911 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Provider\PreAuthenticatedAuthenticationProvider; use Symfony\Component\Security\Core\Exception\LockedException; -class PreAuthenticatedAuthenticationProviderTest extends \PHPUnit_Framework_TestCase +class PreAuthenticatedAuthenticationProviderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php index ea30d5e3c71e..241076755e76 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider; use Symfony\Component\Security\Core\Exception\DisabledException; use Symfony\Component\Security\Core\Role\Role; -class RememberMeAuthenticationProviderTest extends \PHPUnit_Framework_TestCase +class RememberMeAuthenticationProviderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php index 0a78ee8c77fa..50990b7e465f 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Exception\AccountExpiredException; use Symfony\Component\Security\Core\Exception\BadCredentialsException; use Symfony\Component\Security\Core\Exception\CredentialsExpiredException; @@ -18,7 +19,7 @@ use Symfony\Component\Security\Core\Role\Role; use Symfony\Component\Security\Core\Role\SwitchUserRole; -class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase +class UserAuthenticationProviderTest extends TestCase { public function testSupports() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php index 3bdf38cff6fd..55905844681c 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\RememberMe; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken; use Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider; -class InMemoryTokenProviderTest extends \PHPUnit_Framework_TestCase +class InMemoryTokenProviderTest extends TestCase { public function testCreateNewToken() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/PersistentTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/PersistentTokenTest.php index 903c0309fc54..12c133f52df5 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/PersistentTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/PersistentTokenTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\RememberMe; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken; -class PersistentTokenTest extends \PHPUnit_Framework_TestCase +class PersistentTokenTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php index 896ea37f1e94..57ebf184f2df 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Token; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\AbstractToken; use Symfony\Component\Security\Core\Role\Role; use Symfony\Component\Security\Core\Role\SwitchUserRole; @@ -57,7 +58,8 @@ public function getCredentials() } } -class AbstractTokenTest extends \PHPUnit_Framework_TestCase +/** @noinspection PhpUndefinedClassInspection */ +class AbstractTokenTest extends TestCase { public function testGetUsername() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AnonymousTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AnonymousTokenTest.php index b5cf00683aa5..f1902f03d0d5 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AnonymousTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AnonymousTokenTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Token; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; use Symfony\Component\Security\Core\Role\Role; -class AnonymousTokenTest extends \PHPUnit_Framework_TestCase +class AnonymousTokenTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/PreAuthenticatedTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/PreAuthenticatedTokenTest.php index 77d260899643..5b2b1c07e664 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/PreAuthenticatedTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/PreAuthenticatedTokenTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Token; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken; use Symfony\Component\Security\Core\Role\Role; -class PreAuthenticatedTokenTest extends \PHPUnit_Framework_TestCase +class PreAuthenticatedTokenTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php index 23b1a080f960..a5fcd62c4df5 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Token; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken; use Symfony\Component\Security\Core\Role\Role; -class RememberMeTokenTest extends \PHPUnit_Framework_TestCase +class RememberMeTokenTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/Storage/TokenStorageTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/Storage/TokenStorageTest.php index a3bcc96fdf80..fd30eea3c57c 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/Storage/TokenStorageTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/Storage/TokenStorageTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Token\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; -class TokenStorageTest extends \PHPUnit_Framework_TestCase +class TokenStorageTest extends TestCase { public function testGetSetToken() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/UsernamePasswordTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/UsernamePasswordTokenTest.php index 0297eff939ab..12897ab1d114 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/UsernamePasswordTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/UsernamePasswordTokenTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Token; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Symfony\Component\Security\Core\Role\Role; -class UsernamePasswordTokenTest extends \PHPUnit_Framework_TestCase +class UsernamePasswordTokenTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php index e1fe0e2d7d43..e9790880e0e5 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authorization; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authorization\AccessDecisionManager; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; -class AccessDecisionManagerTest extends \PHPUnit_Framework_TestCase +class AccessDecisionManagerTest extends TestCase { public function testSupportsClass() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php index eed361cbada9..ca28d53c5cc4 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authorization; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; use Symfony\Component\Security\Core\Authorization\AuthorizationChecker; -class AuthorizationCheckerTest extends \PHPUnit_Framework_TestCase +class AuthorizationCheckerTest extends TestCase { private $authenticationManager; private $accessDecisionManager; diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/ExpressionLanguageTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/ExpressionLanguageTest.php index 5b4aca610a84..1565d1c86525 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/ExpressionLanguageTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/ExpressionLanguageTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Core\Tests\Authorization; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authorization\ExpressionLanguage; use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver; use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; @@ -18,7 +19,7 @@ use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Symfony\Component\Security\Core\User\User; -class ExpressionLanguageTest extends \PHPUnit_Framework_TestCase +class ExpressionLanguageTest extends TestCase { /** * @dataProvider provider diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php index 8d673bc0b293..d82d9d893e76 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Authorization\Voter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; -class AbstractVoterTest extends \PHPUnit_Framework_TestCase +class AbstractVoterTest extends TestCase { /** * @var TokenInterface diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AuthenticatedVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AuthenticatedVoterTest.php index a59848c79bb2..e34912ce0575 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AuthenticatedVoterTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AuthenticatedVoterTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Core\Tests\Authorization\Voter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver; use Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; -class AuthenticatedVoterTest extends \PHPUnit_Framework_TestCase +class AuthenticatedVoterTest extends TestCase { public function testSupportsClass() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/ExpressionVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/ExpressionVoterTest.php index 07700396bf35..5f2b89112007 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/ExpressionVoterTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/ExpressionVoterTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Core\Tests\Authorization\Voter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; use Symfony\Component\Security\Core\Role\Role; -class ExpressionVoterTest extends \PHPUnit_Framework_TestCase +class ExpressionVoterTest extends TestCase { public function testSupportsAttribute() { diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php index ce4f4cf4fbcd..0b30a30c8f08 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Core\Tests\Authorization\Voter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authorization\Voter\RoleVoter; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; use Symfony\Component\Security\Core\Role\Role; -class RoleVoterTest extends \PHPUnit_Framework_TestCase +class RoleVoterTest extends TestCase { public function testSupportsClass() { diff --git a/src/Symfony/Component/Security/Core/Tests/Encoder/BCryptPasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/BCryptPasswordEncoderTest.php index 40de8af218c3..10c8da692a6f 100644 --- a/src/Symfony/Component/Security/Core/Tests/Encoder/BCryptPasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/BCryptPasswordEncoderTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Core\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder; /** * @author Elnur Abdurrakhimov */ -class BCryptPasswordEncoderTest extends \PHPUnit_Framework_TestCase +class BCryptPasswordEncoderTest extends TestCase { const PASSWORD = 'password'; const BYTES = '0123456789abcdef'; diff --git a/src/Symfony/Component/Security/Core/Tests/Encoder/BasePasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/BasePasswordEncoderTest.php index 14c488bc109f..0742f421df56 100644 --- a/src/Symfony/Component/Security/Core/Tests/Encoder/BasePasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/BasePasswordEncoderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Core\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Encoder\BasePasswordEncoder; class PasswordEncoder extends BasePasswordEncoder @@ -24,7 +25,7 @@ public function isPasswordValid($encoded, $raw, $salt) } } -class BasePasswordEncoderTest extends \PHPUnit_Framework_TestCase +class BasePasswordEncoderTest extends TestCase { public function testComparePassword() { diff --git a/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php index 191a4d877059..926b1cc58eda 100644 --- a/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Security\Core\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; use Symfony\Component\Security\Core\Encoder\EncoderFactory; use Symfony\Component\Security\Core\Encoder\EncoderAwareInterface; use Symfony\Component\Security\Core\User\User; use Symfony\Component\Security\Core\User\UserInterface; -class EncoderFactoryTest extends \PHPUnit_Framework_TestCase +class EncoderFactoryTest extends TestCase { public function testGetEncoderWithMessageDigestEncoder() { diff --git a/src/Symfony/Component/Security/Core/Tests/Encoder/MessageDigestPasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/MessageDigestPasswordEncoderTest.php index 5189fff01851..c449194f8dda 100644 --- a/src/Symfony/Component/Security/Core/Tests/Encoder/MessageDigestPasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/MessageDigestPasswordEncoderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; -class MessageDigestPasswordEncoderTest extends \PHPUnit_Framework_TestCase +class MessageDigestPasswordEncoderTest extends TestCase { public function testIsPasswordValid() { diff --git a/src/Symfony/Component/Security/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php index 3e9452b1a7f6..e65eef5bba4e 100644 --- a/src/Symfony/Component/Security/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Encoder\Pbkdf2PasswordEncoder; -class Pbkdf2PasswordEncoderTest extends \PHPUnit_Framework_TestCase +class Pbkdf2PasswordEncoderTest extends TestCase { public function testIsPasswordValid() { diff --git a/src/Symfony/Component/Security/Core/Tests/Encoder/PlaintextPasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/PlaintextPasswordEncoderTest.php index c7e0d2ad3840..1196651a8631 100644 --- a/src/Symfony/Component/Security/Core/Tests/Encoder/PlaintextPasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/PlaintextPasswordEncoderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder; -class PlaintextPasswordEncoderTest extends \PHPUnit_Framework_TestCase +class PlaintextPasswordEncoderTest extends TestCase { public function testIsPasswordValid() { diff --git a/src/Symfony/Component/Security/Core/Tests/Encoder/UserPasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/UserPasswordEncoderTest.php index e8adb9b33dce..3328837ef1f7 100644 --- a/src/Symfony/Component/Security/Core/Tests/Encoder/UserPasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/UserPasswordEncoderTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoder; -class UserPasswordEncoderTest extends \PHPUnit_Framework_TestCase +class UserPasswordEncoderTest extends TestCase { public function testEncodePassword() { diff --git a/src/Symfony/Component/Security/Core/Tests/Exception/UsernameNotFoundExceptionTest.php b/src/Symfony/Component/Security/Core/Tests/Exception/UsernameNotFoundExceptionTest.php index 98ea374c8184..b7e5c556d75a 100644 --- a/src/Symfony/Component/Security/Core/Tests/Exception/UsernameNotFoundExceptionTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Exception/UsernameNotFoundExceptionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Exception; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; -class UsernameNotFoundExceptionTest extends \PHPUnit_Framework_TestCase +class UsernameNotFoundExceptionTest extends TestCase { public function testGetMessageData() { diff --git a/src/Symfony/Component/Security/Core/Tests/LegacySecurityContextInterfaceTest.php b/src/Symfony/Component/Security/Core/Tests/LegacySecurityContextInterfaceTest.php index a45ecf956dfa..04b2eca8d666 100644 --- a/src/Symfony/Component/Security/Core/Tests/LegacySecurityContextInterfaceTest.php +++ b/src/Symfony/Component/Security/Core/Tests/LegacySecurityContextInterfaceTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Security\Core\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\SecurityContextInterface; use Symfony\Component\Security\Core\Security; /** * @group legacy */ -class LegacySecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase +class LegacySecurityContextInterfaceTest extends TestCase { /** * Test if the BC Layer is working as intended. diff --git a/src/Symfony/Component/Security/Core/Tests/LegacySecurityContextTest.php b/src/Symfony/Component/Security/Core/Tests/LegacySecurityContextTest.php index f86fcad1c450..3661c7be9560 100644 --- a/src/Symfony/Component/Security/Core/Tests/LegacySecurityContextTest.php +++ b/src/Symfony/Component/Security/Core/Tests/LegacySecurityContextTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Core\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\SecurityContext; /** * @group legacy */ -class LegacySecurityContextTest extends \PHPUnit_Framework_TestCase +class LegacySecurityContextTest extends TestCase { private $tokenStorage; private $authorizationChecker; diff --git a/src/Symfony/Component/Security/Core/Tests/Resources/TranslationFilesTest.php b/src/Symfony/Component/Security/Core/Tests/Resources/TranslationFilesTest.php index dc38e4a776f0..74382135e2c8 100644 --- a/src/Symfony/Component/Security/Core/Tests/Resources/TranslationFilesTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Resources/TranslationFilesTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Security\Core\Tests\Resources; -class TranslationFilesTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class TranslationFilesTest extends TestCase { /** * @dataProvider provideTranslationFiles diff --git a/src/Symfony/Component/Security/Core/Tests/Role/RoleHierarchyTest.php b/src/Symfony/Component/Security/Core/Tests/Role/RoleHierarchyTest.php index df1b6a3300ba..4d190cfc9482 100644 --- a/src/Symfony/Component/Security/Core/Tests/Role/RoleHierarchyTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Role/RoleHierarchyTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Role; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Role\RoleHierarchy; use Symfony\Component\Security\Core\Role\Role; -class RoleHierarchyTest extends \PHPUnit_Framework_TestCase +class RoleHierarchyTest extends TestCase { public function testGetReachableRoles() { diff --git a/src/Symfony/Component/Security/Core/Tests/Role/RoleTest.php b/src/Symfony/Component/Security/Core/Tests/Role/RoleTest.php index 02be07b2e072..edf779413b63 100644 --- a/src/Symfony/Component/Security/Core/Tests/Role/RoleTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Role/RoleTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Role; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Role\Role; -class RoleTest extends \PHPUnit_Framework_TestCase +class RoleTest extends TestCase { public function testGetRole() { diff --git a/src/Symfony/Component/Security/Core/Tests/Role/SwitchUserRoleTest.php b/src/Symfony/Component/Security/Core/Tests/Role/SwitchUserRoleTest.php index fff5ff21f50c..e40471733ce1 100644 --- a/src/Symfony/Component/Security/Core/Tests/Role/SwitchUserRoleTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Role/SwitchUserRoleTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\Role; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Role\SwitchUserRole; -class SwitchUserRoleTest extends \PHPUnit_Framework_TestCase +class SwitchUserRoleTest extends TestCase { public function testGetSource() { diff --git a/src/Symfony/Component/Security/Core/Tests/User/ChainUserProviderTest.php b/src/Symfony/Component/Security/Core/Tests/User/ChainUserProviderTest.php index dae58ae9add3..2f53cf924ca0 100644 --- a/src/Symfony/Component/Security/Core/Tests/User/ChainUserProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/ChainUserProviderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Core\Tests\User; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Symfony\Component\Security\Core\User\ChainUserProvider; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; -class ChainUserProviderTest extends \PHPUnit_Framework_TestCase +class ChainUserProviderTest extends TestCase { public function testLoadUserByUsername() { diff --git a/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserProviderTest.php b/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserProviderTest.php index 0a1815f639ab..6647a76a1286 100644 --- a/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserProviderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\User; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\User\InMemoryUserProvider; use Symfony\Component\Security\Core\User\User; -class InMemoryUserProviderTest extends \PHPUnit_Framework_TestCase +class InMemoryUserProviderTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Security/Core/Tests/User/UserCheckerTest.php b/src/Symfony/Component/Security/Core/Tests/User/UserCheckerTest.php index 4b6e52717e71..8ec34843eaae 100644 --- a/src/Symfony/Component/Security/Core/Tests/User/UserCheckerTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/UserCheckerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\User; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\User\UserChecker; -class UserCheckerTest extends \PHPUnit_Framework_TestCase +class UserCheckerTest extends TestCase { public function testCheckPostAuthNotAdvancedUserInterface() { diff --git a/src/Symfony/Component/Security/Core/Tests/User/UserTest.php b/src/Symfony/Component/Security/Core/Tests/User/UserTest.php index b589b4af4513..fa9f33107d90 100644 --- a/src/Symfony/Component/Security/Core/Tests/User/UserTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/UserTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Core\Tests\User; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\User\User; -class UserTest extends \PHPUnit_Framework_TestCase +class UserTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/Security/Core/Tests/Util/ClassUtilsTest.php b/src/Symfony/Component/Security/Core/Tests/Util/ClassUtilsTest.php index e8f0143eb7b2..bd499b50e409 100644 --- a/src/Symfony/Component/Security/Core/Tests/Util/ClassUtilsTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Util/ClassUtilsTest.php @@ -11,9 +11,11 @@ namespace Symfony\Component\Security\Core\Tests\Util { + + use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Util\ClassUtils; - class ClassUtilsTest extends \PHPUnit_Framework_TestCase + class ClassUtilsTest extends TestCase { public static function dataGetClass() { diff --git a/src/Symfony/Component/Security/Core/Tests/Util/StringUtilsTest.php b/src/Symfony/Component/Security/Core/Tests/Util/StringUtilsTest.php index faeaf259f72d..ebb694a3819d 100644 --- a/src/Symfony/Component/Security/Core/Tests/Util/StringUtilsTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Util/StringUtilsTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Core\Tests\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Util\StringUtils; /** * Data from PHP.net's hash_equals tests. */ -class StringUtilsTest extends \PHPUnit_Framework_TestCase +class StringUtilsTest extends TestCase { public function dataProviderTrue() { diff --git a/src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php b/src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php index 16baec13659f..9ce35f4dea12 100644 --- a/src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php +++ b/src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Security\Csrf\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Csrf\CsrfToken; use Symfony\Component\Security\Csrf\CsrfTokenManager; /** * @author Bernhard Schussek */ -class CsrfTokenManagerTest extends \PHPUnit_Framework_TestCase +class CsrfTokenManagerTest extends TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject diff --git a/src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php b/src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php index afbaa7c9f864..287f9c20f695 100644 --- a/src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php +++ b/src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Csrf\Tests\TokenGenerator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Csrf\TokenGenerator\UriSafeTokenGenerator; /** * @author Bernhard Schussek */ -class UriSafeTokenGeneratorTest extends \PHPUnit_Framework_TestCase +class UriSafeTokenGeneratorTest extends TestCase { const ENTROPY = 1000; diff --git a/src/Symfony/Component/Security/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php b/src/Symfony/Component/Security/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php index 7d3a537902f3..ea20cff5291f 100644 --- a/src/Symfony/Component/Security/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php +++ b/src/Symfony/Component/Security/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Csrf\Tests\TokenStorage; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Csrf\TokenStorage\NativeSessionTokenStorage; /** @@ -19,7 +20,7 @@ * @runTestsInSeparateProcesses * @preserveGlobalState disabled */ -class NativeSessionTokenStorageTest extends \PHPUnit_Framework_TestCase +class NativeSessionTokenStorageTest extends TestCase { const SESSION_NAMESPACE = 'foobar'; diff --git a/src/Symfony/Component/Security/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php b/src/Symfony/Component/Security/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php index 0eac0a8aa060..c629ca15255f 100644 --- a/src/Symfony/Component/Security/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php +++ b/src/Symfony/Component/Security/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Csrf\Tests\TokenStorage; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage; /** * @author Bernhard Schussek */ -class SessionTokenStorageTest extends \PHPUnit_Framework_TestCase +class SessionTokenStorageTest extends TestCase { const SESSION_NAMESPACE = 'foobar'; diff --git a/src/Symfony/Component/Security/Http/Tests/AccessMapTest.php b/src/Symfony/Component/Security/Http/Tests/AccessMapTest.php index b71ad8561cfd..822043d63c8c 100644 --- a/src/Symfony/Component/Security/Http/Tests/AccessMapTest.php +++ b/src/Symfony/Component/Security/Http/Tests/AccessMapTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Http\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\AccessMap; -class AccessMapTest extends \PHPUnit_Framework_TestCase +class AccessMapTest extends TestCase { public function testReturnsFirstMatchedPattern() { diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php index da30aa9a683c..87fcdc78c76a 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Http\Tests\Authentication; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler; use Symfony\Component\Security\Core\Security; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\HttpKernelInterface; -class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCase +class DefaultAuthenticationFailureHandlerTest extends TestCase { private $httpKernel = null; diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php index 7166c53ffd63..2c133014cc13 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\Authentication; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler; -class DefaultAuthenticationSuccessHandlerTest extends \PHPUnit_Framework_TestCase +class DefaultAuthenticationSuccessHandlerTest extends TestCase { private $httpUtils = null; diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php index 330b21a48823..4f73e5f44cdf 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\Authentication\SimpleAuthenticatorInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; @@ -18,7 +19,7 @@ use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface; use Symfony\Component\Security\Http\Authentication\SimpleAuthenticationHandler; -class SimpleAuthenticationHandlerTest extends \PHPUnit_Framework_TestCase +class SimpleAuthenticationHandlerTest extends TestCase { private $successHandler; diff --git a/src/Symfony/Component/Security/Http/Tests/EntryPoint/BasicAuthenticationEntryPointTest.php b/src/Symfony/Component/Security/Http/Tests/EntryPoint/BasicAuthenticationEntryPointTest.php index 359c6de532ad..a089e90cc558 100644 --- a/src/Symfony/Component/Security/Http/Tests/EntryPoint/BasicAuthenticationEntryPointTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EntryPoint/BasicAuthenticationEntryPointTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\EntryPoint; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\EntryPoint\BasicAuthenticationEntryPoint; use Symfony\Component\Security\Core\Exception\AuthenticationException; -class BasicAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase +class BasicAuthenticationEntryPointTest extends TestCase { public function testStart() { diff --git a/src/Symfony/Component/Security/Http/Tests/EntryPoint/DigestAuthenticationEntryPointTest.php b/src/Symfony/Component/Security/Http/Tests/EntryPoint/DigestAuthenticationEntryPointTest.php index a3e035268a9d..0753ff3e17e6 100644 --- a/src/Symfony/Component/Security/Http/Tests/EntryPoint/DigestAuthenticationEntryPointTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EntryPoint/DigestAuthenticationEntryPointTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Http\Tests\EntryPoint; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\EntryPoint\DigestAuthenticationEntryPoint; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Exception\NonceExpiredException; -class DigestAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase +class DigestAuthenticationEntryPointTest extends TestCase { public function testStart() { diff --git a/src/Symfony/Component/Security/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php b/src/Symfony/Component/Security/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php index 0247e5fc4b20..75bbd978f24c 100644 --- a/src/Symfony/Component/Security/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Http\Tests\EntryPoint; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint; use Symfony\Component\HttpKernel\HttpKernelInterface; -class FormAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase +class FormAuthenticationEntryPointTest extends TestCase { public function testStart() { diff --git a/src/Symfony/Component/Security/Http/Tests/EntryPoint/RetryAuthenticationEntryPointTest.php b/src/Symfony/Component/Security/Http/Tests/EntryPoint/RetryAuthenticationEntryPointTest.php index ff5fbc297532..f2fa5bcf191a 100644 --- a/src/Symfony/Component/Security/Http/Tests/EntryPoint/RetryAuthenticationEntryPointTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EntryPoint/RetryAuthenticationEntryPointTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\EntryPoint; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint; use Symfony\Component\HttpFoundation\Request; -class RetryAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase +class RetryAuthenticationEntryPointTest extends TestCase { /** * @dataProvider dataForStart diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/AbstractPreAuthenticatedListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/AbstractPreAuthenticatedListenerTest.php index fa8a583e0c1b..dd7f75e67e22 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/AbstractPreAuthenticatedListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/AbstractPreAuthenticatedListenerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Symfony\Component\Security\Core\Exception\AuthenticationException; -class AbstractPreAuthenticatedListenerTest extends \PHPUnit_Framework_TestCase +class AbstractPreAuthenticatedListenerTest extends TestCase { public function testHandleWithValidValues() { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php index 7f8eceaadde9..c49527bc14d6 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\Firewall\AccessListener; -class AccessListenerTest extends \PHPUnit_Framework_TestCase +class AccessListenerTest extends TestCase { /** * @expectedException \Symfony\Component\Security\Core\Exception\AccessDeniedException diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php index c5761ac1e66c..6f9dcd4e47dc 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; use Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener; -class AnonymousAuthenticationListenerTest extends \PHPUnit_Framework_TestCase +class AnonymousAuthenticationListenerTest extends TestCase { public function testHandleWithTokenStorageHavingAToken() { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/BasicAuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/BasicAuthenticationListenerTest.php index 62c23f619cb5..e71715f705a8 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/BasicAuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/BasicAuthenticationListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; @@ -18,7 +19,7 @@ use Symfony\Component\Security\Http\Firewall\BasicAuthenticationListener; use Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager; -class BasicAuthenticationListenerTest extends \PHPUnit_Framework_TestCase +class BasicAuthenticationListenerTest extends TestCase { public function testHandleWithValidUsernameAndPasswordServerParameters() { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php index ae6c39f3b95b..53ff1dcf0e8e 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\Firewall\ChannelListener; use Symfony\Component\HttpFoundation\Response; -class ChannelListenerTest extends \PHPUnit_Framework_TestCase +class ChannelListenerTest extends TestCase { public function testHandleWithNotSecuredRequestAndHttpChannel() { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php index 5453b317de43..15bc8bda692b 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Session\Session; @@ -23,7 +24,7 @@ use Symfony\Component\Security\Http\Firewall\ContextListener; use Symfony\Component\EventDispatcher\EventDispatcher; -class ContextListenerTest extends \PHPUnit_Framework_TestCase +class ContextListenerTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/DigestDataTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/DigestDataTest.php index a7c8d49b81b5..2238a7418885 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/DigestDataTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/DigestDataTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\Firewall\DigestData; -class DigestDataTest extends \PHPUnit_Framework_TestCase +class DigestDataTest extends TestCase { public function testGetResponse() { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php index b372447d8b9b..271988c13ace 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; @@ -24,7 +25,7 @@ use Symfony\Component\Security\Http\Firewall\ExceptionListener; use Symfony\Component\Security\Http\HttpUtils; -class ExceptionListenerTest extends \PHPUnit_Framework_TestCase +class ExceptionListenerTest extends TestCase { /** * @dataProvider getAuthenticationExceptionProvider diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php index 0cc470606b8a..2a7660ac6502 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Firewall\LogoutListener; -class LogoutListenerTest extends \PHPUnit_Framework_TestCase +class LogoutListenerTest extends TestCase { public function testHandleUnmatchedPath() { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php index 141b4cc2adf0..2249dcbd2059 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Http\Firewall\RememberMeListener; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Http\SecurityEvents; -class RememberMeListenerTest extends \PHPUnit_Framework_TestCase +class RememberMeListenerTest extends TestCase { public function testOnCoreSecurityDoesNotTryToPopulateNonEmptyTokenStorage() { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/RemoteUserAuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/RemoteUserAuthenticationListenerTest.php index 985152c770af..c02812f6ce5c 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/RemoteUserAuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/RemoteUserAuthenticationListenerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Http\Firewall\RemoteUserAuthenticationListener; -class RemoteUserAuthenticationListenerTest extends \PHPUnit_Framework_TestCase +class RemoteUserAuthenticationListenerTest extends TestCase { public function testGetPreAuthenticatedData() { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/SimplePreAuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/SimplePreAuthenticationListenerTest.php index 6061b12a8cff..4bcc1ee57aa9 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/SimplePreAuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/SimplePreAuthenticationListenerTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; use Symfony\Component\Security\Http\Firewall\SimplePreAuthenticationListener; use Symfony\Component\Security\Http\SecurityEvents; -class SimplePreAuthenticationListenerTest extends \PHPUnit_Framework_TestCase +class SimplePreAuthenticationListenerTest extends TestCase { private $authenticationManager; private $dispatcher; diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php index b80f8c608fef..2c05ef75cab2 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\Event\SwitchUserEvent; use Symfony\Component\Security\Http\Firewall\SwitchUserListener; use Symfony\Component\Security\Http\SecurityEvents; -class SwitchUserListenerTest extends \PHPUnit_Framework_TestCase +class SwitchUserListenerTest extends TestCase { private $tokenStorage; diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/X509AuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/X509AuthenticationListenerTest.php index 3e58e69e0855..07206202ab2c 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/X509AuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/X509AuthenticationListenerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Http\Firewall\X509AuthenticationListener; -class X509AuthenticationListenerTest extends \PHPUnit_Framework_TestCase +class X509AuthenticationListenerTest extends TestCase { /** * @dataProvider dataProviderGetPreAuthenticatedData diff --git a/src/Symfony/Component/Security/Http/Tests/FirewallMapTest.php b/src/Symfony/Component/Security/Http/Tests/FirewallMapTest.php index 016c72df45ae..2a62f21d33ad 100644 --- a/src/Symfony/Component/Security/Http/Tests/FirewallMapTest.php +++ b/src/Symfony/Component/Security/Http/Tests/FirewallMapTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\FirewallMap; use Symfony\Component\HttpFoundation\Request; -class FirewallMapTest extends \PHPUnit_Framework_TestCase +class FirewallMapTest extends TestCase { public function testGetListeners() { diff --git a/src/Symfony/Component/Security/Http/Tests/FirewallTest.php b/src/Symfony/Component/Security/Http/Tests/FirewallTest.php index 20da3ae31acd..bd475bb4e5b1 100644 --- a/src/Symfony/Component/Security/Http/Tests/FirewallTest.php +++ b/src/Symfony/Component/Security/Http/Tests/FirewallTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Http\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\Security\Http\Firewall; -class FirewallTest extends \PHPUnit_Framework_TestCase +class FirewallTest extends TestCase { public function testOnKernelRequestRegistersExceptionListener() { diff --git a/src/Symfony/Component/Security/Http/Tests/HttpUtilsTest.php b/src/Symfony/Component/Security/Http/Tests/HttpUtilsTest.php index bb432a0c52dc..eb0379f97b4f 100644 --- a/src/Symfony/Component/Security/Http/Tests/HttpUtilsTest.php +++ b/src/Symfony/Component/Security/Http/Tests/HttpUtilsTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; @@ -18,7 +19,7 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Security\Http\HttpUtils; -class HttpUtilsTest extends \PHPUnit_Framework_TestCase +class HttpUtilsTest extends TestCase { public function testCreateRedirectResponseWithPath() { diff --git a/src/Symfony/Component/Security/Http/Tests/Logout/CookieClearingLogoutHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Logout/CookieClearingLogoutHandlerTest.php index 300f28dc6a65..0cc241b74a0a 100644 --- a/src/Symfony/Component/Security/Http/Tests/Logout/CookieClearingLogoutHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Logout/CookieClearingLogoutHandlerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Http\Tests\Logout; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\ResponseHeaderBag; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Http\Logout\CookieClearingLogoutHandler; -class CookieClearingLogoutHandlerTest extends \PHPUnit_Framework_TestCase +class CookieClearingLogoutHandlerTest extends TestCase { public function testLogout() { diff --git a/src/Symfony/Component/Security/Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php index 7f20f67b2b15..9936fc933957 100644 --- a/src/Symfony/Component/Security/Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\Logout; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler; -class DefaultLogoutSuccessHandlerTest extends \PHPUnit_Framework_TestCase +class DefaultLogoutSuccessHandlerTest extends TestCase { public function testLogout() { diff --git a/src/Symfony/Component/Security/Http/Tests/Logout/SessionLogoutHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Logout/SessionLogoutHandlerTest.php index 6a435d74baca..e32d46e3e577 100644 --- a/src/Symfony/Component/Security/Http/Tests/Logout/SessionLogoutHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Logout/SessionLogoutHandlerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Security\Http\Tests\Logout; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Logout\SessionLogoutHandler; -class SessionLogoutHandlerTest extends \PHPUnit_Framework_TestCase +class SessionLogoutHandlerTest extends TestCase { public function testLogout() { diff --git a/src/Symfony/Component/Security/Http/Tests/RememberMe/AbstractRememberMeServicesTest.php b/src/Symfony/Component/Security/Http/Tests/RememberMe/AbstractRememberMeServicesTest.php index 259214c6df75..386927e3d50b 100644 --- a/src/Symfony/Component/Security/Http/Tests/RememberMe/AbstractRememberMeServicesTest.php +++ b/src/Symfony/Component/Security/Http/Tests/RememberMe/AbstractRememberMeServicesTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Http\Tests\RememberMe; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices; -class AbstractRememberMeServicesTest extends \PHPUnit_Framework_TestCase +class AbstractRememberMeServicesTest extends TestCase { public function testGetRememberMeParameter() { diff --git a/src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php b/src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php index d7b55da8b23a..a042a6944993 100644 --- a/src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php +++ b/src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests\RememberMe; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken; @@ -22,7 +23,7 @@ use Symfony\Component\Security\Core\Exception\CookieTheftException; use Symfony\Component\Security\Core\Util\SecureRandom; -class PersistentTokenBasedRememberMeServicesTest extends \PHPUnit_Framework_TestCase +class PersistentTokenBasedRememberMeServicesTest extends TestCase { public static function setUpBeforeClass() { diff --git a/src/Symfony/Component/Security/Http/Tests/RememberMe/ResponseListenerTest.php b/src/Symfony/Component/Security/Http/Tests/RememberMe/ResponseListenerTest.php index 0db86e743399..42649ef5f657 100644 --- a/src/Symfony/Component/Security/Http/Tests/RememberMe/ResponseListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/RememberMe/ResponseListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests\RememberMe; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\Security\Http\RememberMe\ResponseListener; use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface; @@ -19,7 +20,7 @@ use Symfony\Component\HttpFoundation\Cookie; use Symfony\Component\HttpKernel\KernelEvents; -class ResponseListenerTest extends \PHPUnit_Framework_TestCase +class ResponseListenerTest extends TestCase { public function testRememberMeCookieIsSentWithResponse() { diff --git a/src/Symfony/Component/Security/Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php b/src/Symfony/Component/Security/Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php index 558825797dac..c06859df63a3 100644 --- a/src/Symfony/Component/Security/Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php +++ b/src/Symfony/Component/Security/Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests\RememberMe; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\HttpFoundation\Request; @@ -18,7 +19,7 @@ use Symfony\Component\HttpFoundation\ResponseHeaderBag; use Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices; -class TokenBasedRememberMeServicesTest extends \PHPUnit_Framework_TestCase +class TokenBasedRememberMeServicesTest extends TestCase { public function testAutoLoginReturnsNullWhenNoCookie() { diff --git a/src/Symfony/Component/Security/Http/Tests/Session/SessionAuthenticationStrategyTest.php b/src/Symfony/Component/Security/Http/Tests/Session/SessionAuthenticationStrategyTest.php index c23821a4ce5f..601c3375887c 100644 --- a/src/Symfony/Component/Security/Http/Tests/Session/SessionAuthenticationStrategyTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Session/SessionAuthenticationStrategyTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Http\Tests\Session; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy; -class SessionAuthenticationStrategyTest extends \PHPUnit_Framework_TestCase +class SessionAuthenticationStrategyTest extends TestCase { public function testSessionIsNotChanged() { diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/UsernamePasswordFormAuthenticationListenerTest.php b/src/Symfony/Component/Security/Tests/Http/Firewall/UsernamePasswordFormAuthenticationListenerTest.php index 3e65b09b7db4..62b4c48f9276 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/UsernamePasswordFormAuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Tests/Http/Firewall/UsernamePasswordFormAuthenticationListenerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Security\Tests\Http\Firewall; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener; use Symfony\Component\Security\Core\SecurityContextInterface; -class UsernamePasswordFormAuthenticationListenerTest extends \PHPUnit_Framework_TestCase +class UsernamePasswordFormAuthenticationListenerTest extends TestCase { /** * @dataProvider getUsernameForLength diff --git a/src/Symfony/Component/Security/Tests/Resources/TranslationFilesTest.php b/src/Symfony/Component/Security/Tests/Resources/TranslationFilesTest.php index 341ec87ea410..40a23d82ab6e 100644 --- a/src/Symfony/Component/Security/Tests/Resources/TranslationFilesTest.php +++ b/src/Symfony/Component/Security/Tests/Resources/TranslationFilesTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Security\Tests\Resources; -class TranslationFilesTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class TranslationFilesTest extends TestCase { /** * @dataProvider provideTranslationFiles diff --git a/src/Symfony/Component/Security/Tests/TranslationSyncStatusTest.php b/src/Symfony/Component/Security/Tests/TranslationSyncStatusTest.php index 4b72d41d5a5e..198d5b8eb624 100644 --- a/src/Symfony/Component/Security/Tests/TranslationSyncStatusTest.php +++ b/src/Symfony/Component/Security/Tests/TranslationSyncStatusTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Security\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Finder; -class TranslationSyncStatusTest extends \PHPUnit_Framework_TestCase +class TranslationSyncStatusTest extends TestCase { /** * @dataProvider getTranslationDirectoriesData diff --git a/src/Symfony/Component/Serializer/Tests/Annotation/GroupsTest.php b/src/Symfony/Component/Serializer/Tests/Annotation/GroupsTest.php index 72b877729dc8..348ad1461914 100644 --- a/src/Symfony/Component/Serializer/Tests/Annotation/GroupsTest.php +++ b/src/Symfony/Component/Serializer/Tests/Annotation/GroupsTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Serializer\Tests\Annotation; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Annotation\Groups; /** * @author Kévin Dunglas */ -class GroupsTest extends \PHPUnit_Framework_TestCase +class GroupsTest extends TestCase { /** * @expectedException \Symfony\Component\Serializer\Exception\InvalidArgumentException diff --git a/src/Symfony/Component/Serializer/Tests/Encoder/JsonEncoderTest.php b/src/Symfony/Component/Serializer/Tests/Encoder/JsonEncoderTest.php index c064503430e8..ad8d57065f72 100644 --- a/src/Symfony/Component/Serializer/Tests/Encoder/JsonEncoderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Encoder/JsonEncoderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Serializer\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Encoder\JsonEncoder; use Symfony\Component\Serializer\Serializer; use Symfony\Component\Serializer\Normalizer\CustomNormalizer; -class JsonEncoderTest extends \PHPUnit_Framework_TestCase +class JsonEncoderTest extends TestCase { private $encoder; private $serializer; diff --git a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php index 256ed2fc90f9..1c9ed79e35d6 100644 --- a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Serializer\Tests\Encoder; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Tests\Fixtures\Dummy; use Symfony\Component\Serializer\Tests\Fixtures\NormalizableTraversableDummy; use Symfony\Component\Serializer\Tests\Fixtures\ScalarDummy; @@ -19,7 +20,7 @@ use Symfony\Component\Serializer\Exception\UnexpectedValueException; use Symfony\Component\Serializer\Normalizer\CustomNormalizer; -class XmlEncoderTest extends \PHPUnit_Framework_TestCase +class XmlEncoderTest extends TestCase { private $encoder; diff --git a/src/Symfony/Component/Serializer/Tests/Mapping/AttributeMetadataTest.php b/src/Symfony/Component/Serializer/Tests/Mapping/AttributeMetadataTest.php index 4a32831cb698..f08062369c70 100644 --- a/src/Symfony/Component/Serializer/Tests/Mapping/AttributeMetadataTest.php +++ b/src/Symfony/Component/Serializer/Tests/Mapping/AttributeMetadataTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Serializer\Tests\Mapping; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\AttributeMetadata; /** * @author Kévin Dunglas */ -class AttributeMetadataTest extends \PHPUnit_Framework_TestCase +class AttributeMetadataTest extends TestCase { public function testInterface() { diff --git a/src/Symfony/Component/Serializer/Tests/Mapping/ClassMetadataTest.php b/src/Symfony/Component/Serializer/Tests/Mapping/ClassMetadataTest.php index 9ce3d020bc1c..f2db1c51f6fc 100644 --- a/src/Symfony/Component/Serializer/Tests/Mapping/ClassMetadataTest.php +++ b/src/Symfony/Component/Serializer/Tests/Mapping/ClassMetadataTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Serializer\Tests\Mapping; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\ClassMetadata; /** * @author Kévin Dunglas */ -class ClassMetadataTest extends \PHPUnit_Framework_TestCase +class ClassMetadataTest extends TestCase { public function testInterface() { diff --git a/src/Symfony/Component/Serializer/Tests/Mapping/Factory/ClassMetadataFactoryTest.php b/src/Symfony/Component/Serializer/Tests/Mapping/Factory/ClassMetadataFactoryTest.php index 331aa3a25e1f..a95b7b177450 100644 --- a/src/Symfony/Component/Serializer/Tests/Mapping/Factory/ClassMetadataFactoryTest.php +++ b/src/Symfony/Component/Serializer/Tests/Mapping/Factory/ClassMetadataFactoryTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Serializer\Tests\Mapping\Factory; use Doctrine\Common\Annotations\AnnotationReader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory; use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader; use Symfony\Component\Serializer\Mapping\Loader\LoaderChain; @@ -20,7 +21,7 @@ /** * @author Kévin Dunglas */ -class ClassMetadataFactoryTest extends \PHPUnit_Framework_TestCase +class ClassMetadataFactoryTest extends TestCase { public function testInterface() { diff --git a/src/Symfony/Component/Serializer/Tests/Mapping/Loader/AnnotationLoaderTest.php b/src/Symfony/Component/Serializer/Tests/Mapping/Loader/AnnotationLoaderTest.php index 484d062f2237..d732ee721708 100644 --- a/src/Symfony/Component/Serializer/Tests/Mapping/Loader/AnnotationLoaderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Mapping/Loader/AnnotationLoaderTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Serializer\Tests\Mapping\Loader; use Doctrine\Common\Annotations\AnnotationReader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\ClassMetadata; use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader; use Symfony\Component\Serializer\Tests\Mapping\TestClassMetadataFactory; @@ -19,7 +20,7 @@ /** * @author Kévin Dunglas */ -class AnnotationLoaderTest extends \PHPUnit_Framework_TestCase +class AnnotationLoaderTest extends TestCase { /** * @var AnnotationLoader diff --git a/src/Symfony/Component/Serializer/Tests/Mapping/Loader/XmlFileLoaderTest.php b/src/Symfony/Component/Serializer/Tests/Mapping/Loader/XmlFileLoaderTest.php index 6b468ff18189..a6cea9b980b0 100644 --- a/src/Symfony/Component/Serializer/Tests/Mapping/Loader/XmlFileLoaderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Mapping/Loader/XmlFileLoaderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Serializer\Tests\Mapping\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader; use Symfony\Component\Serializer\Mapping\ClassMetadata; use Symfony\Component\Serializer\Tests\Mapping\TestClassMetadataFactory; @@ -18,7 +19,7 @@ /** * @author Kévin Dunglas */ -class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase +class XmlFileLoaderTest extends TestCase { /** * @var XmlFileLoader diff --git a/src/Symfony/Component/Serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php b/src/Symfony/Component/Serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php index 72d146f9f522..caf7f4176669 100644 --- a/src/Symfony/Component/Serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Serializer\Tests\Mapping\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader; use Symfony\Component\Serializer\Mapping\ClassMetadata; use Symfony\Component\Serializer\Tests\Mapping\TestClassMetadataFactory; @@ -18,7 +19,7 @@ /** * @author Kévin Dunglas */ -class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase +class YamlFileLoaderTest extends TestCase { /** * @var YamlFileLoader diff --git a/src/Symfony/Component/Serializer/Tests/NameConverter/CamelCaseToSnakeCaseNameConverterTest.php b/src/Symfony/Component/Serializer/Tests/NameConverter/CamelCaseToSnakeCaseNameConverterTest.php index 2d7131f2371d..b0dec5183976 100644 --- a/src/Symfony/Component/Serializer/Tests/NameConverter/CamelCaseToSnakeCaseNameConverterTest.php +++ b/src/Symfony/Component/Serializer/Tests/NameConverter/CamelCaseToSnakeCaseNameConverterTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Serializer\Tests\NameConverter; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter; /** * @author Kévin Dunglas */ -class CamelCaseToSnakeCaseNameConverterTest extends \PHPUnit_Framework_TestCase +class CamelCaseToSnakeCaseNameConverterTest extends TestCase { public function testInterface() { diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/AbstractNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/AbstractNormalizerTest.php index 6f550369f663..bad7d3432176 100644 --- a/src/Symfony/Component/Serializer/Tests/Normalizer/AbstractNormalizerTest.php +++ b/src/Symfony/Component/Serializer/Tests/Normalizer/AbstractNormalizerTest.php @@ -2,6 +2,7 @@ namespace Symfony\Component\Serializer\Tests\Normalizer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\AttributeMetadata; use Symfony\Component\Serializer\Mapping\ClassMetadata; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface; @@ -15,7 +16,7 @@ * * @author Konstantin S. M. Möllers */ -class AbstractNormalizerTest extends \PHPUnit_Framework_TestCase +class AbstractNormalizerTest extends TestCase { /** * @var AbstractNormalizerDummy diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/CustomNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/CustomNormalizerTest.php index 86ae0031203b..10ebc2f9f2c7 100644 --- a/src/Symfony/Component/Serializer/Tests/Normalizer/CustomNormalizerTest.php +++ b/src/Symfony/Component/Serializer/Tests/Normalizer/CustomNormalizerTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Serializer\Tests\Normalizer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Tests\Fixtures\ScalarDummy; use Symfony\Component\Serializer\Normalizer\CustomNormalizer; use Symfony\Component\Serializer\Serializer; -class CustomNormalizerTest extends \PHPUnit_Framework_TestCase +class CustomNormalizerTest extends TestCase { /** * @var CustomNormalizer diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php index f449bf430ee9..52b46b8f8f22 100644 --- a/src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php +++ b/src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Serializer\Tests\Normalizer; use Doctrine\Common\Annotations\AnnotationReader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter; use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer; use Symfony\Component\Serializer\Serializer; @@ -23,7 +24,7 @@ use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory; use Symfony\Component\Serializer\Tests\Fixtures\GroupDummy; -class GetSetMethodNormalizerTest extends \PHPUnit_Framework_TestCase +class GetSetMethodNormalizerTest extends TestCase { /** * @var GetSetMethodNormalizer diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/ObjectNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/ObjectNormalizerTest.php index 99141b52cdd4..88d051c32797 100644 --- a/src/Symfony/Component/Serializer/Tests/Normalizer/ObjectNormalizerTest.php +++ b/src/Symfony/Component/Serializer/Tests/Normalizer/ObjectNormalizerTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Serializer\Tests\Normalizer; use Doctrine\Common\Annotations\AnnotationReader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter; use Symfony\Component\Serializer\Normalizer\ObjectNormalizer; use Symfony\Component\Serializer\Serializer; @@ -26,7 +27,7 @@ /** * @author Kévin Dunglas */ -class ObjectNormalizerTest extends \PHPUnit_Framework_TestCase +class ObjectNormalizerTest extends TestCase { /** * @var ObjectNormalizerTest diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php index a0402c5a348e..d39c3dd196d3 100644 --- a/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php +++ b/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Serializer\Tests\Normalizer; use Doctrine\Common\Annotations\AnnotationReader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory; use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader; use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter; @@ -22,7 +23,7 @@ use Symfony\Component\Serializer\Tests\Fixtures\PropertyCircularReferenceDummy; use Symfony\Component\Serializer\Tests\Fixtures\PropertySiblingHolder; -class PropertyNormalizerTest extends \PHPUnit_Framework_TestCase +class PropertyNormalizerTest extends TestCase { /** * @var PropertyNormalizer diff --git a/src/Symfony/Component/Serializer/Tests/SerializerTest.php b/src/Symfony/Component/Serializer/Tests/SerializerTest.php index 05df5bc322f4..2f075c194fa4 100644 --- a/src/Symfony/Component/Serializer/Tests/SerializerTest.php +++ b/src/Symfony/Component/Serializer/Tests/SerializerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Serializer\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Serializer; use Symfony\Component\Serializer\Encoder\JsonEncoder; use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer; @@ -20,7 +21,7 @@ use Symfony\Component\Serializer\Tests\Normalizer\TestNormalizer; use Symfony\Component\Serializer\Tests\Normalizer\TestDenormalizer; -class SerializerTest extends \PHPUnit_Framework_TestCase +class SerializerTest extends TestCase { public function testInterface() { diff --git a/src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php b/src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php index 1322d11e48ef..f2ee03979775 100644 --- a/src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php +++ b/src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Stopwatch\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Stopwatch\StopwatchEvent; /** @@ -20,7 +21,7 @@ * * @group time-sensitive */ -class StopwatchEventTest extends \PHPUnit_Framework_TestCase +class StopwatchEventTest extends TestCase { const DELTA = 37; diff --git a/src/Symfony/Component/Stopwatch/Tests/StopwatchTest.php b/src/Symfony/Component/Stopwatch/Tests/StopwatchTest.php index f0edf39e6983..f7d9171d8bc0 100644 --- a/src/Symfony/Component/Stopwatch/Tests/StopwatchTest.php +++ b/src/Symfony/Component/Stopwatch/Tests/StopwatchTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Stopwatch\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Stopwatch\Stopwatch; /** @@ -20,7 +21,7 @@ * * @group time-sensitive */ -class StopwatchTest extends \PHPUnit_Framework_TestCase +class StopwatchTest extends TestCase { const DELTA = 20; diff --git a/src/Symfony/Component/Templating/Tests/DelegatingEngineTest.php b/src/Symfony/Component/Templating/Tests/DelegatingEngineTest.php index bf82ed51fcfc..19db0caef77c 100644 --- a/src/Symfony/Component/Templating/Tests/DelegatingEngineTest.php +++ b/src/Symfony/Component/Templating/Tests/DelegatingEngineTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Templating\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\DelegatingEngine; use Symfony\Component\Templating\StreamingEngineInterface; use Symfony\Component\Templating\EngineInterface; -class DelegatingEngineTest extends \PHPUnit_Framework_TestCase +class DelegatingEngineTest extends TestCase { public function testRenderDelegatesToSupportedEngine() { diff --git a/src/Symfony/Component/Templating/Tests/Helper/HelperTest.php b/src/Symfony/Component/Templating/Tests/Helper/HelperTest.php index b0221f6dcbe9..8921ff19c81f 100644 --- a/src/Symfony/Component/Templating/Tests/Helper/HelperTest.php +++ b/src/Symfony/Component/Templating/Tests/Helper/HelperTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Templating\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Helper\Helper; -class HelperTest extends \PHPUnit_Framework_TestCase +class HelperTest extends TestCase { public function testGetSetCharset() { diff --git a/src/Symfony/Component/Templating/Tests/Helper/LegacyAssetsHelperTest.php b/src/Symfony/Component/Templating/Tests/Helper/LegacyAssetsHelperTest.php index d107e9ec4d2f..97fcf308b5a3 100644 --- a/src/Symfony/Component/Templating/Tests/Helper/LegacyAssetsHelperTest.php +++ b/src/Symfony/Component/Templating/Tests/Helper/LegacyAssetsHelperTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Templating\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Helper\AssetsHelper; /** * @group legacy */ -class LegacyAssetsHelperTest extends \PHPUnit_Framework_TestCase +class LegacyAssetsHelperTest extends TestCase { public function testGetVersion() { diff --git a/src/Symfony/Component/Templating/Tests/Helper/LegacyCoreAssetsHelperTest.php b/src/Symfony/Component/Templating/Tests/Helper/LegacyCoreAssetsHelperTest.php index b6d7ce99289e..a90479bc55c2 100644 --- a/src/Symfony/Component/Templating/Tests/Helper/LegacyCoreAssetsHelperTest.php +++ b/src/Symfony/Component/Templating/Tests/Helper/LegacyCoreAssetsHelperTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Templating\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Helper\CoreAssetsHelper; /** * @group legacy */ -class LegacyCoreAssetsHelperTest extends \PHPUnit_Framework_TestCase +class LegacyCoreAssetsHelperTest extends TestCase { protected $package; diff --git a/src/Symfony/Component/Templating/Tests/Helper/SlotsHelperTest.php b/src/Symfony/Component/Templating/Tests/Helper/SlotsHelperTest.php index ddaf462c0b29..c747072c606a 100644 --- a/src/Symfony/Component/Templating/Tests/Helper/SlotsHelperTest.php +++ b/src/Symfony/Component/Templating/Tests/Helper/SlotsHelperTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Templating\Tests\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Helper\SlotsHelper; -class SlotsHelperTest extends \PHPUnit_Framework_TestCase +class SlotsHelperTest extends TestCase { public function testHasGetSet() { diff --git a/src/Symfony/Component/Templating/Tests/Loader/CacheLoaderTest.php b/src/Symfony/Component/Templating/Tests/Loader/CacheLoaderTest.php index 344f3d07cf06..b4bf42b57240 100644 --- a/src/Symfony/Component/Templating/Tests/Loader/CacheLoaderTest.php +++ b/src/Symfony/Component/Templating/Tests/Loader/CacheLoaderTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Templating\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Loader\Loader; use Symfony\Component\Templating\Loader\CacheLoader; use Symfony\Component\Templating\Storage\StringStorage; use Symfony\Component\Templating\TemplateReferenceInterface; use Symfony\Component\Templating\TemplateReference; -class CacheLoaderTest extends \PHPUnit_Framework_TestCase +class CacheLoaderTest extends TestCase { public function testConstructor() { diff --git a/src/Symfony/Component/Templating/Tests/Loader/ChainLoaderTest.php b/src/Symfony/Component/Templating/Tests/Loader/ChainLoaderTest.php index 1521abd6ecc8..7e403995a075 100644 --- a/src/Symfony/Component/Templating/Tests/Loader/ChainLoaderTest.php +++ b/src/Symfony/Component/Templating/Tests/Loader/ChainLoaderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Templating\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Loader\ChainLoader; use Symfony\Component\Templating\Loader\FilesystemLoader; use Symfony\Component\Templating\TemplateReference; -class ChainLoaderTest extends \PHPUnit_Framework_TestCase +class ChainLoaderTest extends TestCase { protected $loader1; protected $loader2; diff --git a/src/Symfony/Component/Templating/Tests/Loader/FilesystemLoaderTest.php b/src/Symfony/Component/Templating/Tests/Loader/FilesystemLoaderTest.php index b7e119796072..04b93fb1c575 100644 --- a/src/Symfony/Component/Templating/Tests/Loader/FilesystemLoaderTest.php +++ b/src/Symfony/Component/Templating/Tests/Loader/FilesystemLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Templating\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Loader\FilesystemLoader; use Symfony\Component\Templating\TemplateReference; -class FilesystemLoaderTest extends \PHPUnit_Framework_TestCase +class FilesystemLoaderTest extends TestCase { protected static $fixturesPath; diff --git a/src/Symfony/Component/Templating/Tests/Loader/LoaderTest.php b/src/Symfony/Component/Templating/Tests/Loader/LoaderTest.php index b79dd618f929..690d259406bd 100644 --- a/src/Symfony/Component/Templating/Tests/Loader/LoaderTest.php +++ b/src/Symfony/Component/Templating/Tests/Loader/LoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Templating\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Loader\Loader; use Symfony\Component\Templating\TemplateReferenceInterface; -class LoaderTest extends \PHPUnit_Framework_TestCase +class LoaderTest extends TestCase { public function testGetSetLogger() { diff --git a/src/Symfony/Component/Templating/Tests/PhpEngineTest.php b/src/Symfony/Component/Templating/Tests/PhpEngineTest.php index fa0134aae1a9..d3d8c9885c41 100644 --- a/src/Symfony/Component/Templating/Tests/PhpEngineTest.php +++ b/src/Symfony/Component/Templating/Tests/PhpEngineTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Templating\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\PhpEngine; use Symfony\Component\Templating\Loader\Loader; use Symfony\Component\Templating\Storage\StringStorage; @@ -19,7 +20,7 @@ use Symfony\Component\Templating\TemplateReferenceInterface; use Symfony\Component\Templating\TemplateReference; -class PhpEngineTest extends \PHPUnit_Framework_TestCase +class PhpEngineTest extends TestCase { protected $loader; diff --git a/src/Symfony/Component/Templating/Tests/Storage/FileStorageTest.php b/src/Symfony/Component/Templating/Tests/Storage/FileStorageTest.php index 3eaf3b76a9e9..ed3ca51d9dfa 100644 --- a/src/Symfony/Component/Templating/Tests/Storage/FileStorageTest.php +++ b/src/Symfony/Component/Templating/Tests/Storage/FileStorageTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Templating\Tests\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Storage\FileStorage; -class FileStorageTest extends \PHPUnit_Framework_TestCase +class FileStorageTest extends TestCase { public function testGetContent() { diff --git a/src/Symfony/Component/Templating/Tests/Storage/StorageTest.php b/src/Symfony/Component/Templating/Tests/Storage/StorageTest.php index 341629a9b98b..3aac21dd7b66 100644 --- a/src/Symfony/Component/Templating/Tests/Storage/StorageTest.php +++ b/src/Symfony/Component/Templating/Tests/Storage/StorageTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Templating\Tests\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Storage\Storage; -class StorageTest extends \PHPUnit_Framework_TestCase +class StorageTest extends TestCase { public function testMagicToString() { diff --git a/src/Symfony/Component/Templating/Tests/Storage/StringStorageTest.php b/src/Symfony/Component/Templating/Tests/Storage/StringStorageTest.php index e9b3e93ecda7..ecfeb800c858 100644 --- a/src/Symfony/Component/Templating/Tests/Storage/StringStorageTest.php +++ b/src/Symfony/Component/Templating/Tests/Storage/StringStorageTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Templating\Tests\Storage; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\Storage\StringStorage; -class StringStorageTest extends \PHPUnit_Framework_TestCase +class StringStorageTest extends TestCase { public function testGetContent() { diff --git a/src/Symfony/Component/Templating/Tests/TemplateNameParserTest.php b/src/Symfony/Component/Templating/Tests/TemplateNameParserTest.php index afe73bc5baa5..14a019402fd3 100644 --- a/src/Symfony/Component/Templating/Tests/TemplateNameParserTest.php +++ b/src/Symfony/Component/Templating/Tests/TemplateNameParserTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Templating\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\TemplateNameParser; use Symfony\Component\Templating\TemplateReference; -class TemplateNameParserTest extends \PHPUnit_Framework_TestCase +class TemplateNameParserTest extends TestCase { protected $parser; diff --git a/src/Symfony/Component/Translation/Tests/Catalogue/AbstractOperationTest.php b/src/Symfony/Component/Translation/Tests/Catalogue/AbstractOperationTest.php index 30c21afa64c1..6fd909e878f7 100644 --- a/src/Symfony/Component/Translation/Tests/Catalogue/AbstractOperationTest.php +++ b/src/Symfony/Component/Translation/Tests/Catalogue/AbstractOperationTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Catalogue; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\MessageCatalogueInterface; -abstract class AbstractOperationTest extends \PHPUnit_Framework_TestCase +abstract class AbstractOperationTest extends TestCase { public function testGetEmptyDomains() { diff --git a/src/Symfony/Component/Translation/Tests/DataCollector/TranslationDataCollectorTest.php b/src/Symfony/Component/Translation/Tests/DataCollector/TranslationDataCollectorTest.php index 085d31267b3a..ba59ce8d1c2a 100644 --- a/src/Symfony/Component/Translation/Tests/DataCollector/TranslationDataCollectorTest.php +++ b/src/Symfony/Component/Translation/Tests/DataCollector/TranslationDataCollectorTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\DataCollector; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\DataCollectorTranslator; use Symfony\Component\Translation\DataCollector\TranslationDataCollector; -class TranslationDataCollectorTest extends \PHPUnit_Framework_TestCase +class TranslationDataCollectorTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Translation/Tests/DataCollectorTranslatorTest.php b/src/Symfony/Component/Translation/Tests/DataCollectorTranslatorTest.php index af33f6c1f867..0cbf63a4063c 100644 --- a/src/Symfony/Component/Translation/Tests/DataCollectorTranslatorTest.php +++ b/src/Symfony/Component/Translation/Tests/DataCollectorTranslatorTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Translator; use Symfony\Component\Translation\DataCollectorTranslator; use Symfony\Component\Translation\Loader\ArrayLoader; -class DataCollectorTranslatorTest extends \PHPUnit_Framework_TestCase +class DataCollectorTranslatorTest extends TestCase { public function testCollectMessages() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php index 29177ff5f590..39b1d64eb7d9 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\CsvFileDumper; -class CsvFileDumperTest extends \PHPUnit_Framework_TestCase +class CsvFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/FileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/FileDumperTest.php index bb2d9166ef7c..50830353127e 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/FileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/FileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\FileDumper; -class FileDumperTest extends \PHPUnit_Framework_TestCase +class FileDumperTest extends TestCase { public function testDumpBackupsFileIfExisting() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php index e12b59eb1f3d..5d2037c3f7ee 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\IcuResFileDumper; -class IcuResFileDumperTest extends \PHPUnit_Framework_TestCase +class IcuResFileDumperTest extends TestCase { /** * @requires extension mbstring diff --git a/src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php index 2a2cefde1ef5..efbdfa2c29d8 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\IniFileDumper; -class IniFileDumperTest extends \PHPUnit_Framework_TestCase +class IniFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php index 697cd939f607..f54768418ca6 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\JsonFileDumper; -class JsonFileDumperTest extends \PHPUnit_Framework_TestCase +class JsonFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php index 439a25cd222f..6ac9b94002a0 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\MoFileDumper; -class MoFileDumperTest extends \PHPUnit_Framework_TestCase +class MoFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php index 18be5a0dc48a..5c5073c7eddb 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\PhpFileDumper; -class PhpFileDumperTest extends \PHPUnit_Framework_TestCase +class PhpFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php index 0296d6b2eaaa..03469770a331 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\PoFileDumper; -class PoFileDumperTest extends \PHPUnit_Framework_TestCase +class PoFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php index d7d8fb7e4698..3b7337d3f1cd 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\QtFileDumper; -class QtFileDumperTest extends \PHPUnit_Framework_TestCase +class QtFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php index dff2cc4c94a5..07411a0117ed 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\XliffFileDumper; -class XliffFileDumperTest extends \PHPUnit_Framework_TestCase +class XliffFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php index 3c68ade75311..ae036bc3e9d0 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Dumper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\YamlFileDumper; -class YamlFileDumperTest extends \PHPUnit_Framework_TestCase +class YamlFileDumperTest extends TestCase { public function testDump() { diff --git a/src/Symfony/Component/Translation/Tests/IdentityTranslatorTest.php b/src/Symfony/Component/Translation/Tests/IdentityTranslatorTest.php index 648c54afd153..78288da40e15 100644 --- a/src/Symfony/Component/Translation/Tests/IdentityTranslatorTest.php +++ b/src/Symfony/Component/Translation/Tests/IdentityTranslatorTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Util\IntlTestHelper; use Symfony\Component\Translation\IdentityTranslator; -class IdentityTranslatorTest extends \PHPUnit_Framework_TestCase +class IdentityTranslatorTest extends TestCase { /** * @dataProvider getTransTests diff --git a/src/Symfony/Component/Translation/Tests/IntervalTest.php b/src/Symfony/Component/Translation/Tests/IntervalTest.php index 075c98b768f8..1bb3d210d79a 100644 --- a/src/Symfony/Component/Translation/Tests/IntervalTest.php +++ b/src/Symfony/Component/Translation/Tests/IntervalTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Interval; -class IntervalTest extends \PHPUnit_Framework_TestCase +class IntervalTest extends TestCase { /** * @dataProvider getTests diff --git a/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php index 463d3b50816f..27a4456e601f 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\CsvFileLoader; use Symfony\Component\Config\Resource\FileResource; -class CsvFileLoaderTest extends \PHPUnit_Framework_TestCase +class CsvFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php index 1a5de0ed58d6..dbf22d10347a 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\IniFileLoader; use Symfony\Component\Config\Resource\FileResource; -class IniFileLoaderTest extends \PHPUnit_Framework_TestCase +class IniFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php index cd5d6339f7b4..46261b666fbb 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\JsonFileLoader; use Symfony\Component\Config\Resource\FileResource; -class JsonFileLoaderTest extends \PHPUnit_Framework_TestCase +class JsonFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/LocalizedTestCase.php b/src/Symfony/Component/Translation/Tests/Loader/LocalizedTestCase.php index 0d1fff7ac490..a655c69d2e72 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/LocalizedTestCase.php +++ b/src/Symfony/Component/Translation/Tests/Loader/LocalizedTestCase.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Translation\Tests\Loader; -abstract class LocalizedTestCase extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +abstract class LocalizedTestCase extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php index 34078d0a9e48..b9f754fcf0da 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\MoFileLoader; use Symfony\Component\Config\Resource\FileResource; -class MoFileLoaderTest extends \PHPUnit_Framework_TestCase +class MoFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php index 0816b0f8549d..9fc83e34f99a 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\PhpFileLoader; use Symfony\Component\Config\Resource\FileResource; -class PhpFileLoaderTest extends \PHPUnit_Framework_TestCase +class PhpFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php index 5d340c766f23..884dec9a65f6 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\PoFileLoader; use Symfony\Component\Config\Resource\FileResource; -class PoFileLoaderTest extends \PHPUnit_Framework_TestCase +class PoFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php index 3aca86a53ed6..a8d04d6f2874 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\QtFileLoader; use Symfony\Component\Config\Resource\FileResource; -class QtFileLoaderTest extends \PHPUnit_Framework_TestCase +class QtFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php index ba135af6cbcd..1dc6ec38faf9 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\XliffFileLoader; use Symfony\Component\Config\Resource\FileResource; -class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase +class XliffFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php index 00f7163468d5..e1ba514b3f75 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\YamlFileLoader; use Symfony\Component\Config\Resource\FileResource; -class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase +class YamlFileLoaderTest extends TestCase { public function testLoad() { diff --git a/src/Symfony/Component/Translation/Tests/LoggingTranslatorTest.php b/src/Symfony/Component/Translation/Tests/LoggingTranslatorTest.php index 66e9d587dedf..891230a2ded2 100644 --- a/src/Symfony/Component/Translation/Tests/LoggingTranslatorTest.php +++ b/src/Symfony/Component/Translation/Tests/LoggingTranslatorTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Translator; use Symfony\Component\Translation\LoggingTranslator; use Symfony\Component\Translation\Loader\ArrayLoader; -class LoggingTranslatorTest extends \PHPUnit_Framework_TestCase +class LoggingTranslatorTest extends TestCase { public function testTransWithNoTranslationIsLogged() { diff --git a/src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php b/src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php index eb18dae0a1e7..e85af944fcb5 100644 --- a/src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php +++ b/src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; -class MessageCatalogueTest extends \PHPUnit_Framework_TestCase +class MessageCatalogueTest extends TestCase { public function testGetLocale() { diff --git a/src/Symfony/Component/Translation/Tests/MessageSelectorTest.php b/src/Symfony/Component/Translation/Tests/MessageSelectorTest.php index f89bed16d59b..9d68749428f4 100644 --- a/src/Symfony/Component/Translation/Tests/MessageSelectorTest.php +++ b/src/Symfony/Component/Translation/Tests/MessageSelectorTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageSelector; -class MessageSelectorTest extends \PHPUnit_Framework_TestCase +class MessageSelectorTest extends TestCase { /** * @dataProvider getChooseTests diff --git a/src/Symfony/Component/Translation/Tests/PluralizationRulesTest.php b/src/Symfony/Component/Translation/Tests/PluralizationRulesTest.php index 78bbc87eece4..8e499fd6edac 100644 --- a/src/Symfony/Component/Translation/Tests/PluralizationRulesTest.php +++ b/src/Symfony/Component/Translation/Tests/PluralizationRulesTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\PluralizationRules; /** @@ -26,7 +27,7 @@ * * @author Clemens Tolboom clemens@build2be.nl */ -class PluralizationRulesTest extends \PHPUnit_Framework_TestCase +class PluralizationRulesTest extends TestCase { /** * We test failed langcode here. diff --git a/src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php b/src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php index fa3451b2cac1..ea272b9eae1e 100644 --- a/src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php +++ b/src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Resource\ResourceInterface; use Symfony\Component\Translation\Loader\ArrayLoader; use Symfony\Component\Translation\Loader\LoaderInterface; use Symfony\Component\Translation\Translator; use Symfony\Component\Translation\MessageCatalogue; -class TranslatorCacheTest extends \PHPUnit_Framework_TestCase +class TranslatorCacheTest extends TestCase { protected $tmpDir; diff --git a/src/Symfony/Component/Translation/Tests/TranslatorTest.php b/src/Symfony/Component/Translation/Tests/TranslatorTest.php index 8756844b467c..f02eb57b358f 100644 --- a/src/Symfony/Component/Translation/Tests/TranslatorTest.php +++ b/src/Symfony/Component/Translation/Tests/TranslatorTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Translation\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Translator; use Symfony\Component\Translation\MessageSelector; use Symfony\Component\Translation\Loader\ArrayLoader; use Symfony\Component\Translation\MessageCatalogue; -class TranslatorTest extends \PHPUnit_Framework_TestCase +class TranslatorTest extends TestCase { /** * @dataProvider getInvalidLocalesTests diff --git a/src/Symfony/Component/Translation/Tests/Writer/TranslationWriterTest.php b/src/Symfony/Component/Translation/Tests/Writer/TranslationWriterTest.php index 041a83679a08..2d2aec7c8a05 100644 --- a/src/Symfony/Component/Translation/Tests/Writer/TranslationWriterTest.php +++ b/src/Symfony/Component/Translation/Tests/Writer/TranslationWriterTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Translation\Tests\Writer; +use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Dumper\DumperInterface; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Writer\TranslationWriter; -class TranslationWriterTest extends \PHPUnit_Framework_TestCase +class TranslationWriterTest extends TestCase { public function testWriteTranslations() { diff --git a/src/Symfony/Component/Validator/Tests/ConstraintTest.php b/src/Symfony/Component/Validator/Tests/ConstraintTest.php index d473f14f651a..b16536883278 100644 --- a/src/Symfony/Component/Validator/Tests/ConstraintTest.php +++ b/src/Symfony/Component/Validator/Tests/ConstraintTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Tests\Fixtures\ClassConstraint; use Symfony\Component\Validator\Tests\Fixtures\ConstraintA; @@ -19,7 +20,7 @@ use Symfony\Component\Validator\Tests\Fixtures\ConstraintWithValue; use Symfony\Component\Validator\Tests\Fixtures\ConstraintWithValueAsDefault; -class ConstraintTest extends \PHPUnit_Framework_TestCase +class ConstraintTest extends TestCase { public function testSetProperties() { diff --git a/src/Symfony/Component/Validator/Tests/ConstraintViolationListTest.php b/src/Symfony/Component/Validator/Tests/ConstraintViolationListTest.php index 18ec52d7a417..6f4518cab39e 100644 --- a/src/Symfony/Component/Validator/Tests/ConstraintViolationListTest.php +++ b/src/Symfony/Component/Validator/Tests/ConstraintViolationListTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Validator\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\ConstraintViolation; use Symfony\Component\Validator\ConstraintViolationList; -class ConstraintViolationListTest extends \PHPUnit_Framework_TestCase +class ConstraintViolationListTest extends TestCase { protected $list; diff --git a/src/Symfony/Component/Validator/Tests/ConstraintViolationTest.php b/src/Symfony/Component/Validator/Tests/ConstraintViolationTest.php index 5ea35195412f..cef4782e0f82 100644 --- a/src/Symfony/Component/Validator/Tests/ConstraintViolationTest.php +++ b/src/Symfony/Component/Validator/Tests/ConstraintViolationTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Validator\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\ConstraintViolation; -class ConstraintViolationTest extends \PHPUnit_Framework_TestCase +class ConstraintViolationTest extends TestCase { public function testToStringHandlesArrays() { diff --git a/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php index 3a6fa5f6786b..73cdb53d297b 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Assert; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\NotNull; use Symfony\Component\Validator\ConstraintValidatorInterface; @@ -26,7 +28,7 @@ /** * @author Bernhard Schussek */ -abstract class AbstractConstraintValidatorTest extends \PHPUnit_Framework_TestCase +abstract class AbstractConstraintValidatorTest extends TestCase { /** * @var ExecutionContextInterface @@ -411,12 +413,12 @@ public function assertRaised() $violations = iterator_to_array($this->context->getViolations()); - \PHPUnit_Framework_Assert::assertSame($expectedCount = count($expected), $violationsCount = count($violations), sprintf('%u violation(s) expected. Got %u.', $expectedCount, $violationsCount)); + Assert::assertSame($expectedCount = count($expected), $violationsCount = count($violations), sprintf('%u violation(s) expected. Got %u.', $expectedCount, $violationsCount)); reset($violations); foreach ($expected as $violation) { - \PHPUnit_Framework_Assert::assertEquals($violation, current($violations)); + Assert::assertEquals($violation, current($violations)); next($violations); } } diff --git a/src/Symfony/Component/Validator/Tests/Constraints/AllTest.php b/src/Symfony/Component/Validator/Tests/Constraints/AllTest.php index 36b5198b0b2f..25e71a1b44dc 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/AllTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/AllTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\All; use Symfony\Component\Validator\Constraints\Valid; /** * @author Bernhard Schussek */ -class AllTest extends \PHPUnit_Framework_TestCase +class AllTest extends TestCase { /** * @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException diff --git a/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php b/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php index 79f50b0b5b58..b5fbf6c0b097 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Collection; use Symfony\Component\Validator\Constraints\Email; use Symfony\Component\Validator\Constraints\Optional; @@ -20,7 +21,7 @@ /** * @author Bernhard Schussek */ -class CollectionTest extends \PHPUnit_Framework_TestCase +class CollectionTest extends TestCase { /** * @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException diff --git a/src/Symfony/Component/Validator/Tests/Constraints/CompositeTest.php b/src/Symfony/Component/Validator/Tests/Constraints/CompositeTest.php index 002b1336aab3..6a8530723fb0 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/CompositeTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/CompositeTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Composite; use Symfony\Component\Validator\Constraints\NotBlank; use Symfony\Component\Validator\Constraints\NotNull; @@ -34,7 +35,7 @@ public function getDefaultOption() /** * @author Bernhard Schussek */ -class CompositeTest extends \PHPUnit_Framework_TestCase +class CompositeTest extends TestCase { public function testMergeNestedGroupsIfNoExplicitParentGroup() { diff --git a/src/Symfony/Component/Validator/Tests/Constraints/FileTest.php b/src/Symfony/Component/Validator/Tests/Constraints/FileTest.php index fbd4b074260b..ac9c7bcc0811 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/FileTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/FileTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\File; use Symfony\Component\Validator\Exception\ConstraintDefinitionException; -class FileTest extends \PHPUnit_Framework_TestCase +class FileTest extends TestCase { /** * @param mixed $maxSize diff --git a/src/Symfony/Component/Validator/Tests/Constraints/GroupSequenceTest.php b/src/Symfony/Component/Validator/Tests/Constraints/GroupSequenceTest.php index aa2d601042c5..6326d0514ba3 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/GroupSequenceTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/GroupSequenceTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\GroupSequence; /** * @author Bernhard Schussek */ -class GroupSequenceTest extends \PHPUnit_Framework_TestCase +class GroupSequenceTest extends TestCase { public function testCreate() { diff --git a/src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php b/src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php index ea37bb4d6bd4..3291c77356f2 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php @@ -11,12 +11,13 @@ namespace Constraints; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Regex; /** * @author Bernhard Schussek */ -class RegexTest extends \PHPUnit_Framework_TestCase +class RegexTest extends TestCase { public function testConstraintGetDefaultOption() { diff --git a/src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php b/src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php index 3de6ab3217a3..83722fd2df0e 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Valid; /** * @author Bernhard Schussek */ -class ValidTest extends \PHPUnit_Framework_TestCase +class ValidTest extends TestCase { /** * @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException diff --git a/src/Symfony/Component/Validator/Tests/LegacyExecutionContextTest.php b/src/Symfony/Component/Validator/Tests/LegacyExecutionContextTest.php index ebf9696a3588..a6737cf5b9d6 100644 --- a/src/Symfony/Component/Validator/Tests/LegacyExecutionContextTest.php +++ b/src/Symfony/Component/Validator/Tests/LegacyExecutionContextTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Collection; use Symfony\Component\Validator\Constraints\All; use Symfony\Component\Validator\ConstraintValidatorFactory; @@ -23,7 +24,7 @@ /** * @group legacy */ -class LegacyExecutionContextTest extends \PHPUnit_Framework_TestCase +class LegacyExecutionContextTest extends TestCase { const TRANS_DOMAIN = 'trans_domain'; diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Cache/DoctrineCacheTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Cache/DoctrineCacheTest.php index a2de306a2f46..19b29227d6d8 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Cache/DoctrineCacheTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Cache/DoctrineCacheTest.php @@ -12,9 +12,10 @@ namespace Symfony\Component\Validator\Tests\Mapping\Cache; use Doctrine\Common\Cache\ArrayCache; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\Cache\DoctrineCache; -class DoctrineCacheTest extends \PHPUnit_Framework_TestCase +class DoctrineCacheTest extends TestCase { private $cache; diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Cache/LegacyApcCacheTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Cache/LegacyApcCacheTest.php index a5d1c239f825..8e6e1bf7b448 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Cache/LegacyApcCacheTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Cache/LegacyApcCacheTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Validator\Tests\Mapping\Cache; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\Cache\ApcCache; /** * @group legacy * @requires extension apc */ -class LegacyApcCacheTest extends \PHPUnit_Framework_TestCase +class LegacyApcCacheTest extends TestCase { protected function setUp() { diff --git a/src/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php b/src/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php index 51b5a09802fe..6240ba727a1c 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Mapping; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\Valid; use Symfony\Component\Validator\Mapping\ClassMetadata; @@ -18,7 +19,7 @@ use Symfony\Component\Validator\Tests\Fixtures\ConstraintB; use Symfony\Component\Validator\Tests\Fixtures\PropertyConstraint; -class ClassMetadataTest extends \PHPUnit_Framework_TestCase +class ClassMetadataTest extends TestCase { const CLASSNAME = 'Symfony\Component\Validator\Tests\Fixtures\Entity'; const PARENTCLASS = 'Symfony\Component\Validator\Tests\Fixtures\EntityParent'; diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Factory/BlackHoleMetadataFactoryTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Factory/BlackHoleMetadataFactoryTest.php index 641bf919d480..a323567d2316 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Factory/BlackHoleMetadataFactoryTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Factory/BlackHoleMetadataFactoryTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Validator\Tests\Mapping\Factory; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\Factory\BlackHoleMetadataFactory; -class BlackHoleMetadataFactoryTest extends \PHPUnit_Framework_TestCase +class BlackHoleMetadataFactoryTest extends TestCase { /** * @expectedException \LogicException diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php index 400c39ce4cfa..1ebce65cc202 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Validator\Tests\Mapping\Factory; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Callback; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory; use Symfony\Component\Validator\Mapping\Loader\LoaderInterface; use Symfony\Component\Validator\Tests\Fixtures\ConstraintA; -class LazyLoadingMetadataFactoryTest extends \PHPUnit_Framework_TestCase +class LazyLoadingMetadataFactoryTest extends TestCase { const CLASS_NAME = 'Symfony\Component\Validator\Tests\Fixtures\Entity'; const PARENT_CLASS = 'Symfony\Component\Validator\Tests\Fixtures\EntityParent'; diff --git a/src/Symfony/Component/Validator/Tests/Mapping/GetterMetadataTest.php b/src/Symfony/Component/Validator/Tests/Mapping/GetterMetadataTest.php index 078159971af8..2c21d09487d4 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/GetterMetadataTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/GetterMetadataTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Validator\Tests\Mapping; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\GetterMetadata; use Symfony\Component\Validator\Tests\Fixtures\Entity; -class GetterMetadataTest extends \PHPUnit_Framework_TestCase +class GetterMetadataTest extends TestCase { const CLASSNAME = 'Symfony\Component\Validator\Tests\Fixtures\Entity'; diff --git a/src/Symfony/Component/Validator/Tests/Mapping/LegacyElementMetadataTest.php b/src/Symfony/Component/Validator/Tests/Mapping/LegacyElementMetadataTest.php index b68c88293f19..1fb2e6e7c814 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/LegacyElementMetadataTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/LegacyElementMetadataTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Mapping; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\ElementMetadata; use Symfony\Component\Validator\Tests\Fixtures\ConstraintA; use Symfony\Component\Validator\Tests\Fixtures\ConstraintB; @@ -18,7 +19,7 @@ /** * @group legacy */ -class LegacyElementMetadataTest extends \PHPUnit_Framework_TestCase +class LegacyElementMetadataTest extends TestCase { protected $metadata; diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/AnnotationLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/AnnotationLoaderTest.php index 0e2ad41d697a..fb776ae32c0a 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/AnnotationLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/AnnotationLoaderTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader; use Doctrine\Common\Annotations\AnnotationReader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\All; use Symfony\Component\Validator\Constraints\Callback; use Symfony\Component\Validator\Constraints\Choice; @@ -23,7 +24,7 @@ use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader; use Symfony\Component\Validator\Tests\Fixtures\ConstraintA; -class AnnotationLoaderTest extends \PHPUnit_Framework_TestCase +class AnnotationLoaderTest extends TestCase { public function testLoadClassMetadataReturnsTrueIfSuccessful() { diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/FilesLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/FilesLoaderTest.php index c131f28aea55..6fee7b6ff540 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/FilesLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/FilesLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Mapping\Loader\LoaderInterface; -class FilesLoaderTest extends \PHPUnit_Framework_TestCase +class FilesLoaderTest extends TestCase { public function testCallsGetFileLoaderInstanceForeachPath() { diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/LoaderChainTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/LoaderChainTest.php index c0a46cb0fdd0..49a8b5256d0b 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/LoaderChainTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/LoaderChainTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Mapping\Loader\LoaderChain; -class LoaderChainTest extends \PHPUnit_Framework_TestCase +class LoaderChainTest extends TestCase { public function testAllLoadersAreCalled() { diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php index db4076cb7090..069ccd322929 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Mapping\Loader\StaticMethodLoader; use Symfony\Component\Validator\Tests\Fixtures\ConstraintA; -class StaticMethodLoaderTest extends \PHPUnit_Framework_TestCase +class StaticMethodLoaderTest extends TestCase { private $errorLevel; diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php index 2053e2485688..818094962ca2 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\All; use Symfony\Component\Validator\Constraints\Callback; use Symfony\Component\Validator\Constraints\Choice; @@ -26,7 +27,7 @@ use Symfony\Component\Validator\Tests\Fixtures\ConstraintA; use Symfony\Component\Validator\Tests\Fixtures\ConstraintB; -class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase +class XmlFileLoaderTest extends TestCase { public function testLoadClassMetadataReturnsTrueIfSuccessful() { diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php index 15f02139ae31..a50b4b302071 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\All; use Symfony\Component\Validator\Constraints\Callback; use Symfony\Component\Validator\Constraints\Choice; @@ -23,7 +24,7 @@ use Symfony\Component\Validator\Tests\Fixtures\ConstraintA; use Symfony\Component\Validator\Tests\Fixtures\ConstraintB; -class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase +class YamlFileLoaderTest extends TestCase { public function testLoadClassMetadataReturnsFalseIfEmpty() { diff --git a/src/Symfony/Component/Validator/Tests/Mapping/MemberMetadataTest.php b/src/Symfony/Component/Validator/Tests/Mapping/MemberMetadataTest.php index fafde341ac06..2ced2c739d41 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/MemberMetadataTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/MemberMetadataTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\Validator\Tests\Mapping; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Valid; use Symfony\Component\Validator\Mapping\MemberMetadata; use Symfony\Component\Validator\Tests\Fixtures\ClassConstraint; use Symfony\Component\Validator\Tests\Fixtures\ConstraintA; use Symfony\Component\Validator\Tests\Fixtures\ConstraintB; -class MemberMetadataTest extends \PHPUnit_Framework_TestCase +class MemberMetadataTest extends TestCase { protected $metadata; diff --git a/src/Symfony/Component/Validator/Tests/Mapping/PropertyMetadataTest.php b/src/Symfony/Component/Validator/Tests/Mapping/PropertyMetadataTest.php index e0ff920fe1ef..f61545a5a2d4 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/PropertyMetadataTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/PropertyMetadataTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Validator\Tests\Mapping; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Mapping\PropertyMetadata; use Symfony\Component\Validator\Tests\Fixtures\Entity; -class PropertyMetadataTest extends \PHPUnit_Framework_TestCase +class PropertyMetadataTest extends TestCase { const CLASSNAME = 'Symfony\Component\Validator\Tests\Fixtures\Entity'; const PARENTCLASS = 'Symfony\Component\Validator\Tests\Fixtures\EntityParent'; diff --git a/src/Symfony/Component/Validator/Tests/Resources/TranslationFilesTest.php b/src/Symfony/Component/Validator/Tests/Resources/TranslationFilesTest.php index 8a766611cd4f..14dd58fbeceb 100644 --- a/src/Symfony/Component/Validator/Tests/Resources/TranslationFilesTest.php +++ b/src/Symfony/Component/Validator/Tests/Resources/TranslationFilesTest.php @@ -11,7 +11,9 @@ namespace Symfony\Component\Validator\Tests\Resources; -class TranslationFilesTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class TranslationFilesTest extends TestCase { /** * @dataProvider provideTranslationFiles diff --git a/src/Symfony/Component/Validator/Tests/Util/PropertyPathTest.php b/src/Symfony/Component/Validator/Tests/Util/PropertyPathTest.php index a8b9af9de85c..235e1780d907 100644 --- a/src/Symfony/Component/Validator/Tests/Util/PropertyPathTest.php +++ b/src/Symfony/Component/Validator/Tests/Util/PropertyPathTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Validator\Tests\Util; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Util\PropertyPath; -class PropertyPathTest extends \PHPUnit_Framework_TestCase +class PropertyPathTest extends TestCase { /** * @dataProvider provideAppendPaths diff --git a/src/Symfony/Component/Validator/Tests/Validator/AbstractValidatorTest.php b/src/Symfony/Component/Validator/Tests/Validator/AbstractValidatorTest.php index d5ff2954f818..1d8813d97a3d 100644 --- a/src/Symfony/Component/Validator/Tests/Validator/AbstractValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Validator/AbstractValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Validator; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Callback; use Symfony\Component\Validator\Constraints\GroupSequence; use Symfony\Component\Validator\Constraints\Valid; @@ -25,7 +26,7 @@ /** * @author Bernhard Schussek */ -abstract class AbstractValidatorTest extends \PHPUnit_Framework_TestCase +abstract class AbstractValidatorTest extends TestCase { const ENTITY_CLASS = 'Symfony\Component\Validator\Tests\Fixtures\Entity'; diff --git a/src/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php b/src/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php index d41a791978bc..77d586412b76 100644 --- a/src/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php +++ b/src/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Validator\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\ValidatorBuilder; use Symfony\Component\Validator\ValidatorBuilderInterface; -class ValidatorBuilderTest extends \PHPUnit_Framework_TestCase +class ValidatorBuilderTest extends TestCase { /** * @var ValidatorBuilderInterface diff --git a/src/Symfony/Component/VarDumper/Test/VarDumperTestCase.php b/src/Symfony/Component/VarDumper/Test/VarDumperTestCase.php index 006c1dc7a8f6..b4366461f693 100644 --- a/src/Symfony/Component/VarDumper/Test/VarDumperTestCase.php +++ b/src/Symfony/Component/VarDumper/Test/VarDumperTestCase.php @@ -11,13 +11,14 @@ namespace Symfony\Component\VarDumper\Test; +use PHPUnit\Framework\TestCase; use Symfony\Component\VarDumper\Cloner\VarCloner; use Symfony\Component\VarDumper\Dumper\CliDumper; /** * @author Nicolas Grekas */ -abstract class VarDumperTestCase extends \PHPUnit_Framework_TestCase +abstract class VarDumperTestCase extends TestCase { public function assertDumpEquals($dump, $data, $message = '') { diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php index 0642c53716c5..3ad921313ba9 100644 --- a/src/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\VarDumper\Tests\Caster; +use PHPUnit\Framework\TestCase; use Symfony\Component\VarDumper\Caster\PdoCaster; use Symfony\Component\VarDumper\Cloner\Stub; /** * @author Nicolas Grekas */ -class PdoCasterTest extends \PHPUnit_Framework_TestCase +class PdoCasterTest extends TestCase { /** * @requires extension pdo_sqlite diff --git a/src/Symfony/Component/VarDumper/Tests/HtmlDumperTest.php b/src/Symfony/Component/VarDumper/Tests/HtmlDumperTest.php index e6fd489448bd..c3a8e1a6c948 100644 --- a/src/Symfony/Component/VarDumper/Tests/HtmlDumperTest.php +++ b/src/Symfony/Component/VarDumper/Tests/HtmlDumperTest.php @@ -11,13 +11,14 @@ namespace Symfony\Component\VarDumper\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\VarDumper\Cloner\VarCloner; use Symfony\Component\VarDumper\Dumper\HtmlDumper; /** * @author Nicolas Grekas */ -class HtmlDumperTest extends \PHPUnit_Framework_TestCase +class HtmlDumperTest extends TestCase { public function testGet() { diff --git a/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php b/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php index 9f60032e0c62..8ca59bdddfe7 100644 --- a/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php +++ b/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php @@ -11,12 +11,13 @@ namespace Symfony\Component\VarDumper\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\VarDumper\Cloner\VarCloner; /** * @author Nicolas Grekas */ -class VarClonerTest extends \PHPUnit_Framework_TestCase +class VarClonerTest extends TestCase { public function testMaxIntBoundary() { diff --git a/src/Symfony/Component/Yaml/Tests/DumperTest.php b/src/Symfony/Component/Yaml/Tests/DumperTest.php index 84069d8aef9f..c27ac5cc5c70 100644 --- a/src/Symfony/Component/Yaml/Tests/DumperTest.php +++ b/src/Symfony/Component/Yaml/Tests/DumperTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Yaml\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Yaml\Parser; use Symfony\Component\Yaml\Dumper; -class DumperTest extends \PHPUnit_Framework_TestCase +class DumperTest extends TestCase { protected $parser; protected $dumper; diff --git a/src/Symfony/Component/Yaml/Tests/InlineTest.php b/src/Symfony/Component/Yaml/Tests/InlineTest.php index 56966bacd333..b25b6015f130 100644 --- a/src/Symfony/Component/Yaml/Tests/InlineTest.php +++ b/src/Symfony/Component/Yaml/Tests/InlineTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Yaml\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Yaml\Inline; -class InlineTest extends \PHPUnit_Framework_TestCase +class InlineTest extends TestCase { /** * @dataProvider getTestsForParse diff --git a/src/Symfony/Component/Yaml/Tests/ParseExceptionTest.php b/src/Symfony/Component/Yaml/Tests/ParseExceptionTest.php index e4eb9c98a15d..4f01ab938e50 100644 --- a/src/Symfony/Component/Yaml/Tests/ParseExceptionTest.php +++ b/src/Symfony/Component/Yaml/Tests/ParseExceptionTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Yaml\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Yaml\Exception\ParseException; -class ParseExceptionTest extends \PHPUnit_Framework_TestCase +class ParseExceptionTest extends TestCase { public function testGetMessage() { diff --git a/src/Symfony/Component/Yaml/Tests/ParserTest.php b/src/Symfony/Component/Yaml/Tests/ParserTest.php index e1e0d5a61419..7e353b4e34be 100644 --- a/src/Symfony/Component/Yaml/Tests/ParserTest.php +++ b/src/Symfony/Component/Yaml/Tests/ParserTest.php @@ -11,10 +11,11 @@ namespace Symfony\Component\Yaml\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Yaml\Yaml; use Symfony\Component\Yaml\Parser; -class ParserTest extends \PHPUnit_Framework_TestCase +class ParserTest extends TestCase { protected $parser; diff --git a/src/Symfony/Component/Yaml/Tests/YamlTest.php b/src/Symfony/Component/Yaml/Tests/YamlTest.php index 883ee835a096..9e776ca497c0 100644 --- a/src/Symfony/Component/Yaml/Tests/YamlTest.php +++ b/src/Symfony/Component/Yaml/Tests/YamlTest.php @@ -11,9 +11,10 @@ namespace Symfony\Component\Yaml\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Component\Yaml\Yaml; -class YamlTest extends \PHPUnit_Framework_TestCase +class YamlTest extends TestCase { public function testParseAndDump() {