From a3eb47f1bddb37ae3be4f8c2e7f820948ada5af0 Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Wed, 8 Feb 2017 08:24:27 +0100 Subject: [PATCH 01/10] Update to PHPUnit namespaces --- composer.json | 3 +++ phpunit | 2 +- src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index c88ca4563c73e..7c81a0efff6fd 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.0 <=5.4.2" + }, "replace": { "symfony/asset": "self.version", "symfony/browser-kit": "self.version", diff --git a/phpunit b/phpunit index 1e79197e316d3..07c45b759d889 100755 --- a/phpunit +++ b/phpunit @@ -1,7 +1,7 @@ #!/usr/bin/env php */ -abstract class KernelTestCase extends \PHPUnit_Framework_TestCase +abstract class KernelTestCase extends TestCase { protected static $class; From 5aa18fc4dad990e85d5973616224d6ac4a1af75f Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Wed, 8 Feb 2017 11:14:39 +0100 Subject: [PATCH 02/10] Updated all bridges to the namespaced TestCase --- src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php | 3 ++- .../Bridge/Doctrine/Tests/ContainerAwareEventManagerTest.php | 3 ++- .../Tests/DataCollector/DoctrineDataCollectorTest.php | 3 ++- .../Doctrine/Tests/DataFixtures/ContainerAwareLoaderTest.php | 3 ++- .../RegisterEventListenersAndSubscribersPassTest.php | 3 ++- .../Tests/DependencyInjection/DoctrineExtensionTest.php | 3 ++- src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php | 3 ++- .../Tests/ExpressionLanguage/DoctrineParserCacheTest.php | 3 ++- .../Tests/Form/ChoiceList/DoctrineChoiceLoaderTest.php | 3 ++- .../Tests/Form/ChoiceList/GenericEntityChoiceListTest.php | 3 ++- .../Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php | 3 ++- .../DataTransformer/CollectionToArrayTransformerTest.php | 3 ++- .../Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php | 3 ++- .../Doctrine/Tests/HttpFoundation/DbalSessionHandlerTest.php | 3 ++- src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php | 3 ++- .../Doctrine/Tests/Security/User/EntityUserProviderTest.php | 3 ++- .../Bridge/Monolog/Tests/Handler/ConsoleHandlerTest.php | 3 ++- .../FingersCrossed/NotFoundActivationStrategyTest.php | 5 +++-- src/Symfony/Bridge/Monolog/Tests/LoggerTest.php | 3 ++- .../Bridge/Monolog/Tests/Processor/WebProcessorTest.php | 3 ++- .../ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php | 3 ++- .../ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php | 3 ++- .../Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php | 3 ++- .../Tests/LazyProxy/PhpDumper/ProxyDumperTest.php | 3 ++- src/Symfony/Bridge/Twig/Tests/AppVariableTest.php | 3 ++- src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php | 3 ++- .../Bridge/Twig/Tests/Extension/AssetExtensionTest.php | 3 ++- .../Bridge/Twig/Tests/Extension/CodeExtensionTest.php | 3 ++- .../Bridge/Twig/Tests/Extension/DumpExtensionTest.php | 3 ++- .../Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php | 3 ++- .../Twig/Tests/Extension/HttpFoundationExtensionTest.php | 3 ++- .../Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php | 3 ++- .../Bridge/Twig/Tests/Extension/RoutingExtensionTest.php | 3 ++- .../Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php | 3 ++- .../Bridge/Twig/Tests/Extension/TranslationExtensionTest.php | 3 ++- src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php | 3 ++- src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php | 3 ++- .../Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php | 3 ++- src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php | 3 ++- src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php | 3 ++- .../NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php | 3 ++- .../Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php | 3 ++- .../Twig/Tests/TokenParser/FormThemeTokenParserTest.php | 3 ++- .../Bridge/Twig/Tests/Translation/TwigExtractorTest.php | 3 ++- src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php | 3 ++- 45 files changed, 91 insertions(+), 46 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php b/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php index 962099e36a7bc..1a97922b05f8b 100644 --- a/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php +++ b/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php @@ -14,6 +14,7 @@ use Doctrine\Common\Annotations\AnnotationReader; use Doctrine\ORM\Mapping\Driver\AnnotationDriver; use Doctrine\ORM\EntityManager; +use PHPUnit\Framework\TestCase; /** * Provides utility functions needed in tests. @@ -30,7 +31,7 @@ class DoctrineTestHelper public static function createTestEntityManager() { if (!extension_loaded('pdo_sqlite')) { - \PHPUnit_Framework_TestCase::markTestSkipped('Extension pdo_sqlite is required.'); + TestCase::markTestSkipped('Extension pdo_sqlite is required.'); } $config = new \Doctrine\ORM\Configuration(); diff --git a/src/Symfony/Bridge/Doctrine/Tests/ContainerAwareEventManagerTest.php b/src/Symfony/Bridge/Doctrine/Tests/ContainerAwareEventManagerTest.php index 55991dbf4f653..f40d1ca710ed1 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/ContainerAwareEventManagerTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/ContainerAwareEventManagerTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bridge\Doctrine\Tests; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\ContainerAwareEventManager; use Symfony\Component\DependencyInjection\Container; -class ContainerAwareEventManagerTest extends \PHPUnit_Framework_TestCase +class ContainerAwareEventManagerTest extends TestCase { private $container; private $evm; diff --git a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php index 6fa34345cd4a3..3059f8aba00a3 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php @@ -12,11 +12,12 @@ namespace Symfony\Bridge\Doctrine\Tests\DataCollector; use Doctrine\DBAL\Platforms\MySqlPlatform; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\DataCollector\DoctrineDataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -class DoctrineDataCollectorTest extends \PHPUnit_Framework_TestCase +class DoctrineDataCollectorTest extends TestCase { public function testCollectConnections() { diff --git a/src/Symfony/Bridge/Doctrine/Tests/DataFixtures/ContainerAwareLoaderTest.php b/src/Symfony/Bridge/Doctrine/Tests/DataFixtures/ContainerAwareLoaderTest.php index 77d89088d2b1e..422c459b46afa 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DataFixtures/ContainerAwareLoaderTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DataFixtures/ContainerAwareLoaderTest.php @@ -11,10 +11,11 @@ namespace Symfony\Bridge\Doctrine\Tests\DataFixtures; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader; use Symfony\Bridge\Doctrine\Tests\Fixtures\ContainerAwareFixture; -class ContainerAwareLoaderTest extends \PHPUnit_Framework_TestCase +class ContainerAwareLoaderTest extends TestCase { public function testShouldSetContainerOnContainerAwareFixture() { diff --git a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php index ba73678541e7e..757fdc07e6f35 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php @@ -11,11 +11,12 @@ namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection\CompilerPass; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterEventListenersAndSubscribersPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; -class RegisterEventListenersAndSubscribersPassTest extends \PHPUnit_Framework_TestCase +class RegisterEventListenersAndSubscribersPassTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php index f917f73eaa15b..6017036f76375 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection; +use Symfony\Bundle\FrameworkBundle\Tests\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; @@ -18,7 +19,7 @@ /** * @author Fabio B. Silva */ -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 283c65ee4d139..567b5a240c300 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 e3d48a703062c..d7abe2c75a54f 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 98583b3bb13b2..5999e8e581000 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 f4530091fbb0b..c976121f684be 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 1f07b8e465db0..b14044fb24804 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 50b9bcd19e172..fa3ff911ad355 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 f6b96bb2005e0..12296729e2d87 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 4f82bc37bbb79..89ac999f20301 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 42f56b0ca83c3..5a627dc23155b 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 cdc553b2f05b9..ef920a1fe097c 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 b8efa6fcf9591..28dd736f9ec31 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 48bddc99a5eef..3c34f065eb038 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 3d3c74cb73dfc..fbf5579e340c4 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 143f63b5371b3..51bddd1d9828c 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/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php index 3f3c577b846df..c037e1cada323 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 5e451c122f3c4..3bebfd575b623 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 12bef7b72dc08..93310c2ed33d2 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 6d86bd24d2d1a..047bf4d24b4d2 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 92ed4600bae1a..cea6fab0e79f3 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 56c03574b6ee6..b936614120b72 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 474d8c33956b7..843069a8f5a07 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 5e4a9a307982d..9a6276fb467cf 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 604b0caaecc8b..58b0b12e63720 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 6d457e395b07e..05b4f97a80b5f 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 339d43d7c6bd1..f77d0809a409d 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 979dae3b0d802..00a73dced5cd6 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 9f06b50ba0514..a11bf2d44142c 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 2ea111b0baacd..005980f3d34b2 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 e96bd4f9a3bef..9ca28a8d25d66 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 8d3ede471c506..79b1cc85b212f 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 02732f1932e82..491b416082475 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 408b7cfd145d5..b7123e5bec707 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 b1980b8a37722..73f9653d1a3cc 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 aa9d204e5606f..bfd39abc741bf 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 86dc25266c72d..5ced9d092902f 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 571b5bba31745..6e4dfd779e587 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 6dea9fd693702..fdf4d2452b249 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 4362e9131acb6..df6a222d14b37 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 b3eebb55c9871..948d58f72e368 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() { From 0d0e886790eacca12a56993baffce166db71c105 Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Wed, 8 Feb 2017 11:25:35 +0100 Subject: [PATCH 03/10] Migrated all Bundles to the namespaces TestCase --- .../Compiler/DumpDataCollectorPassTest.php | 3 ++- .../Tests/DependencyInjection/DebugExtensionTest.php | 3 ++- .../FrameworkBundle/Tests/Command/RouterDebugCommandTest.php | 3 ++- .../FrameworkBundle/Tests/Command/RouterMatchCommandTest.php | 3 ++- .../Tests/Command/TranslationDebugCommandTest.php | 3 ++- .../Tests/Command/TranslationUpdateCommandTest.php | 3 ++- .../Tests/Console/Descriptor/AbstractDescriptorTest.php | 3 ++- .../DependencyInjection/Compiler/AddCacheWarmerPassTest.php | 3 ++- .../Compiler/AddConsoleCommandPassTest.php | 3 ++- .../Compiler/AddConstraintValidatorsPassTest.php | 3 ++- .../Compiler/AddExpressionLanguageProvidersPassTest.php | 3 ++- .../Compiler/LegacyFragmentRendererPassTest.php | 3 ++- .../Compiler/LegacyTemplatingAssetHelperPassTest.php | 3 ++- .../Compiler/LoggingTranslatorPassTest.php | 3 ++- .../Tests/DependencyInjection/Compiler/ProfilerPassTest.php | 3 ++- .../Tests/DependencyInjection/Compiler/SerializerPassTest.php | 3 ++- .../Tests/DependencyInjection/Compiler/TranslatorPassTest.php | 3 ++- .../Tests/DependencyInjection/ConfigurationTest.php | 3 ++- .../Tests/Routing/RedirectableUrlMatcherTest.php | 3 ++- .../Bundle/FrameworkBundle/Tests/Routing/RouterTest.php | 3 ++- .../FrameworkBundle/Tests/Templating/DelegatingEngineTest.php | 3 ++- .../Tests/Templating/Helper/AssetsHelperTest.php | 3 ++- .../Tests/Templating/Helper/RequestHelperTest.php | 3 ++- .../Tests/Templating/Helper/SessionHelperTest.php | 3 ++- .../Tests/Templating/Helper/StopwatchHelperTest.php | 3 ++- src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php | 4 +++- .../FrameworkBundle/Tests/Translation/TranslatorTest.php | 3 ++- .../Tests/Validator/ConstraintValidatorFactoryTest.php | 3 ++- .../Tests/DataCollector/SecurityDataCollectorTest.php | 3 ++- .../Tests/DependencyInjection/CompleteConfigurationTest.php | 3 ++- .../Tests/DependencyInjection/MainConfigurationTest.php | 3 ++- .../Security/Factory/AbstractFactoryTest.php | 3 ++- .../Tests/DependencyInjection/SecurityExtensionTest.php | 3 ++- .../Tests/DependencyInjection/Compiler/ExtensionPassTest.php | 3 ++- .../Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php | 3 ++- .../Tests/DependencyInjection/ConfigurationTest.php | 3 ++- .../Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php | 3 ++- .../TwigBundle/Tests/Functional/NoTemplatingEntryTest.php | 3 ++- src/Symfony/Bundle/TwigBundle/Tests/TestCase.php | 4 +++- .../WebProfilerBundle/Tests/Command/ExportCommandTest.php | 3 ++- .../WebProfilerBundle/Tests/Command/ImportCommandTest.php | 3 ++- .../Tests/Controller/ProfilerControllerTest.php | 3 ++- .../Tests/DependencyInjection/ConfigurationTest.php | 3 ++- .../Tests/EventListener/WebDebugToolbarListenerTest.php | 3 ++- src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php | 4 +++- 45 files changed, 93 insertions(+), 45 deletions(-) diff --git a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php index 6500a85a84302..1a344b0548dc8 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 3efb196cc9a35..5f5e52cd4d585 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/Tests/Command/RouterDebugCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php index aac62095b1a14..ae1fcc8a95da1 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 cb7f698bc664e..5820a857233c0 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 60f81565d36de..1127a082af8d8 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 8690263374e7b..2253423676a34 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 46249c8e7c153..79819020f8c96 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 7ee9aa558e5f6..f9e0ea03a769d 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 97427034f5a8a..d1757de2f5c23 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 88901dda70bd2..4f9a7390e6dcb 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 9bc4acb9c1567..425b7eeb40246 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 e5c6adba8c974..aba463306745f 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 5cc5c9c558bcb..d2914bfd6e66d 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 b71fe0a80766d..37ad05d4aa44c 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 9edb44ebb6e1c..a0a0a57bb9887 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 3e592916a0a2a..1b06a3b2dfc64 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 dcdb0bc5bd377..3592a7215586a 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 16980c76faea1..d483344d78edf 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 057aa6c8091a4..93a9b35b92917 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 d90f5d8358f93..d8e71b652b15b 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 d18427dc4e802..69275c8564bdf 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 9460799684bdd..e3b758fedd815 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 d626e63e41cfa..89fae19c95497 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 5517afdb732fd..49d1c6ff883ef 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 3518267d81b67..2c1216e8074ce 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 8e724305a298a..86a166342fd2b 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 11fe9da001e66..ca664d3c1f674 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 12ee6ac673d97..58b210630f63c 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 c7845959ac42f..f675db45793bc 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 a07b3fc82910a..7c6fddb24d516 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 8d9224673cd77..eb4c9ad553c8d 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 39daf998cb4e7..812ac10baee7d 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 4dd33020c572d..2030b373ef7bd 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 587801d8db622..cc4bb31c6d2d6 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 e8d9476d8dc2b..6886e28c1a141 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 4dfb54eb7687b..394b02faa1e7e 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 5c4126cfe7233..2319090a4e5a2 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\TwigBundle\Tests; +use PhpUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Filesystem\Filesystem; 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 068a10526cb6f..9814e37a373e4 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php @@ -11,13 +11,14 @@ namespace Symfony\Bundle\TwigBundle\Tests; +use PhpUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Filesystem\Filesystem; 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 0c7af8ae4b859..d93fd76a7f189 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 70267ecc9ea09..2f25f455192d2 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 fe3ba421ad645..a5aa0e2d88b74 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 0ae9fa80fc331..22b73fdbefae9 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 5203b9c0ea02d..d83ff28517c37 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 3b27745ddc0f8..c9f5b56021590 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 0c0efeb0e0416..051684b29aa34 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 { } From bc7ce67db88267454b8d3a9fe27d9b1b5f9c97ca Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Wed, 8 Feb 2017 12:19:53 +0100 Subject: [PATCH 04/10] Migrated Components to namespaced TestCase --- .../Tests/LazyProxy/ContainerBuilderTest.php | 2 +- .../Tests/LazyProxy/Dumper/PhpDumperTest.php | 2 +- .../Instantiator/RuntimeInstantiatorTest.php | 2 +- .../Tests/LazyProxy/PhpDumper/ProxyDumperTest.php | 2 +- src/Symfony/Bridge/Twig/Tests/AppVariableTest.php | 2 +- .../Bridge/Twig/Tests/Command/LintCommandTest.php | 2 +- .../Twig/Tests/Extension/AssetExtensionTest.php | 2 +- .../Twig/Tests/Extension/CodeExtensionTest.php | 2 +- .../Twig/Tests/Extension/DumpExtensionTest.php | 2 +- .../Tests/Extension/ExpressionExtensionTest.php | 2 +- .../Extension/HttpFoundationExtensionTest.php | 2 +- .../Tests/Extension/HttpKernelExtensionTest.php | 2 +- .../Twig/Tests/Extension/RoutingExtensionTest.php | 2 +- .../Tests/Extension/StopwatchExtensionTest.php | 2 +- .../Tests/Extension/TranslationExtensionTest.php | 2 +- .../Bridge/Twig/Tests/Node/DumpNodeTest.php | 2 +- .../Bridge/Twig/Tests/Node/FormThemeTest.php | 2 +- .../Tests/Node/SearchAndRenderBlockNodeTest.php | 2 +- .../Bridge/Twig/Tests/Node/TransNodeTest.php | 2 +- .../Bridge/Twig/Tests/NodeVisitor/ScopeTest.php | 2 +- .../TranslationDefaultDomainNodeVisitorTest.php | 2 +- .../NodeVisitor/TranslationNodeVisitorTest.php | 2 +- .../TokenParser/FormThemeTokenParserTest.php | 2 +- .../Twig/Tests/Translation/TwigExtractorTest.php | 2 +- src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php | 2 +- .../Compiler/DumpDataCollectorPassTest.php | 2 +- .../DependencyInjection/DebugExtensionTest.php | 2 +- .../Tests/Command/RouterDebugCommandTest.php | 2 +- .../Tests/Command/RouterMatchCommandTest.php | 2 +- .../Tests/Command/TranslationDebugCommandTest.php | 2 +- .../Command/TranslationUpdateCommandTest.php | 2 +- .../Console/Descriptor/AbstractDescriptorTest.php | 2 +- .../Compiler/AddCacheWarmerPassTest.php | 2 +- .../Compiler/AddConsoleCommandPassTest.php | 2 +- .../Compiler/AddConstraintValidatorsPassTest.php | 2 +- .../AddExpressionLanguageProvidersPassTest.php | 2 +- .../Compiler/LegacyFragmentRendererPassTest.php | 2 +- .../LegacyTemplatingAssetHelperPassTest.php | 2 +- .../Compiler/LoggingTranslatorPassTest.php | 2 +- .../Compiler/ProfilerPassTest.php | 2 +- .../Compiler/SerializerPassTest.php | 2 +- .../Compiler/TranslatorPassTest.php | 2 +- .../DependencyInjection/ConfigurationTest.php | 2 +- .../Tests/Routing/RedirectableUrlMatcherTest.php | 2 +- .../FrameworkBundle/Tests/Routing/RouterTest.php | 2 +- .../Tests/Templating/DelegatingEngineTest.php | 2 +- .../Tests/Templating/Helper/AssetsHelperTest.php | 2 +- .../Tests/Templating/Helper/RequestHelperTest.php | 2 +- .../Tests/Templating/Helper/SessionHelperTest.php | 2 +- .../Templating/Helper/StopwatchHelperTest.php | 2 +- .../Bundle/FrameworkBundle/Tests/TestCase.php | 2 +- .../Tests/Translation/TranslatorTest.php | 2 +- .../Validator/ConstraintValidatorFactoryTest.php | 2 +- .../DataCollector/SecurityDataCollectorTest.php | 2 +- .../CompleteConfigurationTest.php | 2 +- .../DependencyInjection/MainConfigurationTest.php | 2 +- .../Security/Factory/AbstractFactoryTest.php | 2 +- .../DependencyInjection/SecurityExtensionTest.php | 2 +- .../Compiler/ExtensionPassTest.php | 2 +- .../Compiler/TwigLoaderPassTest.php | 2 +- .../DependencyInjection/ConfigurationTest.php | 2 +- .../Tests/Functional/CacheWarmingTest.php | 2 +- .../Tests/Functional/NoTemplatingEntryTest.php | 2 +- src/Symfony/Bundle/TwigBundle/Tests/TestCase.php | 2 +- .../Tests/Command/ExportCommandTest.php | 2 +- .../Tests/Command/ImportCommandTest.php | 2 +- .../Tests/Controller/ProfilerControllerTest.php | 2 +- .../DependencyInjection/ConfigurationTest.php | 2 +- .../EventListener/WebDebugToolbarListenerTest.php | 2 +- .../Bundle/WebProfilerBundle/Tests/TestCase.php | 2 +- .../Asset/Tests/Context/NullContextTest.php | 3 ++- .../Tests/Context/RequestStackContextTest.php | 3 ++- src/Symfony/Component/Asset/Tests/PackageTest.php | 3 ++- .../Component/Asset/Tests/PackagesTest.php | 3 ++- .../Component/Asset/Tests/PathPackageTest.php | 3 ++- .../Component/Asset/Tests/UrlPackageTest.php | 3 ++- .../VersionStrategy/EmptyVersionStrategyTest.php | 3 ++- .../VersionStrategy/StaticVersionStrategyTest.php | 3 ++- .../Component/BrowserKit/Tests/ClientTest.php | 3 ++- .../Component/BrowserKit/Tests/CookieJarTest.php | 3 ++- .../Component/BrowserKit/Tests/CookieTest.php | 3 ++- .../Component/BrowserKit/Tests/HistoryTest.php | 3 ++- .../Component/BrowserKit/Tests/RequestTest.php | 3 ++- .../Component/BrowserKit/Tests/ResponseTest.php | 3 ++- .../ClassLoader/Tests/ApcClassLoaderTest.php | 3 ++- .../Tests/ClassCollectionLoaderTest.php | 3 ++- .../ClassLoader/Tests/ClassLoaderTest.php | 3 ++- .../ClassLoader/Tests/ClassMapGeneratorTest.php | 3 ++- .../Tests/LegacyApcUniversalClassLoaderTest.php | 3 ++- .../Tests/LegacyUniversalClassLoaderTest.php | 3 ++- .../ClassLoader/Tests/Psr4ClassLoaderTest.php | 3 ++- .../Config/Tests/ConfigCacheFactoryTest.php | 3 ++- .../Component/Config/Tests/ConfigCacheTest.php | 3 ++- .../Config/Tests/Definition/ArrayNodeTest.php | 3 ++- .../Config/Tests/Definition/BooleanNodeTest.php | 3 ++- .../Builder/ArrayNodeDefinitionTest.php | 3 ++- .../Definition/Builder/EnumNodeDefinitionTest.php | 3 ++- .../Tests/Definition/Builder/ExprBuilderTest.php | 3 ++- .../Tests/Definition/Builder/NodeBuilderTest.php | 3 ++- .../Builder/NumericNodeDefinitionTest.php | 3 ++- .../Tests/Definition/Builder/TreeBuilderTest.php | 3 ++- .../Definition/Dumper/XmlReferenceDumperTest.php | 3 ++- .../Definition/Dumper/YamlReferenceDumperTest.php | 3 ++- .../Config/Tests/Definition/EnumNodeTest.php | 3 ++- .../Config/Tests/Definition/FinalizationTest.php | 3 ++- .../Config/Tests/Definition/FloatNodeTest.php | 3 ++- .../Config/Tests/Definition/IntegerNodeTest.php | 3 ++- .../Config/Tests/Definition/MergeTest.php | 3 ++- .../Config/Tests/Definition/NormalizationTest.php | 3 ++- .../Tests/Definition/PrototypedArrayNodeTest.php | 3 ++- .../Config/Tests/Definition/ScalarNodeTest.php | 3 ++- .../Exception/FileLoaderLoadExceptionTest.php | 3 ++- .../Component/Config/Tests/FileLocatorTest.php | 3 ++- .../Config/Tests/Loader/DelegatingLoaderTest.php | 3 ++- .../Config/Tests/Loader/FileLoaderTest.php | 3 ++- .../Config/Tests/Loader/LoaderResolverTest.php | 3 ++- .../Component/Config/Tests/Loader/LoaderTest.php | 3 ++- .../Tests/Resource/DirectoryResourceTest.php | 3 ++- .../Config/Tests/Resource/FileResourceTest.php | 3 ++- .../Component/Config/Tests/Util/XmlUtilsTest.php | 3 ++- .../Component/Console/Tests/ApplicationTest.php | 3 ++- .../Console/Tests/Command/CommandTest.php | 3 ++- .../Console/Tests/Command/HelpCommandTest.php | 3 ++- .../Console/Tests/Command/ListCommandTest.php | 3 ++- .../Tests/Descriptor/AbstractDescriptorTest.php | 3 ++- .../Formatter/OutputFormatterStyleStackTest.php | 3 ++- .../Tests/Formatter/OutputFormatterStyleTest.php | 3 ++- .../Tests/Formatter/OutputFormatterTest.php | 3 ++- .../Console/Tests/Helper/FormatterHelperTest.php | 3 ++- .../Console/Tests/Helper/HelperSetTest.php | 3 ++- .../Component/Console/Tests/Helper/HelperTest.php | 3 ++- .../Tests/Helper/LegacyDialogHelperTest.php | 3 ++- .../Tests/Helper/LegacyProgressHelperTest.php | 3 ++- .../Tests/Helper/LegacyTableHelperTest.php | 3 ++- .../Console/Tests/Helper/ProcessHelperTest.php | 3 ++- .../Console/Tests/Helper/ProgressBarTest.php | 3 ++- .../Console/Tests/Helper/QuestionHelperTest.php | 3 ++- .../Tests/Helper/SymfonyQuestionHelperTest.php | 3 ++- .../Console/Tests/Helper/TableStyleTest.php | 3 ++- .../Component/Console/Tests/Helper/TableTest.php | 3 ++- .../Console/Tests/Input/ArgvInputTest.php | 3 ++- .../Console/Tests/Input/ArrayInputTest.php | 3 ++- .../Console/Tests/Input/InputArgumentTest.php | 3 ++- .../Console/Tests/Input/InputDefinitionTest.php | 3 ++- .../Console/Tests/Input/InputOptionTest.php | 3 ++- .../Component/Console/Tests/Input/InputTest.php | 3 ++- .../Console/Tests/Input/StringInputTest.php | 3 ++- .../Console/Tests/Output/ConsoleOutputTest.php | 3 ++- .../Console/Tests/Output/NullOutputTest.php | 3 ++- .../Component/Console/Tests/Output/OutputTest.php | 3 ++- .../Console/Tests/Output/StreamOutputTest.php | 3 ++- .../Console/Tests/Style/SymfonyStyleTest.php | 4 ++-- .../Tests/Tester/ApplicationTesterTest.php | 3 ++- .../Console/Tests/Tester/CommandTesterTest.php | 3 ++- .../CssSelector/Tests/CssSelectorTest.php | 3 ++- .../CssSelector/Tests/Node/AbstractNodeTest.php | 3 ++- .../CssSelector/Tests/Node/SpecificityTest.php | 3 ++- .../Tests/Parser/Handler/AbstractHandlerTest.php | 3 ++- .../CssSelector/Tests/Parser/ParserTest.php | 3 ++- .../CssSelector/Tests/Parser/ReaderTest.php | 3 ++- .../Tests/Parser/Shortcut/ClassParserTest.php | 3 ++- .../Tests/Parser/Shortcut/ElementParserTest.php | 3 ++- .../Parser/Shortcut/EmptyStringParserTest.php | 3 ++- .../Tests/Parser/Shortcut/HashParserTest.php | 3 ++- .../CssSelector/Tests/Parser/TokenStreamTest.php | 3 ++- .../CssSelector/Tests/XPath/TranslatorTest.php | 3 ++- .../Debug/Tests/DebugClassLoaderTest.php | 3 ++- .../Component/Debug/Tests/ErrorHandlerTest.php | 3 ++- .../Tests/Exception/FlattenExceptionTest.php | 3 ++- .../Debug/Tests/ExceptionHandlerTest.php | 3 ++- .../ClassNotFoundFatalErrorHandlerTest.php | 3 ++- .../UndefinedFunctionFatalErrorHandlerTest.php | 3 ++- .../UndefinedMethodFatalErrorHandlerTest.php | 3 ++- .../Compiler/AnalyzeServiceReferencesPassTest.php | 3 ++- .../Tests/Compiler/AutoAliasServicePassTest.php | 3 ++- .../Compiler/CheckCircularReferencesPassTest.php | 3 ++- .../Compiler/CheckDefinitionValidityPassTest.php | 3 ++- ...xceptionOnInvalidReferenceBehaviorPassTest.php | 3 ++- .../Compiler/CheckReferenceValidityPassTest.php | 3 ++- .../Tests/Compiler/DecoratorServicePassTest.php | 3 ++- .../Tests/Compiler/ExtensionCompilerPassTest.php | 3 ++- .../Compiler/InlineServiceDefinitionsPassTest.php | 3 ++- .../Tests/Compiler/IntegrationTest.php | 3 ++- ...LegacyResolveParameterPlaceHoldersPassTest.php | 3 ++- .../MergeExtensionConfigurationPassTest.php | 3 ++- .../Compiler/RemoveUnusedDefinitionsPassTest.php | 3 ++- .../ReplaceAliasByActualDefinitionPassTest.php | 3 ++- .../ResolveDefinitionTemplatesPassTest.php | 3 ++- .../Compiler/ResolveInvalidReferencesPassTest.php | 3 ++- .../ResolveParameterPlaceHoldersPassTest.php | 3 ++- .../ResolveReferencesToAliasesPassTest.php | 3 ++- .../Tests/ContainerBuilderTest.php | 3 ++- .../DependencyInjection/Tests/ContainerTest.php | 3 ++- .../DependencyInjection/Tests/CrossCheckTest.php | 3 ++- .../Tests/DefinitionDecoratorTest.php | 3 ++- .../DependencyInjection/Tests/DefinitionTest.php | 3 ++- .../Tests/Dumper/GraphvizDumperTest.php | 3 ++- .../Tests/Dumper/PhpDumperTest.php | 3 ++- .../Tests/Dumper/XmlDumperTest.php | 3 ++- .../Tests/Dumper/YamlDumperTest.php | 3 ++- .../Tests/Extension/ExtensionTest.php | 4 +++- .../Instantiator/RealServiceInstantiatorTest.php | 3 ++- .../Tests/LazyProxy/PhpDumper/NullDumperTest.php | 3 ++- .../Tests/LegacyContainerBuilderTest.php | 3 ++- .../Tests/LegacyDefinitionTest.php | 3 ++- .../Tests/Loader/ClosureLoaderTest.php | 3 ++- .../Tests/Loader/IniFileLoaderTest.php | 3 ++- .../Tests/Loader/PhpFileLoaderTest.php | 3 ++- .../Tests/Loader/XmlFileLoaderTest.php | 3 ++- .../Tests/Loader/YamlFileLoaderTest.php | 3 ++- .../Tests/ParameterBag/FrozenParameterBagTest.php | 3 ++- .../Tests/ParameterBag/ParameterBagTest.php | 3 ++- .../DependencyInjection/Tests/ParameterTest.php | 3 ++- .../DependencyInjection/Tests/ReferenceTest.php | 3 ++- .../Component/DomCrawler/Tests/CrawlerTest.php | 3 ++- .../DomCrawler/Tests/Field/FormFieldTestCase.php | 4 +++- .../Component/DomCrawler/Tests/FormTest.php | 3 ++- .../Component/DomCrawler/Tests/LinkTest.php | 3 ++- .../Tests/AbstractEventDispatcherTest.php | 3 ++- .../Tests/Debug/TraceableEventDispatcherTest.php | 3 ++- .../RegisterListenersPassTest.php | 3 ++- .../Component/EventDispatcher/Tests/EventTest.php | 3 ++- .../EventDispatcher/Tests/GenericEventTest.php | 3 ++- .../Tests/ImmutableEventDispatcherTest.php | 3 ++- .../Tests/ExpressionLanguageTest.php | 3 ++- .../ExpressionLanguage/Tests/ExpressionTest.php | 3 ++- .../ExpressionLanguage/Tests/LexerTest.php | 3 ++- .../Tests/Node/AbstractNodeTest.php | 3 ++- .../ExpressionLanguage/Tests/Node/NodeTest.php | 3 ++- .../Tests/ParsedExpressionTest.php | 3 ++- .../ExpressionLanguage/Tests/ParserTest.php | 3 ++- .../Component/Filesystem/Tests/ExceptionTest.php | 3 ++- .../Filesystem/Tests/FilesystemTestCase.php | 3 ++- .../Filesystem/Tests/LockHandlerTest.php | 3 ++- .../Finder/Tests/Comparator/ComparatorTest.php | 3 ++- .../Tests/Comparator/DateComparatorTest.php | 3 ++- .../Tests/Comparator/NumberComparatorTest.php | 3 ++- .../Finder/Tests/Expression/ExpressionTest.php | 3 ++- .../Finder/Tests/Expression/GlobTest.php | 3 ++- .../Finder/Tests/Expression/RegexTest.php | 3 ++- src/Symfony/Component/Finder/Tests/GlobTest.php | 3 ++- .../Finder/Tests/Iterator/IteratorTestCase.php | 4 +++- .../Iterator/MultiplePcreFilterIteratorTest.php | 3 ++- .../Component/Finder/Tests/Shell/CommandTest.php | 3 ++- .../Form/Test/FormIntegrationTestCase.php | 3 ++- .../Form/Tests/AbstractExtensionTest.php | 3 ++- .../Component/Form/Tests/AbstractFormTest.php | 3 ++- .../Form/Tests/AbstractRequestHandlerTest.php | 3 ++- .../Component/Form/Tests/ButtonBuilderTest.php | 3 ++- src/Symfony/Component/Form/Tests/ButtonTest.php | 3 ++- .../Form/Tests/CallbackTransformerTest.php | 3 ++- .../Tests/ChoiceList/AbstractChoiceListTest.php | 4 +++- .../Factory/CachingFactoryDecoratorTest.php | 3 ++- .../Factory/DefaultChoiceListFactoryTest.php | 3 ++- .../Factory/PropertyAccessDecoratorTest.php | 3 ++- .../Form/Tests/ChoiceList/LazyChoiceListTest.php | 3 ++- .../ChoiceList/LegacyChoiceListAdapterTest.php | 3 ++- .../Component/Form/Tests/CompoundFormTest.php | 2 +- .../Core/ChoiceList/AbstractChoiceListTest.php | 4 +++- .../Core/ChoiceList/LazyChoiceListTest.php | 3 ++- .../Core/DataMapper/PropertyPathMapperTest.php | 3 ++- .../ArrayToPartsTransformerTest.php | 3 ++- .../BaseDateTimeTransformerTest.php | 4 +++- .../BooleanToStringTransformerTest.php | 3 ++- .../ChoiceToValueTransformerTest.php | 3 ++- .../ChoicesToValuesTransformerTest.php | 3 ++- .../DataTransformer/DataTransformerChainTest.php | 3 ++- .../Core/DataTransformer/DateTimeTestCase.php | 4 +++- .../IntegerToLocalizedStringTransformerTest.php | 3 ++- .../MoneyToLocalizedStringTransformerTest.php | 3 ++- .../NumberToLocalizedStringTransformerTest.php | 3 ++- .../PercentToLocalizedStringTransformerTest.php | 3 ++- .../ValueToDuplicatesTransformerTest.php | 3 ++- .../EventListener/FixRadioInputListenerTest.php | 3 ++- .../EventListener/FixUrlProtocolListenerTest.php | 3 ++- .../EventListener/MergeCollectionListenerTest.php | 3 ++- .../Core/EventListener/ResizeFormListenerTest.php | 3 ++- .../Core/EventListener/TrimListenerTest.php | 3 ++- .../LegacyDefaultCsrfProviderTest.php | 3 ++- .../LegacySessionCsrfProviderTest.php | 3 ++- .../EventListener/CsrfValidationListenerTest.php | 3 ++- .../DataCollector/DataCollectorExtensionTest.php | 3 ++- .../DataCollector/FormDataCollectorTest.php | 3 ++- .../DataCollector/FormDataExtractorTest.php | 3 ++- .../Type/DataCollectorTypeExtensionTest.php | 3 ++- .../LegacyBindRequestListenerTest.php | 3 ++- .../EventListener/ValidationListenerTest.php | 3 ++- .../Extension/Validator/Util/ServerParamsTest.php | 3 ++- .../Validator/ValidatorExtensionTest.php | 3 ++- .../Validator/ValidatorTypeGuesserTest.php | 3 ++- .../ViolationMapper/ViolationMapperTest.php | 3 ++- .../ViolationMapper/ViolationPathTest.php | 3 ++- .../Component/Form/Tests/FormBuilderTest.php | 3 ++- .../Component/Form/Tests/FormConfigTest.php | 3 ++- .../Form/Tests/FormFactoryBuilderTest.php | 3 ++- .../Component/Form/Tests/FormFactoryTest.php | 3 ++- .../Component/Form/Tests/FormRegistryTest.php | 3 ++- .../Component/Form/Tests/FormRendererTest.php | 4 +++- .../Component/Form/Tests/Guess/GuessTest.php | 3 ++- .../Component/Form/Tests/ResolvedFormTypeTest.php | 11 ++++++----- .../Form/Tests/Resources/TranslationFilesTest.php | 4 +++- .../Form/Tests/Util/OrderedHashMapTest.php | 3 ++- .../HttpFoundation/Tests/AcceptHeaderItemTest.php | 3 ++- .../HttpFoundation/Tests/AcceptHeaderTest.php | 3 ++- .../HttpFoundation/Tests/ApacheRequestTest.php | 3 ++- .../Component/HttpFoundation/Tests/CookieTest.php | 3 ++- .../Tests/ExpressionRequestMatcherTest.php | 3 ++- .../HttpFoundation/Tests/File/FileTest.php | 3 ++- .../Tests/File/MimeType/MimeTypeTest.php | 3 ++- .../Tests/File/UploadedFileTest.php | 3 ++- .../HttpFoundation/Tests/FileBagTest.php | 3 ++- .../HttpFoundation/Tests/HeaderBagTest.php | 3 ++- .../HttpFoundation/Tests/IpUtilsTest.php | 3 ++- .../HttpFoundation/Tests/JsonResponseTest.php | 3 ++- .../HttpFoundation/Tests/ParameterBagTest.php | 3 ++- .../HttpFoundation/Tests/RedirectResponseTest.php | 3 ++- .../HttpFoundation/Tests/RequestMatcherTest.php | 3 ++- .../HttpFoundation/Tests/RequestStackTest.php | 3 ++- .../HttpFoundation/Tests/RequestTest.php | 3 ++- .../Tests/ResponseHeaderBagTest.php | 3 ++- .../HttpFoundation/Tests/ResponseTestCase.php | 3 ++- .../HttpFoundation/Tests/ServerBagTest.php | 3 ++- .../Tests/Session/Attribute/AttributeBagTest.php | 3 ++- .../Attribute/NamespacedAttributeBagTest.php | 3 ++- .../Session/Flash/AutoExpireFlashBagTest.php | 3 ++- .../Tests/Session/Flash/FlashBagTest.php | 3 ++- .../HttpFoundation/Tests/Session/SessionTest.php | 3 ++- .../Handler/LegacyPdoSessionHandlerTest.php | 3 ++- .../Handler/MemcacheSessionHandlerTest.php | 3 ++- .../Handler/MemcachedSessionHandlerTest.php | 3 ++- .../Storage/Handler/MongoDbSessionHandlerTest.php | 3 ++- .../Handler/NativeFileSessionHandlerTest.php | 3 ++- .../Storage/Handler/NativeSessionHandlerTest.php | 3 ++- .../Storage/Handler/NullSessionHandlerTest.php | 3 ++- .../Storage/Handler/PdoSessionHandlerTest.php | 3 ++- .../Handler/WriteCheckSessionHandlerTest.php | 3 ++- .../Tests/Session/Storage/MetadataBagTest.php | 3 ++- .../Storage/MockArraySessionStorageTest.php | 3 ++- .../Storage/MockFileSessionStorageTest.php | 3 ++- .../Session/Storage/NativeSessionStorageTest.php | 3 ++- .../Storage/PhpBridgeSessionStorageTest.php | 3 ++- .../Session/Storage/Proxy/AbstractProxyTest.php | 3 ++- .../Session/Storage/Proxy/NativeProxyTest.php | 3 ++- .../Storage/Proxy/SessionHandlerProxyTest.php | 3 ++- .../HttpFoundation/Tests/StreamedResponseTest.php | 3 ++- .../HttpKernel/Tests/Bundle/BundleTest.php | 3 ++- .../Tests/CacheClearer/ChainCacheClearerTest.php | 3 ++- .../CacheWarmer/CacheWarmerAggregateTest.php | 3 ++- .../Tests/CacheWarmer/CacheWarmerTest.php | 3 ++- .../Component/HttpKernel/Tests/ClientTest.php | 3 ++- .../Tests/Config/EnvParametersResourceTest.php | 3 ++- .../HttpKernel/Tests/Config/FileLocatorTest.php | 3 ++- .../Tests/Controller/ControllerResolverTest.php | 3 ++- .../DataCollector/ConfigDataCollectorTest.php | 3 ++- .../Tests/DataCollector/DumpDataCollectorTest.php | 3 ++- .../DataCollector/ExceptionDataCollectorTest.php | 3 ++- .../DataCollector/LoggerDataCollectorTest.php | 3 ++- .../DataCollector/MemoryDataCollectorTest.php | 3 ++- .../DataCollector/RequestDataCollectorTest.php | 3 ++- .../Tests/DataCollector/TimeDataCollectorTest.php | 3 ++- .../DataCollector/Util/ValueExporterTest.php | 3 ++- .../Tests/Debug/TraceableEventDispatcherTest.php | 3 ++- .../ContainerAwareHttpKernelTest.php | 3 ++- .../FragmentRendererPassTest.php | 3 ++- .../LazyLoadingFragmentHandlerTest.php | 3 ++- .../MergeExtensionConfigurationPassTest.php | 3 ++- .../AddRequestFormatsListenerTest.php | 3 ++- .../EventListener/DebugHandlersListenerTest.php | 3 ++- .../Tests/EventListener/DumpListenerTest.php | 3 ++- .../Tests/EventListener/ExceptionListenerTest.php | 3 ++- .../Tests/EventListener/FragmentListenerTest.php | 3 ++- .../Tests/EventListener/LocaleListenerTest.php | 3 ++- .../Tests/EventListener/ProfilerListenerTest.php | 3 ++- .../Tests/EventListener/ResponseListenerTest.php | 3 ++- .../Tests/EventListener/RouterListenerTest.php | 3 ++- .../Tests/EventListener/SurrogateListenerTest.php | 3 ++- .../EventListener/TestSessionListenerTest.php | 3 ++- .../EventListener/TranslatorListenerTest.php | 3 ++- .../EventListener/ValidateRequestListenerTest.php | 3 ++- .../Tests/Fragment/EsiFragmentRendererTest.php | 3 ++- .../Tests/Fragment/FragmentHandlerTest.php | 3 ++- .../Fragment/HIncludeFragmentRendererTest.php | 3 ++- .../Tests/Fragment/InlineFragmentRendererTest.php | 3 ++- .../Fragment/RoutableFragmentRendererTest.php | 3 ++- .../Tests/Fragment/SsiFragmentRendererTest.php | 3 ++- .../HttpKernel/Tests/HttpCache/EsiTest.php | 3 ++- .../Tests/HttpCache/HttpCacheTestCase.php | 3 ++- .../Tests/HttpCache/ResponseCacheStrategyTest.php | 3 ++- .../HttpKernel/Tests/HttpCache/SsiTest.php | 3 ++- .../HttpKernel/Tests/HttpCache/StoreTest.php | 3 ++- .../Component/HttpKernel/Tests/HttpKernelTest.php | 3 ++- .../Component/HttpKernel/Tests/KernelTest.php | 3 ++- .../Profiler/AbstractProfilerStorageTest.php | 3 ++- .../HttpKernel/Tests/Profiler/ProfilerTest.php | 3 ++- .../Component/HttpKernel/Tests/UriSignerTest.php | 3 ++- .../Intl/Tests/Collator/AbstractCollatorTest.php | 3 ++- .../Data/Bundle/Reader/BundleEntryReaderTest.php | 3 ++- .../Data/Bundle/Reader/IntlBundleReaderTest.php | 3 ++- .../Data/Bundle/Reader/JsonBundleReaderTest.php | 3 ++- .../Data/Bundle/Reader/PhpBundleReaderTest.php | 3 ++- .../Data/Bundle/Writer/JsonBundleWriterTest.php | 3 ++- .../Data/Bundle/Writer/PhpBundleWriterTest.php | 3 ++- .../Data/Bundle/Writer/TextBundleWriterTest.php | 3 ++- .../Data/Provider/AbstractDataProviderTest.php | 3 ++- .../Intl/Tests/Data/Util/LocaleScannerTest.php | 3 ++- .../Intl/Tests/Data/Util/RingBufferTest.php | 3 ++- .../AbstractIntlDateFormatterTest.php | 3 ++- .../Tests/Globals/AbstractIntlGlobalsTest.php | 4 +++- .../Intl/Tests/Locale/AbstractLocaleTest.php | 4 +++- .../AbstractNumberFormatterTest.php | 3 ++- .../Component/Intl/Tests/Util/IcuVersionTest.php | 3 ++- .../Component/Intl/Tests/Util/VersionTest.php | 3 ++- .../Component/Intl/Util/IntlTestHelper.php | 9 +++++---- src/Symfony/Component/Locale/Tests/LocaleTest.php | 3 ++- .../Locale/Tests/Stub/StubLocaleTest.php | 3 ++- .../Tests/LegacyOptionsResolverTest.php | 9 +++++---- .../OptionsResolver/Tests/LegacyOptionsTest.php | 15 ++++++++------- .../Tests/OptionsResolver2Dot6Test.php | 7 ++++--- .../Process/Tests/ExecutableFinderTest.php | 3 ++- .../Process/Tests/PhpExecutableFinderTest.php | 3 ++- .../Component/Process/Tests/PhpProcessTest.php | 3 ++- .../Process/Tests/ProcessBuilderTest.php | 3 ++- .../Process/Tests/ProcessFailedExceptionTest.php | 3 ++- .../Component/Process/Tests/ProcessTest.php | 3 ++- .../Component/Process/Tests/ProcessUtilsTest.php | 3 ++- .../Tests/PropertyAccessorArrayAccessTest.php | 3 ++- .../Tests/PropertyAccessorBuilderTest.php | 3 ++- .../PropertyAccess/Tests/PropertyAccessorTest.php | 3 ++- .../Tests/PropertyPathBuilderTest.php | 3 ++- .../PropertyAccess/Tests/PropertyPathTest.php | 3 ++- .../PropertyAccess/Tests/StringUtilTest.php | 3 ++- .../Routing/Tests/Annotation/RouteTest.php | 3 ++- .../Component/Routing/Tests/CompiledRouteTest.php | 3 ++- .../Generator/Dumper/PhpGeneratorDumperTest.php | 3 ++- .../Routing/Tests/Generator/UrlGeneratorTest.php | 3 ++- .../Tests/Loader/AbstractAnnotationLoaderTest.php | 4 +++- .../Routing/Tests/Loader/ClosureLoaderTest.php | 3 ++- .../Routing/Tests/Loader/PhpFileLoaderTest.php | 3 ++- .../Routing/Tests/Loader/XmlFileLoaderTest.php | 3 ++- .../Routing/Tests/Loader/YamlFileLoaderTest.php | 3 ++- .../Tests/Matcher/Dumper/DumperCollectionTest.php | 3 ++- .../Matcher/Dumper/DumperPrefixCollectionTest.php | 3 ++- .../Dumper/LegacyApacheMatcherDumperTest.php | 3 ++- .../Tests/Matcher/Dumper/PhpMatcherDumperTest.php | 3 ++- .../Tests/Matcher/LegacyApacheUrlMatcherTest.php | 3 ++- .../Tests/Matcher/RedirectableUrlMatcherTest.php | 3 ++- .../Tests/Matcher/TraceableUrlMatcherTest.php | 3 ++- .../Routing/Tests/Matcher/UrlMatcherTest.php | 3 ++- .../Routing/Tests/RequestContextTest.php | 3 ++- .../Routing/Tests/RouteCollectionTest.php | 3 ++- .../Component/Routing/Tests/RouteCompilerTest.php | 3 ++- src/Symfony/Component/Routing/Tests/RouteTest.php | 3 ++- .../Component/Routing/Tests/RouterTest.php | 3 ++- .../Acl/Tests/Dbal/AclProviderBenchmarkTest.php | 3 ++- .../Security/Acl/Tests/Dbal/AclProviderTest.php | 3 ++- .../Acl/Tests/Dbal/MutableAclProviderTest.php | 3 ++- .../Security/Acl/Tests/Domain/AclTest.php | 3 ++- .../Security/Acl/Tests/Domain/AuditLoggerTest.php | 4 +++- .../Acl/Tests/Domain/DoctrineAclCacheTest.php | 3 ++- .../Security/Acl/Tests/Domain/EntryTest.php | 3 ++- .../Security/Acl/Tests/Domain/FieldEntryTest.php | 3 ++- .../ObjectIdentityRetrievalStrategyTest.php | 3 ++- .../Acl/Tests/Domain/ObjectIdentityTest.php | 4 +++- .../Domain/PermissionGrantingStrategyTest.php | 3 ++- .../Acl/Tests/Domain/RoleSecurityIdentityTest.php | 3 ++- .../SecurityIdentityRetrievalStrategyTest.php | 3 ++- .../Acl/Tests/Domain/UserSecurityIdentityTest.php | 3 ++- .../Tests/Permission/BasicPermissionMapTest.php | 3 ++- .../Acl/Tests/Permission/MaskBuilderTest.php | 3 ++- .../Security/Acl/Tests/Voter/AclVoterTest.php | 3 ++- .../AuthenticationProviderManagerTest.php | 3 ++- .../AuthenticationTrustResolverTest.php | 3 ++- .../AnonymousAuthenticationProviderTest.php | 3 ++- .../Provider/DaoAuthenticationProviderTest.php | 3 ++- ...PreAuthenticatedAuthenticationProviderTest.php | 3 ++- .../RememberMeAuthenticationProviderTest.php | 3 ++- .../Provider/UserAuthenticationProviderTest.php | 3 ++- .../RememberMe/InMemoryTokenProviderTest.php | 3 ++- .../RememberMe/PersistentTokenTest.php | 3 ++- .../Authentication/Token/AbstractTokenTest.php | 4 +++- .../Authentication/Token/AnonymousTokenTest.php | 3 ++- .../Token/PreAuthenticatedTokenTest.php | 3 ++- .../Authentication/Token/RememberMeTokenTest.php | 3 ++- .../Token/Storage/TokenStorageTest.php | 3 ++- .../Token/UsernamePasswordTokenTest.php | 3 ++- .../Authorization/AccessDecisionManagerTest.php | 3 ++- .../Authorization/AuthorizationCheckerTest.php | 3 ++- .../Authorization/ExpressionLanguageTest.php | 3 ++- .../Authorization/Voter/AbstractVoterTest.php | 3 ++- .../Voter/AuthenticatedVoterTest.php | 3 ++- .../Authorization/Voter/ExpressionVoterTest.php | 3 ++- .../Tests/Authorization/Voter/RoleVoterTest.php | 3 ++- .../Tests/Encoder/BCryptPasswordEncoderTest.php | 3 ++- .../Tests/Encoder/BasePasswordEncoderTest.php | 3 ++- .../Core/Tests/Encoder/EncoderFactoryTest.php | 3 ++- .../Encoder/MessageDigestPasswordEncoderTest.php | 3 ++- .../Tests/Encoder/Pbkdf2PasswordEncoderTest.php | 3 ++- .../Encoder/PlaintextPasswordEncoderTest.php | 3 ++- .../Tests/Encoder/UserPasswordEncoderTest.php | 3 ++- .../Exception/UsernameNotFoundExceptionTest.php | 3 ++- .../Tests/LegacySecurityContextInterfaceTest.php | 3 ++- .../Core/Tests/LegacySecurityContextTest.php | 3 ++- .../Core/Tests/Resources/TranslationFilesTest.php | 4 +++- .../Core/Tests/Role/RoleHierarchyTest.php | 3 ++- .../Security/Core/Tests/Role/RoleTest.php | 3 ++- .../Core/Tests/Role/SwitchUserRoleTest.php | 3 ++- .../Core/Tests/User/ChainUserProviderTest.php | 3 ++- .../Core/Tests/User/InMemoryUserProviderTest.php | 3 ++- .../Security/Core/Tests/User/UserCheckerTest.php | 3 ++- .../Security/Core/Tests/User/UserTest.php | 3 ++- .../Security/Core/Tests/Util/ClassUtilsTest.php | 4 +++- .../Security/Core/Tests/Util/StringUtilsTest.php | 3 ++- .../Security/Csrf/Tests/CsrfTokenManagerTest.php | 3 ++- .../TokenGenerator/UriSafeTokenGeneratorTest.php | 3 ++- .../NativeSessionTokenStorageTest.php | 3 ++- .../TokenStorage/SessionTokenStorageTest.php | 3 ++- .../Security/Http/Tests/AccessMapTest.php | 3 ++- .../DefaultAuthenticationFailureHandlerTest.php | 3 ++- .../DefaultAuthenticationSuccessHandlerTest.php | 3 ++- .../SimpleAuthenticationHandlerTest.php | 3 ++- .../BasicAuthenticationEntryPointTest.php | 3 ++- .../DigestAuthenticationEntryPointTest.php | 3 ++- .../FormAuthenticationEntryPointTest.php | 3 ++- .../RetryAuthenticationEntryPointTest.php | 3 ++- .../AbstractPreAuthenticatedListenerTest.php | 3 ++- .../Http/Tests/Firewall/AccessListenerTest.php | 3 ++- .../AnonymousAuthenticationListenerTest.php | 3 ++- .../Firewall/BasicAuthenticationListenerTest.php | 3 ++- .../Http/Tests/Firewall/ChannelListenerTest.php | 3 ++- .../Http/Tests/Firewall/ContextListenerTest.php | 3 ++- .../Http/Tests/Firewall/DigestDataTest.php | 3 ++- .../Http/Tests/Firewall/ExceptionListenerTest.php | 3 ++- .../Http/Tests/Firewall/LogoutListenerTest.php | 3 ++- .../Tests/Firewall/RememberMeListenerTest.php | 3 ++- .../RemoteUserAuthenticationListenerTest.php | 3 ++- .../SimplePreAuthenticationListenerTest.php | 3 ++- .../Tests/Firewall/SwitchUserListenerTest.php | 3 ++- .../Firewall/X509AuthenticationListenerTest.php | 3 ++- .../Security/Http/Tests/FirewallMapTest.php | 3 ++- .../Security/Http/Tests/FirewallTest.php | 3 ++- .../Security/Http/Tests/HttpUtilsTest.php | 3 ++- .../Logout/CookieClearingLogoutHandlerTest.php | 3 ++- .../Logout/DefaultLogoutSuccessHandlerTest.php | 3 ++- .../Tests/Logout/SessionLogoutHandlerTest.php | 3 ++- .../RememberMe/AbstractRememberMeServicesTest.php | 3 ++- ...PersistentTokenBasedRememberMeServicesTest.php | 3 ++- .../Tests/RememberMe/ResponseListenerTest.php | 3 ++- .../TokenBasedRememberMeServicesTest.php | 3 ++- .../Session/SessionAuthenticationStrategyTest.php | 3 ++- ...namePasswordFormAuthenticationListenerTest.php | 3 ++- .../Tests/Resources/TranslationFilesTest.php | 4 +++- .../Security/Tests/TranslationSyncStatusTest.php | 3 ++- .../Serializer/Tests/Annotation/GroupsTest.php | 3 ++- .../Serializer/Tests/Encoder/JsonEncoderTest.php | 3 ++- .../Serializer/Tests/Encoder/XmlEncoderTest.php | 3 ++- .../Tests/Mapping/AttributeMetadataTest.php | 3 ++- .../Tests/Mapping/ClassMetadataTest.php | 3 ++- .../Mapping/Factory/ClassMetadataFactoryTest.php | 3 ++- .../Tests/Mapping/Loader/AnnotationLoaderTest.php | 3 ++- .../Tests/Mapping/Loader/XmlFileLoaderTest.php | 3 ++- .../Tests/Mapping/Loader/YamlFileLoaderTest.php | 3 ++- .../CamelCaseToSnakeCaseNameConverterTest.php | 3 ++- .../Tests/Normalizer/AbstractNormalizerTest.php | 3 ++- .../Tests/Normalizer/CustomNormalizerTest.php | 3 ++- .../Normalizer/GetSetMethodNormalizerTest.php | 3 ++- .../Tests/Normalizer/ObjectNormalizerTest.php | 3 ++- .../Tests/Normalizer/PropertyNormalizerTest.php | 3 ++- .../Component/Serializer/Tests/SerializerTest.php | 3 ++- .../Stopwatch/Tests/StopwatchEventTest.php | 3 ++- .../Component/Stopwatch/Tests/StopwatchTest.php | 3 ++- .../Templating/Tests/DelegatingEngineTest.php | 3 ++- .../Templating/Tests/Helper/HelperTest.php | 3 ++- .../Tests/Helper/LegacyAssetsHelperTest.php | 3 ++- .../Tests/Helper/LegacyCoreAssetsHelperTest.php | 3 ++- .../Templating/Tests/Helper/SlotsHelperTest.php | 3 ++- .../Templating/Tests/Loader/CacheLoaderTest.php | 3 ++- .../Templating/Tests/Loader/ChainLoaderTest.php | 3 ++- .../Tests/Loader/FilesystemLoaderTest.php | 3 ++- .../Templating/Tests/Loader/LoaderTest.php | 3 ++- .../Component/Templating/Tests/PhpEngineTest.php | 3 ++- .../Templating/Tests/Storage/FileStorageTest.php | 3 ++- .../Templating/Tests/Storage/StorageTest.php | 3 ++- .../Tests/Storage/StringStorageTest.php | 3 ++- .../Templating/Tests/TemplateNameParserTest.php | 3 ++- .../Tests/Catalogue/AbstractOperationTest.php | 3 ++- .../TranslationDataCollectorTest.php | 3 ++- .../Tests/DataCollectorTranslatorTest.php | 3 ++- .../Tests/Dumper/CsvFileDumperTest.php | 3 ++- .../Translation/Tests/Dumper/FileDumperTest.php | 3 ++- .../Tests/Dumper/IcuResFileDumperTest.php | 3 ++- .../Tests/Dumper/IniFileDumperTest.php | 3 ++- .../Tests/Dumper/JsonFileDumperTest.php | 3 ++- .../Translation/Tests/Dumper/MoFileDumperTest.php | 3 ++- .../Tests/Dumper/PhpFileDumperTest.php | 3 ++- .../Translation/Tests/Dumper/PoFileDumperTest.php | 3 ++- .../Translation/Tests/Dumper/QtFileDumperTest.php | 3 ++- .../Tests/Dumper/XliffFileDumperTest.php | 3 ++- .../Tests/Dumper/YamlFileDumperTest.php | 3 ++- .../Translation/Tests/IdentityTranslatorTest.php | 3 ++- .../Component/Translation/Tests/IntervalTest.php | 3 ++- .../Tests/Loader/CsvFileLoaderTest.php | 3 ++- .../Tests/Loader/IniFileLoaderTest.php | 3 ++- .../Tests/Loader/JsonFileLoaderTest.php | 3 ++- .../Tests/Loader/LocalizedTestCase.php | 4 +++- .../Translation/Tests/Loader/MoFileLoaderTest.php | 3 ++- .../Tests/Loader/PhpFileLoaderTest.php | 3 ++- .../Translation/Tests/Loader/PoFileLoaderTest.php | 3 ++- .../Translation/Tests/Loader/QtFileLoaderTest.php | 3 ++- .../Tests/Loader/XliffFileLoaderTest.php | 3 ++- .../Tests/Loader/YamlFileLoaderTest.php | 3 ++- .../Translation/Tests/LoggingTranslatorTest.php | 3 ++- .../Translation/Tests/MessageCatalogueTest.php | 3 ++- .../Translation/Tests/MessageSelectorTest.php | 3 ++- .../Translation/Tests/PluralizationRulesTest.php | 3 ++- .../Translation/Tests/TranslatorCacheTest.php | 3 ++- .../Translation/Tests/TranslatorTest.php | 3 ++- .../Tests/Writer/TranslationWriterTest.php | 3 ++- .../Component/Validator/Tests/ConstraintTest.php | 3 ++- .../Tests/ConstraintViolationListTest.php | 3 ++- .../Validator/Tests/ConstraintViolationTest.php | 3 ++- .../AbstractConstraintValidatorTest.php | 3 ++- .../Validator/Tests/Constraints/AllTest.php | 3 ++- .../Tests/Constraints/CollectionTest.php | 3 ++- .../Validator/Tests/Constraints/CompositeTest.php | 3 ++- .../Validator/Tests/Constraints/FileTest.php | 3 ++- .../Tests/Constraints/GroupSequenceTest.php | 3 ++- .../Validator/Tests/Constraints/RegexTest.php | 3 ++- .../Validator/Tests/Constraints/ValidTest.php | 3 ++- .../Tests/LegacyExecutionContextTest.php | 3 ++- .../Tests/Mapping/Cache/DoctrineCacheTest.php | 3 ++- .../Tests/Mapping/Cache/LegacyApcCacheTest.php | 3 ++- .../Validator/Tests/Mapping/ClassMetadataTest.php | 3 ++- .../Factory/BlackHoleMetadataFactoryTest.php | 3 ++- .../Factory/LazyLoadingMetadataFactoryTest.php | 3 ++- .../Tests/Mapping/GetterMetadataTest.php | 3 ++- .../Tests/Mapping/LegacyElementMetadataTest.php | 3 ++- .../Tests/Mapping/Loader/AnnotationLoaderTest.php | 3 ++- .../Tests/Mapping/Loader/FilesLoaderTest.php | 3 ++- .../Tests/Mapping/Loader/LoaderChainTest.php | 3 ++- .../Mapping/Loader/StaticMethodLoaderTest.php | 3 ++- .../Tests/Mapping/Loader/XmlFileLoaderTest.php | 3 ++- .../Tests/Mapping/Loader/YamlFileLoaderTest.php | 3 ++- .../Tests/Mapping/MemberMetadataTest.php | 3 ++- .../Tests/Mapping/PropertyMetadataTest.php | 3 ++- .../Tests/Resources/TranslationFilesTest.php | 4 +++- .../Validator/Tests/Util/PropertyPathTest.php | 3 ++- .../Tests/Validator/AbstractValidatorTest.php | 3 ++- .../Validator/Tests/ValidatorBuilderTest.php | 3 ++- .../VarDumper/Test/VarDumperTestCase.php | 3 ++- .../VarDumper/Tests/Caster/PdoCasterTest.php | 3 ++- .../Component/VarDumper/Tests/HtmlDumperTest.php | 3 ++- .../Component/VarDumper/Tests/VarClonerTest.php | 3 ++- src/Symfony/Component/Yaml/Tests/DumperTest.php | 3 ++- src/Symfony/Component/Yaml/Tests/InlineTest.php | 3 ++- .../Component/Yaml/Tests/ParseExceptionTest.php | 3 ++- src/Symfony/Component/Yaml/Tests/ParserTest.php | 3 ++- src/Symfony/Component/Yaml/Tests/YamlTest.php | 3 ++- 657 files changed, 1281 insertions(+), 676 deletions(-) diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php index c037e1cada323..b634a69488a34 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php @@ -13,7 +13,7 @@ require_once __DIR__.'/Fixtures/includes/foo.php'; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php index 3bebfd575b623..d6f3d0d2e839e 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy\Dumper; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Dumper\PhpDumper; diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php index 93310c2ed33d2..e58b7d6356161 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy\Instantiator; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator; use Symfony\Component\DependencyInjection\Definition; diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php index 047bf4d24b4d2..838c33a8368b1 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy\PhpDumper; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper; use Symfony\Component\DependencyInjection\Definition; diff --git a/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php b/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php index cea6fab0e79f3..9abb0e3b6ea78 100644 --- a/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php +++ b/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php @@ -2,7 +2,7 @@ namespace Symfony\Bridge\Twig\Tests; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\AppVariable; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Session\Session; diff --git a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php index b936614120b72..9a5c33a528a37 100644 --- a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Command; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Command\LintCommand; use Symfony\Component\Console\Application; use Symfony\Component\Console\Output\OutputInterface; diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/AssetExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/AssetExtensionTest.php index 843069a8f5a07..ba04fd4b7cf8a 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/AssetExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/AssetExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\AssetExtension; use Symfony\Component\Asset\Package; use Symfony\Component\Asset\Packages; diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php index 9a6276fb467cf..64bebd709692e 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\CodeExtension; class CodeExtensionTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php index 58b0b12e63720..312fda1d7106a 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\DumpExtension; use Symfony\Component\VarDumper\VarDumper; use Symfony\Component\VarDumper\Cloner\VarCloner; diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php index 05b4f97a80b5f..597dfc75f4165 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\ExpressionExtension; class ExpressionExtensionTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php index f77d0809a409d..8f0c66ad78bb4 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\HttpFoundationExtension; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Request; diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php index 00a73dced5cd6..685b250559cd4 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\HttpKernelExtension; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php index a11bf2d44142c..5fa4e9cd36b1c 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\RoutingExtension; class RoutingExtensionTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php index 005980f3d34b2..86a4fcbe32269 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\StopwatchExtension; class StopwatchExtensionTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php index 9ca28a8d25d66..446697d3dd8b2 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Extension; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\TranslationExtension; use Symfony\Component\Translation\Translator; use Symfony\Component\Translation\MessageSelector; diff --git a/src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php index 79b1cc85b212f..93c8433c2894e 100644 --- a/src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Node; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Node\DumpNode; class DumpNodeTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php index 491b416082475..4202355594745 100644 --- a/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Node; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Node\FormThemeNode; class FormThemeTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php index b7123e5bec707..69b987e83297f 100644 --- a/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Node; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode; class SearchAndRenderBlockNodeTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php index 73f9653d1a3cc..683d47af27aea 100644 --- a/src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Node; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Node\TransNode; /** diff --git a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php index bfd39abc741bf..fad0e1f829763 100644 --- a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php +++ b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/ScopeTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\NodeVisitor; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\NodeVisitor\Scope; class ScopeTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php index 5ced9d092902f..da9f43a6c4e0e 100644 --- a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php +++ b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\NodeVisitor; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\NodeVisitor\TranslationDefaultDomainNodeVisitor; use Symfony\Bridge\Twig\NodeVisitor\TranslationNodeVisitor; diff --git a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php index 6e4dfd779e587..d12fff532aaa1 100644 --- a/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php +++ b/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\NodeVisitor; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\NodeVisitor\TranslationNodeVisitor; class TranslationNodeVisitorTest extends TestCase diff --git a/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php b/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php index fdf4d2452b249..8931be061f9d2 100644 --- a/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php +++ b/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\TokenParser; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\TokenParser\FormThemeTokenParser; use Symfony\Bridge\Twig\Node\FormThemeNode; diff --git a/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php b/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php index df6a222d14b37..0b1fb28b0e10c 100644 --- a/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Translation; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Extension\TranslationExtension; use Symfony\Bridge\Twig\Translation\TwigExtractor; use Symfony\Component\Translation\MessageCatalogue; diff --git a/src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php b/src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php index 948d58f72e368..e2082df3dd75b 100644 --- a/src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php +++ b/src/Symfony/Bridge/Twig/Tests/TwigEngineTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bridge\Twig\Tests; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\TwigEngine; use Symfony\Component\Templating\TemplateReference; diff --git a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php index 1a344b0548dc8..6e3e128534eb9 100644 --- a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php +++ b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\DebugBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\DebugBundle\DependencyInjection\Compiler\DumpDataCollectorPass; use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php index 5f5e52cd4d585..3dbe29e9bd8c3 100644 --- a/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php +++ b/src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\DebugBundle\Tests\DependencyInjection; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\DebugBundle\DependencyInjection\DebugExtension; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php index ae1fcc8a95da1..9060af4d8260e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Command; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Command\RouterDebugCommand; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php index 5820a857233c0..6e9b5debe2f59 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Command; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Command\RouterMatchCommand; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php index 1127a082af8d8..19c6d70156b19 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Command; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Command\TranslationDebugCommand; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php index 2253423676a34..bf48bde142353 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Command; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Command\TranslationUpdateCommand; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php index 79819020f8c96..7f2723a0525ae 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php index f9e0ea03a769d..330deae6463d7 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddCacheWarmerPass; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php index d1757de2f5c23..7bbc3c269a36d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass; use Symfony\Component\Console\Command\Command; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php index 4f9a7390e6dcb..abfaa1d07404a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConstraintValidatorsPass; class AddConstraintValidatorsPassTest extends TestCase diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php index 425b7eeb40246..0934fe31c0c40 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Reference; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyFragmentRendererPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyFragmentRendererPassTest.php index aba463306745f..d4f75ee95c204 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyFragmentRendererPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyFragmentRendererPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FragmentRendererPass; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyTemplatingAssetHelperPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyTemplatingAssetHelperPassTest.php index d2914bfd6e66d..3bddd5e021b7a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyTemplatingAssetHelperPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LegacyTemplatingAssetHelperPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\TemplatingAssetHelperPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php index 37ad05d4aa44c..db6557913b06e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\LoggingTranslatorPass; class LoggingTranslatorPassTest extends TestCase diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php index a0a0a57bb9887..3637330ed5028 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ProfilerPass; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php index 1b06a3b2dfc64..f1e29fca51828 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php index 3592a7215586a..10a38aabdb402 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\TranslatorPass; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php index d483344d78edf..a20a120d0710b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration; use Symfony\Component\Config\Definition\Processor; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php index 93a9b35b92917..fb5395ea6d26d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Routing; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; use Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php index d8e71b652b15b..c9a3b282ce9e6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Routing; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Routing\Router; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php index 69275c8564bdf..e3ff92b874c08 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php index e3b758fedd815..cd0676169fb9f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper; use Symfony\Component\Asset\Package; use Symfony\Component\Asset\Packages; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/RequestHelperTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/RequestHelperTest.php index 89fae19c95497..4ece72e47e125 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/RequestHelperTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/RequestHelperTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Bundle\FrameworkBundle\Templating\Helper\RequestHelper; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php index 49d1c6ff883ef..f664a49b12eec 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Session\Session; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/StopwatchHelperTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/StopwatchHelperTest.php index 2c1216e8074ce..cf7b627a499a6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/StopwatchHelperTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/StopwatchHelperTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Templating\Helper\StopwatchHelper; class StopwatchHelperTest extends TestCase diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php b/src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php index 86a166342fd2b..115ca1ae58a29 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/TestCase.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests; -use PhpUnit\Framework\TestCase as PHPUnitTestCase; +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 ca664d3c1f674..9a7c44d850d9b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Translation; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Translation\Translator; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Filesystem\Filesystem; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Validator/ConstraintValidatorFactoryTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Validator/ConstraintValidatorFactoryTest.php index 58b210630f63c..6cf9574ece96b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Validator/ConstraintValidatorFactoryTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Validator/ConstraintValidatorFactoryTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Validator; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\Validator\Constraints\Blank as BlankConstraint; diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php index f675db45793bc..0357b612060c4 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DataCollector; -use PhpUnit\Framework\TestCase; +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; diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php index 7c6fddb24d516..ebb22fddac833 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Parameter; use Symfony\Bundle\SecurityBundle\SecurityBundle; diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php index eb4c9ad553c8d..5d2fe28e9e05a 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\SecurityBundle\DependencyInjection\MainConfiguration; use Symfony\Component\Config\Definition\Processor; 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 812ac10baee7d..846d76f770d59 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Security\Factory; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php index 2030b373ef7bd..8eb2f70ea5de8 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension; use Symfony\Bundle\SecurityBundle\SecurityBundle; use Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Fixtures\UserProvider\DummyProvider; diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php index cc4bb31c6d2d6..b83c5645c510b 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\TwigBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\ExtensionPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php index 6886e28c1a141..10bcf3e8f66a8 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\TwigBundle\Tests\DependencyInjection\Compiler; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\TwigLoaderPass; diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php index 394b02faa1e7e..d3f8652c4b6db 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\TwigBundle\Tests\DependencyInjection; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\TwigBundle\DependencyInjection\Configuration; use Symfony\Component\Config\Definition\Processor; diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php index 2319090a4e5a2..62d1a73eb3c8d 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\TwigBundle\Tests; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Filesystem\Filesystem; diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php index 9814e37a373e4..e9fa6c5fc44d2 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\TwigBundle\Tests; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Filesystem\Filesystem; diff --git a/src/Symfony/Bundle/TwigBundle/Tests/TestCase.php b/src/Symfony/Bundle/TwigBundle/Tests/TestCase.php index d93fd76a7f189..800be3008a446 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/TestCase.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/TestCase.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\TwigBundle\Tests; -use PhpUnit\Framework\TestCase as PHPUnitTestCase; +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 2f25f455192d2..f01f38f4d08e3 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\Command; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\Command\ExportCommand; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\HttpKernel\Profiler\Profile; diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php index a5aa0e2d88b74..8f63ab1db23b3 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\Command; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\Command\ImportCommand; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\HttpKernel\Profiler\Profile; diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php index 22b73fdbefae9..a14869d4ec206 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\Controller; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController; use Symfony\Component\HttpKernel\Profiler\Profile; use Symfony\Component\HttpFoundation\Request; diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php index d83ff28517c37..b11f6928b4e92 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\DependencyInjection; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\DependencyInjection\Configuration; use Symfony\Component\Config\Definition\Processor; diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php index c9f5b56021590..89d6e932f118f 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\EventListener; -use PhpUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php index 051684b29aa34..581ad2e2ea029 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/TestCase.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests; -use PhpUnit\Framework\TestCase as PHPUnitTestCase; +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 13e0e43d92215..4623412f57952 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 dea77a587efaf..7269d0e6bc983 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 a2310d5898dee..9a17196604622 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 bb515f20964f0..4b0872f7f2699 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 1f0883abad824..6a7c2cc6e45d8 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 588e9985741d3..0066834484351 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 fb842dd4f77a7..430146fd5070b 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 77958ce2ca0cc..7b5a3e8d5cec1 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 7be90657ddf17..e715bb9a4c32b 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 54a84b43a463b..ae9f6a7ae5c9c 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 4722de6d7b04c..12ca705b57a4d 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 d6d830e83ef05..aa09b05b34268 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 b75b5fb5c0ab6..f163de9674378 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 bfe3cd52c2312..0ba4e3b3a71d9 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 e96ba954087c0..8ad7132ee9ea6 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 00be361f506fa..4adff9fbfeda3 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 09eea04229c04..4d8520cd0e9de 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 7016767fe7ba2..db7fb962cedde 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 512ff632a51db..6d4e57e984504 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 2588e9603443a..f9a8b5518b584 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 21a7afbd6e75b..8c7ef7978616a 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 291243deada7d..c523e5cd5e6a4 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 ee30d0b394fdd..e6bcd19a8aacd 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 a7929ceb35122..8ec1763065fb5 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 b0cb079e96fbc..ab1d3164145d0 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 b07f6079ebd90..6456639af305e 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 69f7fcfb22e9a..d8f9bf5547801 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 ebb766eed63d8..1b90ebfeb82bc 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 22c399ca9d885..88775656784f2 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 cf0813ace0025..efe0f19482cb2 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 a146e89c32ae8..16a10227cc296 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 2c0551d062ef0..8676ead54c576 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 ba8cb0e3feb5d..971f4afc71920 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 2b84de6b098f7..691a0b65186c2 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 19fc347d8f060..733f600850f5a 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 84afd6c104223..b7ec12fa739af 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 58d21485993f1..55e8a137b648a 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 08ddc3209e72e..e539e25f3d02f 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 a896f96221484..f011f5422ffea 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 77013a14b2d98..1a5de41ccb01f 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 86c1803018a67..1bc31b7c12d12 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 c3d050c75dc77..c1ad9150e6a99 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 d479f2569f1fe..5b69f452697b4 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 8f3039df8ed42..4a01d26adf223 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 8f46051bd8ba1..e1d23e45fa6d1 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 1685f32ed060d..0bf56b610ebdc 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 e9f79a8d6ddb2..fefb1d728f445 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 7117e4389bcba..60bd616a41de5 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 db85cf7bd0eee..9e77c9480b4c3 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 237c197e025ac..09a826586dbf7 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 9c9acd3ec616e..78cc918ae0227 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 1468cbe2ea58a..92b40b35c2394 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 9e068587f82ba..a4e032a27e762 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 a166a040996bb..fb6ee3bbacad1 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 74e95b7569977..fcbb719b6cd9e 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 774df268ba12e..6cd7c82b4a20a 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 0abfb3ce27559..f183450e44fad 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 b8d5ca6d9bebb..dc7b0358dea8a 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 15b53e1da61ec..746c2b464029a 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 a31615ee80b61..8f42cf92e9ffb 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 33fa22051a05d..1847582444d1f 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 79bf7b172ade9..d50366d1bf063 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 bbb9f8b076b4d..2e473c2eef170 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 4875f79285f36..7c3130945366e 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 b0d7f9c2f6f4c..8069bcccc96ab 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 612d13d7dc4d7..d1616d107f02a 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 044459660a733..49ba0ee06c79a 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 9bb50d52806a9..1a2d1b8432f5a 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 587d8414e6e20..13e918b3a0fe2 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 10cf34ddff84e..2ff581e83ef8b 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 06347c87ba807..66d63e4d3855c 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 cc89083c6b1c5..37e396a8ca145 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 cfb37cd41061f..0a62d98a4a4c3 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 f3d2c0d64ee28..b19708ebb21cd 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 53ce1df8cf3fb..9c4df742d501a 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 eb1c6617f5644..42abd82eac11c 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 c8a560f6b2f1e..839af7387f4dc 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 b3808c07cfbf8..db39a02b8a616 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 f09573f04da90..b7ff4be312ea3 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 cfb4afe15ca63..f122c07a1bccc 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 2fd4f612142e8..780b5681fa8d2 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 e4ce037bb8f16..ee9b09f8f97ed 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 a8389dd1866b6..57e7136d5580e 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 b54c00e83dc85..8d4e05a760cd7 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 61ab80eec8d0b..f1dee1ee11ee9 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 932e8030dd896..595551338061e 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 c34fe5fc7348b..b58eb8929c85e 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 57afa5a2422b0..8005616a9208e 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 0454d9faa6f75..0844709d96548 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 03c054eaaeeb7..21eb60846240d 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 6efdd67657630..7e92f5baeed18 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 b30b5ee7acd1f..05a730fde15a2 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 b7c3539c67a97..1cf742cf20160 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 d2ce891ec8206..82f555d9abf16 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 8f3253a7d59f5..d6ff1132e607d 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 407458f48f2cc..79e2da14bb249 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 eeec0e0beb081..8d0a027346b38 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 973c3d7501693..898a985a29e2f 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 6c570e235def7..ae01e9cb0d839 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 fb105828d23f2..77cc0b5cbdd46 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 c93983721f6c9..0611ed91e31d9 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 795b74781c23a..1dc2120045c2c 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 22cbc3033bd6c..739e5b2b15b7d 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 04fe7c2cf1161..1c374662ff2e1 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 e3aba6d7074cd..f8199b8c9f791 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 55351e551c875..d894f7ab6f6d0 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 4e8efdc8b4fa3..60f44c3f02248 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 18b605b4671c3..c5f4ec7f95690 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 cd4448a96abf4..d7e15df9e43a3 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 10781e255e376..7f935acbfc91c 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 33060dcd0e29c..e083611458770 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 590ca4cfae2f9..e3056cf4fde6f 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 c4479403aa3d7..db33d4b4a14dc 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 e730a1a288a83..8450ee98988ab 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 6ba0b2f48110b..b35521d206204 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 82149ebdb3c18..57dd42b487ab4 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 1b2ec6bd7604b..7e7c3e41e2a8e 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 845edd2c1419f..6d7ab4b013e50 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 72058868d44ea..53e314e23df62 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 1f604c228f130..50be82d741119 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 651ca85a5b8b7..aaf2f5593a969 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 77015aab2500f..192abb7092c02 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 83a805d612120..02018c5a0a999 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 f81fcf0608964..6bdc8f4f49501 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 732eead1407bb..9581743fd5d65 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 0d3cb8a000bfd..8ca51c0b6efe5 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 5da11359fa8b5..f457c1776b368 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 05918b14ec52b..d46b250c51ce0 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 8aa544c728f4a..9f96f33e9dece 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 0f421c0127e51..f19a2f5cb8346 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 e7f19a6e94dc9..90852c359e514 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 a3524c3d7263d..f93965f46ebfb 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 1fcedca5f98c4..cde2c147e752c 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 81d2b51a2fa91..1cb8d33b6ed4c 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 07891fff6dc5c..a605729f97ad3 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 be057313ab909..125e09b6cf8f0 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 cab44b20c74cc..70fbf306070c6 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 00b957b73115e..b936bf5e63ce4 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 8c6674efe7157..66da1912c4797 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 b2082f07a126d..85a52ad1c245a 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 b87ca916bbfe5..ef9a66f6cff72 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 39dfb48455b47..ae6b1990954ba 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 571ca029881f0..975e5582c22fe 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 6800267c96b10..ec0803fa3b8b2 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 5d5c633888fa7..8e34a361580a9 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 26b1b0e244656..2059d049c1d0f 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 b052db2134639..0a4cd7201e1bb 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 98a45a3a0cef0..3f0364705f986 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 bae74bb888df7..bde6caa4eeb38 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 1b424e93fcaa3..9ee85bb0ac254 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 cb04f74beb6d4..53d7282b37a7a 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 9a822670cd5e4..bdc14abbf5a31 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 aebd82dabdf4d..bbb459fb34940 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 0f8868037d15e..04f2861e33193 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 d2e60bd64905d..fa8d1f4b64576 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 f28c6a942397b..052ef2201a32c 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 8af5c1c101757..4292c22359692 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 58b0e177e8e1a..550fea976fabc 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 6901329a5e711..0f35b5febe8e2 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 18bde0210eab5..d28101fb6fe07 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 dd850dd360033..8996d5bfa0232 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 53bd8db76a00e..5a04e04090480 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 63d8b8fc90233..5586a00547a68 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 c7509f61e686c..1fc2ebc0c1e6e 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 bf5984414f658..656fc57a4bc46 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 273912635e33e..8a6c1ddfd19e2 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 8284d078a8514..30a75c738c5a4 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 4254a453a0c04..f551c9bdacee5 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 9d4c3e571cf10..acac5cc33c588 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 620ba1003e720..c1342f7ab5398 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 dd73e257ba826..b81151e1e478a 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 2d29efedf1c2f..c724a75c692d0 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 89d8edb0093b0..99923a5eb2565 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 d45ea9d238259..c78e76169266a 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 caab26970ce48..a5c0b23384d9b 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 b1534db3abc88..0d53365625af5 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 ba8b574751c7d..fb10318ebf572 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 93f6d7fb22599..0ef713da1745b 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 dc5d38b744860..5b2b2659a33c8 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 5fa2fa136874a..08d2d74e65b37 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 af49e69e6c1e5..396e3d91df40a 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 08e4285f0cd53..fc25cffc1fc2c 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 251a1dfb5844a..257aba96903eb 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 ac6f5d5c719b9..0e281a8e8605e 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 5dc192c3f24bb..c9fbb5cbd9eb3 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 3aae8e683d774..3f6742c4486a6 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 32f07294243c7..363960fdf1588 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 de6db05ab15c4..d677a427cb331 100644 --- a/src/Symfony/Component/Form/Tests/CompoundFormTest.php +++ b/src/Symfony/Component/Form/Tests/CompoundFormTest.php @@ -945,7 +945,7 @@ public function testCreateViewWithChildren() $assertChildViewsEqual = function (array $childViews) use ($test) { return function (FormView $view) use ($test, $childViews) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var \PHPUnit\Framework\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 a17d672f62679..090580ec735b9 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 5504d8df7371e..5dd53b4e25743 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 3385c05dc4be3..32886e5651298 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 33779260ae10e..220a367655216 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 ac61acc4e64fb..385accd7f369c 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 a1217783d17e6..5195092e18b88 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 5362ab9fc76cd..cf5dbaa6af7dc 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 5eb01a2ccb63a..aa4936f82263e 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 9ec553db4bd71..fc9f85e3c752e 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 200cbc32824f2..c6d1a07cd7803 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 af6443ac84054..fe1f7d31792fd 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 0fa2df05641a4..5a3417e4d2034 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 c619ca729fdf2..0789e414bd1f7 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 c0447656f3e51..93fe38def89fc 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 eb3cf9704bc21..5c1d56264ed80 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 65cc25539483c..2772e47660efe 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 d31de3cadab63..e3fd9523d96d7 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 ddd46819a4f0c..2dcbc359eab9e 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 52afec76013ea..281581bcffc1c 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 a6b111e78e63a..d1ea3331a943d 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 29e370df096fd..824e81c553032 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 43918643b617e..bd87d9cc8c577 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 356d1c808c1cc..fc0dee140b047 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 993d818d5b62a..6a551bb2fcb9e 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 f76b19e4b6efe..a004f77704c3f 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 ac74746cd83e2..9e0b5f57e6473 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 4131a46cee05a..c19b1153be2b8 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 f84220c78c9de..a05847e0bc20a 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 72a9bdfffc719..46e540ee4c197 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 3627f4b9e6c6b..c3ee7303efa1e 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 5a41f928ca52a..39e6ae562d95c 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 a5e49d5e63769..6ddac337afea0 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 314a645dbcc3a..dd70b23bda0da 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 fdbf747f20333..31377dec3e58c 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 e0edf5d89f7b9..214313cba1b5f 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 1bfaf4d0e0bd8..21eabba871d38 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 e41a8085b520d..e08ac98c3f929 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 41de2d95a6a87..4185a4a0025d2 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 3d6864b09e884..d34d14a956dcc 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 eda35e36acaf5..452bb71e8905b 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 2422663720c67..8f7e1d020302a 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 942c06e43e4f2..bd1c4a6cbaecb 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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 7596b879a18b4..fb2bc47ef1c86 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 dd51fa5d23a36..4328919651efa 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 e4f354fc1f27d..cb43bb35168a7 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 9b3b58e214241..9929eac28ef01 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 6845118cc2e3c..157ab90ec59a2 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 d9f2e2114d414..f3f74f635eb40 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 fda372f3fb708..1152e46c0be7e 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 129d99eea43b1..eea437f13e5fe 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 1d5648eada8e7..3fb15e9c8ac42 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 0837250780b81..eafeb4fb6d619 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 738604bcc7892..e7defa677713b 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 d4d02d94fead1..e5b1b38fdd028 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 a6d28a2943bbe..61aa74861ddee 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 7b1c44674e362..8156da06939e4 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 b0e21edd0a214..5ee2954db9460 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 2a097d6fd422a..9e3e90c53e4fe 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 cee9bcc26144c..6f864d4468fe7 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 e26b806fd2877..a84fb26f0b59b 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 74f058923f13b..47c435f24b113 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 ef91f52af5129..debcdc1faf16d 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 94c770a894ba0..4ead34c1053d5 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 41e44e10056ea..c1d9d12a654ba 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 ca6ce8a38670a..8c148b58f06c8 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 470038fe55170..d9d9eb7fbee77 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 852158f1870be..4eb200afa3bdf 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 1dbbabd5a1a8a..3de22460357be 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 57460c6daac5a..4d5d337a3c011 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 f8497f53ec7dc..8559e6791187c 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 b321a9279c600..06193c8befbeb 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 2ffd7c15c5f62..2e7be359efcff 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 37ccf9ef19f01..f23161c10b076 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 ab848b6b972ad..947502f7b1660 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 3437cf08f1d8d..bd335b3b4cf71 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 35823d685ddf9..718fd0f830e49 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 cfc8acebaaf99..a47120f1807e2 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 4fbf31aa3ebbd..5e41a4743edd5 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 2fa473fbdf5c4..1f55a2d5c440d 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 c56ea4a60071e..99da778b5fd87 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 54321ea4f7717..53accd38447d3 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 160b5758620bc..4da9a1bc515cb 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 7c865cb3db551..99491ce86ac25 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 eab420f9a1ba1..efd8d80d35c57 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 e9184ce06eeda..8ec3053441366 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 052296a4c5fbb..243f850b5ebdf 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 940f17cac48ce..844274b1e7e21 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 58644336984b9..f5c40cbb4d22f 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 41af579b06fd5..1bc853349f230 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 e78c8d14cc12c..d07ade303f107 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 fe5ecb2ed313a..05666cb0dcdc7 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 b5d2c9cedd893..ac3ea1e860af2 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 ee5ecce3ced38..6fe8a6756899d 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 b7babf2c5f631..397edbc8a71d3 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 53aa6ca3c64b0..046b71ac01170 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 4a0dc263b7d8a..b6dfb70c1b622 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 68d28cf2d211a..48b46efad0551 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 6c71f4c9ebdd5..afad9f58af638 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 01b72fd7d80ed..7f390cf9fab5a 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 340b428816882..ab78e9e8e178f 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 ba70bfa92abd6..20bd1a8364b05 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 a07e924d86f29..814b958163dcf 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 df0f108ebe7ee..34b7a8fa7ea2b 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 32b286999f9d8..d8c926f7938f1 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 c6ce79783bde2..abe061b5f2fd4 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 c4652cd88a668..2a27fcac21461 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 a6170dfd4f542..60570ee693a13 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 516813f072de2..81fc8b455d183 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 c5b2c51e40ecb..f4878f626f05d 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 2aa284cc71bc2..d1349906bbe69 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 c475bbfff3cc9..332ec55bceb81 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 94c2557fb1283..f5501a3f5978d 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 b1d7d82c135fd..464b2ab462f1d 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 9b42f2775781d..b6977ea88b6de 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 479287ceacacd..882961bf5a1e2 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 e23c2cd1881a7..12a31eb3eeedf 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 fd1543b6bc613..40636fa684d5c 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 0100131f00b1c..1e79ebe052391 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 34f561d1499c9..52794e0272832 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 b5b05bb454de4..23b833177ab61 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 7fcbc3b7e64f7..8311a76e35a03 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 88c92b67ebb86..6cefea6b02f3b 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 4f87037c20473..72ed971d48de9 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 9a9373c6d57d3..1be052e5e62fd 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 49e94a0bb09b9..f85fd5ed26fd3 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 1b5f47119afc6..3a040dedd6e54 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 ba54fcd3cfc5f..b537625f2401b 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 dd8955780dcc1..28a566e0d2e90 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 722e98760f111..96a66771a06bc 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 41e40962406ad..f30a3b6ad94ab 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 357fc56717694..8634aff6f9d1c 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 bf4239beaea61..8b9e52b03ea9a 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 270926f79c596..6a5b2331f7134 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 8639818397e67..8d4ebd7215db7 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 dc361ed0f08ad..f3557eedcb885 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 6e56f8bcf5c33..6b2c57a076128 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 10f41b344dfdc..06de8902dc8cd 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 4f71c05e1d5dd..3465bb0c1d64e 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 9ddef240a497b..d76e2ab39af41 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 b2d7c63a93958..88e6974bf2954 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 a6183edfe0737..a8ccabe07bb75 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 3c58ee7c416cf..51898cb2be5d0 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 5e4c4b225e2b9..b8610334d5a7a 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 ee7b12f1ed040..a4c0330e0d5e9 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 197a4e1fc05f0..4908f2837026e 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 431f588e77a8e..e852c1eb34e57 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 fa487ba3b5332..f76c71d8f7a4d 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 f19a1714f7f13..bbaecfcbd668f 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 f2788ba469cda..88cc55e9be8cd 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 75d54eb234869..57c75fb954944 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 08569fad4d1a2..cf991c9bcc6d4 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 e424b715fce4e..8ba2be2e23ca5 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 d1a7e8c15d882..2fe7a0e4587b6 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 60cec6c099706..b570b3ae96ae3 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 c1e37a72ec8a4..12c3ff05913c5 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 6d160a08332ba..63f82a72b411e 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 b79ea86ea322b..4d82b42881fad 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 ee89f5279797a..11290bc5bc154 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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 fb4d25b5bcea5..f989a5951f2bb 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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 \PHPUnit\Framework\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 2dc4362375a41..2bb862fc81cfc 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php +++ b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php @@ -11,11 +11,12 @@ namespace Symfony\Component\OptionsResolver\Tests; +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 @@ -1024,7 +1025,7 @@ public function testNormalizerCanAccessOtherOptions() $this->resolver->setDefault('norm', 'baz'); $this->resolver->setNormalizer('norm', function (Options $options) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var \PHPUnit\Framework\TestCase $test */ \PHPUnit_Framework_Assert::assertSame('bar', $options['default']); return 'normalized'; @@ -1044,7 +1045,7 @@ public function testNormalizerCanAccessLazyOptions() $this->resolver->setDefault('norm', 'baz'); $this->resolver->setNormalizer('norm', function (Options $options) { - /* @var \PHPUnit_Framework_TestCase $test */ + /* @var \PHPUnit\Framework\TestCase $test */ \PHPUnit_Framework_Assert::assertEquals('bar', $options['lazy']); return 'normalized'; diff --git a/src/Symfony/Component/Process/Tests/ExecutableFinderTest.php b/src/Symfony/Component/Process/Tests/ExecutableFinderTest.php index 0e97ae9b17813..3aaeb0fb88513 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 28bafe38ea1c6..23465e9e808d1 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 f54623a5ec34a..79ab02717a58b 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 1b5056d1bb104..3faa50c551c70 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 c1feaa6ba9ae7..11f2779420ce3 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 f8608337a4a04..842dbf5b9ad15 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 0f554b6151801..cdcd3845caaa3 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 07f44f19d8a11..b0ed69c85953e 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 951c6802f93b7..f57433d875f5c 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 a7e142e878e86..fc434adb45a0e 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 6b4fdd8db9824..75e9834ae85c8 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 aa8c1288b0129..5e3a06a4b4d85 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 e6d0e5e908ba4..e463ead43b6eb 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 3b340b33eeaee..2a6f32ee75bf4 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 215ebb707bad4..c553179584876 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 4fc03ba642897..f84802b35b255 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 9f4090ff8609e..36094ba49df8f 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 288bf64ffaf78..e8bbe8fcf43e1 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 d34fa87ec5331..5d963f86fb01b 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 ed7c5a4ba73d8..bda64236f6022 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 f2edebd584bf4..354e8be0c41c0 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 d3edc0849484b..d94437f6cf035 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 7b6001c1f6d95..823efdb840022 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 de01a75d0b1b1..e687b8a67d042 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 4bf513e9a6b30..6f1b7dc981ede 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 0b9cdc2331ea8..cb3a1441656e4 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 931f910df4c5d..0c5f73f3eacc8 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 b6c5a3e62218f..ba4c6e972f19c 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 e43cbcb6bd148..9f0529e2de5d6 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 bf82fb7f86e63..8f7fbb07be969 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 58612683ef136..ffe29d1a747c9 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 376b8db76fe4a..83457ff14a7bf 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 f08b9688a921d..8d89dae0f4a92 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 85273a696a80a..18c0206474a34 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 fd418e1300e45..409959eec07dc 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 c95b474dca030..b5b4dab95f544 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 680c6c36d618e..e0a47e7f0fd01 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 6df2d79ccc29e..e7de0b54875e2 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 bfe85e2e0b86c..640859192d1b8 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 ae11474a35c29..630d217558ac7 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 255f7f4447e69..09164f2e6dc8c 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 58f2786344c77..454f8ff5d35ba 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 55b083ca4c32f..6f72f1ebb4032 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 59fc3bdb7e37c..a243f9a67c1cb 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 770ada7a7b1d0..89782640c3638 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 463f2c126c98f..f77262654f12b 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 ad5f23639f17d..2e67936cf4ab9 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 579a52e66ec86..2b5e35ecb7c3b 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 1eb52836bc84f..613de22ada017 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 2afe588f038af..41eb5b27ab0c6 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 824566918025b..6e34e6d5e7096 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 bf8d6744acaa4..508008d279b01 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 274992ed049ec..9b8105012c3d8 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 e3f7f5f18bb75..55ca05b43b5fb 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 43eb62f3252a9..b7fa4d6b54949 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 8edf1b02d4500..85dafc1e9f8be 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 27d8566e6874a..5a78d0ebb9119 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 ea30d5e3c71ec..241076755e768 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 0a78ee8c77faf..50990b7e465fd 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 3bdf38cff6fd9..55905844681cf 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 903c0309fc541..12c133f52df57 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 896ea37f1e941..57ebf184f2df6 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 b5cf00683aa5f..f1902f03d0d54 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 77d2608996430..5b2b1c07e6643 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 23b1a080f9608..a5fcd62c4df57 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 a3bcc96fdf804..fd30eea3c57c7 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 0297eff939ab6..12897ab1d1149 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 e1fe0e2d7d430..e9790880e0e5e 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 eed361cbada93..ca28d53c5cc42 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 5b4aca610a840..1565d1c865256 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 8d673bc0b293a..d82d9d893e76d 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 a59848c79bb20..e34912ce05752 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 07700396bf358..5f2b891120075 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 ce4f4cf4fbcd3..0b30a30c8f088 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 40de8af218c3a..10c8da692a6fd 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 14c488bc109fb..0742f421df564 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 191a4d877059f..926b1cc58eda2 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 5189fff01851e..c449194f8dda5 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 3e9452b1a7f6c..e65eef5bba4e4 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 c7e0d2ad3840a..1196651a86317 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 e8adb9b33dce0..3328837ef1f74 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 98ea374c81842..b7e5c556d75ae 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 a45ecf956dfa7..04b2eca8d6664 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 f86fcad1c4508..3661c7be95609 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 dc38e4a776f07..74382135e2c8e 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 df1b6a3300ba0..4d190cfc94823 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 02be07b2e0728..edf779413b636 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 fff5ff21f50c9..e40471733ce11 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 dae58ae9add31..2f53cf924ca0a 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 0a1815f639abf..6647a76a1286c 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 4b6e52717e717..8ec34843eaae0 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 b589b4af45136..fa9f33107d90c 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 e8f0143eb7b27..bd499b50e4097 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 faeaf259f72de..ebb694a3819d2 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 16baec13659ff..9ce35f4dea123 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 afbaa7c9f864f..287f9c20f6957 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 7d3a537902f3d..ea20cff5291ff 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 0eac0a8aa0604..c629ca15255ff 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 b71ad8561cfde..822043d63c8c3 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 da30aa9a683c4..87fcdc78c76a3 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 7166c53ffd63c..2c133014cc136 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 330b21a488236..4f73e5f44cdfa 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 359c6de532adc..a089e90cc5584 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 a3e035268a9d8..0753ff3e17e6c 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 0247e5fc4b20c..75bbd978f24c7 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 ff5fbc2975324..f2fa5bcf191ac 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 fa8a583e0c1bc..dd7f75e67e221 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 7f8eceaadde92..c49527bc14d66 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 c5761ac1e66c3..6f9dcd4e47dca 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 62c23f619cb53..e71715f705a88 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 ae6c39f3b95b5..53ff1dcf0e8e0 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 5453b317de436..15bc8bda692b6 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 a7c8d49b81b55..2238a74188853 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 b372447d8b9bb..271988c13ace7 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 0cc470606b8ab..2a7660ac6502d 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 141b4cc2adf0a..2249dcbd2059d 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 985152c770afb..c02812f6ce5c2 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 6061b12a8cffd..4bcc1ee57aa98 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 b80f8c608fef6..2c05ef75cab25 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 3e58e69e08556..07206202ab2c6 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 016c72df45ae3..2a62f21d33ad0 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 20da3ae31acd9..bd475bb4e5b1f 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 bb432a0c52dc2..eb0379f97b4f5 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 300f28dc6a657..0cc241b74a0a3 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 7f20f67b2b15f..9936fc933957b 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 6a435d74baca0..e32d46e3e577e 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 259214c6df75e..386927e3d50b9 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 d7b55da8b23a8..a042a6944993d 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 0db86e7433996..42649ef5f6577 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 558825797dacb..c06859df63a3b 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 c23821a4ce5f0..601c3375887cf 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 3e65b09b7db49..62b4c48f92764 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 341ec87ea4105..40a23d82ab6ea 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 4b72d41d5a5e1..198d5b8eb624f 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 72b877729dc83..348ad14619148 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 c064503430e8a..ad8d57065f721 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 256ed2fc90f9c..1c9ed79e35d62 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 4a32831cb698d..f08062369c704 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 9ce3d020bc1c5..f2db1c51f6fcd 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 331aa3a25e1f4..a95b7b1774508 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 484d062f22375..d732ee721708b 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 6b468ff18189c..a6cea9b980b09 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 72d146f9f5224..caf7f41766692 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 2d7131f2371d7..b0dec5183976a 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 6f550369f663e..bad7d3432176d 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 86ae0031203b4..10ebc2f9f2c73 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 f449bf430ee9e..52b46b8f8f223 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 99141b52cdd4c..88d051c32797b 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 a0402c5a348ee..d39c3dd196d31 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 05df5bc322f47..2f075c194fa4f 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 1322d11e48eff..f2ee039797753 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 f0edf39e69838..f7d9171d8bc04 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 bf82ed51fcfc1..19db0caef77c7 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 b0221f6dcbe95..8921ff19c81fc 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 d107e9ec4d2f9..97fcf308b5a3d 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 b6d7ce99289e5..a90479bc55c2b 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 ddaf462c0b29a..c747072c606ac 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 344f3d07cf06f..b4bf42b57240a 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 1521abd6ecc83..7e403995a0759 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 b7e1197960726..04b93fb1c575d 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 b79dd618f929c..690d259406bd9 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 fa0134aae1a9e..d3d8c9885c410 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 3eaf3b76a9e9c..ed3ca51d9dfa6 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 341629a9b98b9..3aac21dd7b665 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 e9b3e93ecda72..ecfeb800c858f 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 afe73bc5baa5c..14a019402fd34 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 30c21afa64c15..6fd909e878f70 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 085d31267b3a4..ba59ce8d1c2a3 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 af33f6c1f8677..0cbf63a4063cb 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 29177ff5f5903..39b1d64eb7d97 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 bb2d9166ef7cc..50830353127e2 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 e12b59eb1f3d8..5d2037c3f7ee6 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 2a2cefde1ef50..efbdfa2c29d85 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 697cd939f607a..f54768418ca68 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 439a25cd222fc..6ac9b94002a06 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 18be5a0dc48a6..5c5073c7eddba 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 0296d6b2eaaa1..03469770a331a 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 d7d8fb7e46987..3b7337d3f1cd0 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 dff2cc4c94a5b..07411a0117ed4 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 3c68ade753114..ae036bc3e9d00 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 648c54afd153d..78288da40e150 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 075c98b768f8e..1bb3d210d79ab 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 463d3b50816f6..27a4456e601fc 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 1a5de0ed58d69..dbf22d10347a5 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 cd5d6339f7b4f..46261b666fbba 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 0d1fff7ac4901..a655c69d2e723 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 34078d0a9e48c..b9f754fcf0da2 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 0816b0f8549d1..9fc83e34f99ad 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 5d340c766f235..884dec9a65f66 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 3aca86a53ed64..a8d04d6f28746 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 ba135af6cbcd1..1dc6ec38faf99 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 00f7163468d55..e1ba514b3f751 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 66e9d587dedfd..891230a2ded21 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 eb18dae0a1e7e..e85af944fcb54 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 f89bed16d59b4..9d68749428f43 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 78bbc87eece40..8e499fd6edace 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 fa3451b2cac19..ea272b9eae1e5 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 8756844b467c7..f02eb57b358fe 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 041a83679a080..2d2aec7c8a054 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 d473f14f651ac..b16536883278d 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 18ec52d7a417b..6f4518cab39e4 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 5ea35195412fb..cef4782e0f82d 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 3a6fa5f6786ba..0aadeb14195b0 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\NotNull; use Symfony\Component\Validator\ConstraintValidatorInterface; @@ -26,7 +27,7 @@ /** * @author Bernhard Schussek */ -abstract class AbstractConstraintValidatorTest extends \PHPUnit_Framework_TestCase +abstract class AbstractConstraintValidatorTest extends TestCase { /** * @var ExecutionContextInterface diff --git a/src/Symfony/Component/Validator/Tests/Constraints/AllTest.php b/src/Symfony/Component/Validator/Tests/Constraints/AllTest.php index 36b5198b0b2fa..25e71a1b44dc4 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 79f50b0b5b582..b5fbf6c0b0971 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 002b1336aab3f..6a8530723fb05 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 fbd4b074260b9..ac9c7bcc08113 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 aa2d601042c55..6326d0514ba3e 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 ea37bb4d6bd48..3291c77356f23 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 3de6ab3217a3e..83722fd2df0e0 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 ebf9696a3588c..a6737cf5b9d61 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 a2de306a2f46d..19b29227d6d8d 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 a5d1c239f8252..8e6e1bf7b448e 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 51b5a09802fe8..6240ba727a1cd 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 641bf919d4800..a323567d2316b 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 400c39ce4cfa9..1ebce65cc2029 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 078159971af83..2c21d09487d47 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 b68c88293f194..1fb2e6e7c8148 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 0e2ad41d697a0..fb776ae32c0a0 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 c131f28aea553..6fee7b6ff5407 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 c0a46cb0fdd04..49a8b5256d0b6 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 db4076cb7090f..069ccd322929e 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 2053e24856889..818094962ca27 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 15f02139ae318..a50b4b3020712 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 fafde341ac062..2ced2c739d419 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 e0ff920fe1ef3..f61545a5a2d48 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 8a766611cd4f9..14dd58fbeceb9 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 a8b9af9de85c9..235e1780d9078 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 d5ff2954f818c..1d8813d97a3d3 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 d41a791978bc4..77d586412b76b 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 006c1dc7a8f6c..b4366461f693e 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 0642c53716c5e..3ad921313ba9c 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 e6fd489448bd0..c3a8e1a6c948c 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 9f60032e0c62b..8ca59bdddfe71 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 84069d8aef9f8..c27ac5cc5c701 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 56966bacd333c..b25b6015f130b 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 e4eb9c98a15d1..4f01ab938e504 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 e1e0d5a614195..7e353b4e34be0 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 883ee835a096a..9e776ca497c06 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() { From cfb6107697fb4251deea03e4f68876ecbe748c34 Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Wed, 8 Feb 2017 12:22:41 +0100 Subject: [PATCH 05/10] Migrated to namespaced Assert --- .../Tests/OptionsResolver2Dot6Test.php | 55 ++++++++++--------- .../AbstractConstraintValidatorTest.php | 5 +- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php index 2bb862fc81cfc..fe77405d181e9 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php +++ b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php @@ -11,6 +11,7 @@ namespace Symfony\Component\OptionsResolver\Tests; +use PHPUnit\Framework\Assert; use PHPUnit\Framework\TestCase; use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; use Symfony\Component\OptionsResolver\Options; @@ -135,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); @@ -146,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); @@ -161,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'; }); @@ -178,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'; }); @@ -190,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! @@ -204,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'); @@ -217,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(); @@ -997,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(); @@ -1013,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(); @@ -1026,7 +1027,7 @@ public function testNormalizerCanAccessOtherOptions() $this->resolver->setNormalizer('norm', function (Options $options) { /* @var \PHPUnit\Framework\TestCase $test */ - \PHPUnit_Framework_Assert::assertSame('bar', $options['default']); + Assert::assertSame('bar', $options['default']); return 'normalized'; }); @@ -1046,7 +1047,7 @@ public function testNormalizerCanAccessLazyOptions() $this->resolver->setNormalizer('norm', function (Options $options) { /* @var \PHPUnit\Framework\TestCase $test */ - \PHPUnit_Framework_Assert::assertEquals('bar', $options['lazy']); + Assert::assertEquals('bar', $options['lazy']); return 'normalized'; }); @@ -1152,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(); @@ -1170,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()); @@ -1411,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 @@ -1526,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/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php index 0aadeb14195b0..73cdb53d297b6 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php @@ -11,6 +11,7 @@ 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; @@ -412,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); } } From fa3de4a64fff0d299890b5aeccb3e4343b775bd6 Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Sun, 12 Feb 2017 09:31:02 +0100 Subject: [PATCH 06/10] Try CacheWarmingTest with TwigBundle TestCase instead of the PHPUnit one --- .../Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php index 62d1a73eb3c8d..455ed0b6a8c0d 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php @@ -11,7 +11,6 @@ namespace Symfony\Bundle\TwigBundle\Tests; -use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Filesystem\Filesystem; From 211c7dc98f9f802ca00902a3d4e767bf47346c8d Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Sun, 12 Feb 2017 11:35:30 +0100 Subject: [PATCH 07/10] Same for NoTemplatingEntryTest --- .../Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php index e9fa6c5fc44d2..d07e0e946b2e7 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php @@ -11,7 +11,6 @@ namespace Symfony\Bundle\TwigBundle\Tests; -use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Filesystem\Filesystem; From 500cd4bc023d884df9b9019868016159728d92fe Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Mon, 13 Feb 2017 11:12:27 +0100 Subject: [PATCH 08/10] Updated composer conflict constraint --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7c81a0efff6fd..84a4a763f4d4e 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "psr/log": "~1.0" }, "conflict": { - "phpunit/phpunit": "< 4.8.35 || >=5.0 <=5.4.2" + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" }, "replace": { "symfony/asset": "self.version", From 2fb207b3cf7c6af4f7763a320b6497804a9d9d79 Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Mon, 13 Feb 2017 13:04:54 +0100 Subject: [PATCH 09/10] Added conflict header for the bridge --- src/Symfony/Bridge/PhpUnit/composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Bridge/PhpUnit/composer.json b/src/Symfony/Bridge/PhpUnit/composer.json index 39eb9ef2180fe..8f818d02db265 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\\": "" }, From 6b4544e1d077277c8b141bf58363dd466d9fe7b6 Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Mon, 13 Feb 2017 13:20:02 +0100 Subject: [PATCH 10/10] Updated doc blocks --- .../Component/Form/Tests/CompoundFormTest.php | 3 ++- .../Component/Form/Tests/ResolvedFormTypeTest.php | 8 ++++---- .../Tests/LegacyOptionsResolverTest.php | 6 +++--- .../OptionsResolver/Tests/LegacyOptionsTest.php | 12 ++++++------ .../Tests/OptionsResolver2Dot6Test.php | 4 ++-- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/Symfony/Component/Form/Tests/CompoundFormTest.php b/src/Symfony/Component/Form/Tests/CompoundFormTest.php index d677a427cb331..3738a4c953c0c 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/ResolvedFormTypeTest.php b/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php index bd1c4a6cbaecb..6ae8a85bcfc84 100644 --- a/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php +++ b/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php @@ -62,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; @@ -161,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; @@ -229,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; @@ -273,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/OptionsResolver/Tests/LegacyOptionsResolverTest.php b/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsResolverTest.php index 11290bc5bc154..c277425c4d7fa 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsResolverTest.php +++ b/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsResolverTest.php @@ -123,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'; @@ -147,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'; @@ -191,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 f989a5951f2bb..642d1d5e22fac 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsTest.php +++ b/src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsTest.php @@ -50,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'; @@ -70,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'; @@ -103,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'; @@ -121,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'; @@ -160,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'; @@ -179,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 fe77405d181e9..6d9ddaf5713c3 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php +++ b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php @@ -1026,7 +1026,7 @@ public function testNormalizerCanAccessOtherOptions() $this->resolver->setDefault('norm', 'baz'); $this->resolver->setNormalizer('norm', function (Options $options) { - /* @var \PHPUnit\Framework\TestCase $test */ + /* @var TestCase $test */ Assert::assertSame('bar', $options['default']); return 'normalized'; @@ -1046,7 +1046,7 @@ public function testNormalizerCanAccessLazyOptions() $this->resolver->setDefault('norm', 'baz'); $this->resolver->setNormalizer('norm', function (Options $options) { - /* @var \PHPUnit\Framework\TestCase $test */ + /* @var TestCase $test */ Assert::assertEquals('bar', $options['lazy']); return 'normalized';