Updated PHPUnit namespaces

This commit is contained in:
Peter Rehm 2017-02-20 14:34:33 +01:00
parent 95f30de91d
commit c2e80e3b8b
75 changed files with 152 additions and 75 deletions

View File

@ -2,11 +2,12 @@
namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection\CompilerPass; namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection\CompilerPass;
use PHPUnit\Framework\TestCase;
use Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterMappingsPass; use Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterMappingsPass;
use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
class RegisterMappingsPassTest extends \PHPUnit_Framework_TestCase class RegisterMappingsPassTest extends TestCase
{ {
/** /**
* @expectedException \InvalidArgumentException * @expectedException \InvalidArgumentException

View File

@ -12,13 +12,14 @@
namespace Symfony\Bridge\Doctrine\Tests\Form\EventListener; namespace Symfony\Bridge\Doctrine\Tests\Form\EventListener;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
use PHPUnit\Framework\TestCase;
use Symfony\Bridge\Doctrine\Form\EventListener\MergeDoctrineCollectionListener; use Symfony\Bridge\Doctrine\Form\EventListener\MergeDoctrineCollectionListener;
use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents; use Symfony\Component\Form\FormEvents;
class MergeDoctrineCollectionListenerTest extends \PHPUnit_Framework_TestCase class MergeDoctrineCollectionListenerTest extends TestCase
{ {
/** @var \Doctrine\Common\Collections\ArrayCollection */ /** @var \Doctrine\Common\Collections\ArrayCollection */
private $collection; private $collection;

View File

@ -11,10 +11,11 @@
namespace Symfony\Bridge\Doctrine\Tests; namespace Symfony\Bridge\Doctrine\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Bridge\Doctrine\ManagerRegistry; use Symfony\Bridge\Doctrine\ManagerRegistry;
use Symfony\Bridge\ProxyManager\Tests\LazyProxy\Dumper\PhpDumperTest; use Symfony\Bridge\ProxyManager\Tests\LazyProxy\Dumper\PhpDumperTest;
class ManagerRegistryTest extends \PHPUnit_Framework_TestCase class ManagerRegistryTest extends TestCase
{ {
public static function setUpBeforeClass() public static function setUpBeforeClass()
{ {

View File

@ -11,6 +11,7 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\Command; namespace Symfony\Bundle\FrameworkBundle\Tests\Command;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\Command\YamlLintCommand; use Symfony\Bundle\FrameworkBundle\Command\YamlLintCommand;
use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Application as BaseApplication; use Symfony\Component\Console\Application as BaseApplication;
@ -25,7 +26,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
* *
* @author Robin Chalas <robin.chalas@gmail.com> * @author Robin Chalas <robin.chalas@gmail.com>
*/ */
class YamlLintCommandTest extends \PHPUnit_Framework_TestCase class YamlLintCommandTest extends TestCase
{ {
private $files; private $files;

View File

@ -11,6 +11,7 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\CachePoolClearerPass; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\CachePoolClearerPass;
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\CachePoolPass; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\CachePoolPass;
use Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass; use Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass;
@ -19,7 +20,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Reference;
class CachePoolClearerPassTest extends \PHPUnit_Framework_TestCase class CachePoolClearerPassTest extends TestCase
{ {
public function testPoolRefsAreWeak() public function testPoolRefsAreWeak()
{ {

View File

@ -11,13 +11,14 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\CachePoolPass; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\CachePoolPass;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\DefinitionDecorator; use Symfony\Component\DependencyInjection\DefinitionDecorator;
use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Reference;
class CachePoolPassTest extends \PHPUnit_Framework_TestCase class CachePoolPassTest extends TestCase
{ {
private $cachePoolPass; private $cachePoolPass;

View File

@ -11,13 +11,14 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler; namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ControllerArgumentValueResolverPass; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ControllerArgumentValueResolverPass;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver; use Symfony\Component\HttpKernel\Controller\ArgumentResolver;
class ControllerArgumentValueResolverPassTest extends \PHPUnit_Framework_TestCase class ControllerArgumentValueResolverPassTest extends TestCase
{ {
public function testServicesAreOrderedAccordingToPriority() public function testServicesAreOrderedAccordingToPriority()
{ {

View File

@ -11,9 +11,10 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Security; namespace Symfony\Bundle\SecurityBundle\Tests\Security;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\SecurityBundle\Security\FirewallConfig; use Symfony\Bundle\SecurityBundle\Security\FirewallConfig;
class FirewallConfigTest extends \PHPUnit_Framework_TestCase class FirewallConfigTest extends TestCase
{ {
public function testGetters() public function testGetters()
{ {

View File

@ -11,12 +11,13 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Security; namespace Symfony\Bundle\SecurityBundle\Tests\Security;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\SecurityBundle\Security\FirewallConfig; use Symfony\Bundle\SecurityBundle\Security\FirewallConfig;
use Symfony\Bundle\SecurityBundle\Security\FirewallContext; use Symfony\Bundle\SecurityBundle\Security\FirewallContext;
use Symfony\Component\Security\Http\Firewall\ExceptionListener; use Symfony\Component\Security\Http\Firewall\ExceptionListener;
use Symfony\Component\Security\Http\Firewall\ListenerInterface; use Symfony\Component\Security\Http\Firewall\ListenerInterface;
class FirewallContextTest extends \PHPUnit_Framework_TestCase class FirewallContextTest extends TestCase
{ {
public function testGetters() public function testGetters()
{ {

View File

@ -11,6 +11,7 @@
namespace Symfony\Bundle\SecurityBundle\Tests; namespace Symfony\Bundle\SecurityBundle\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\SecurityBundle\SecurityUserValueResolver; use Symfony\Bundle\SecurityBundle\SecurityUserValueResolver;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver; use Symfony\Component\HttpKernel\Controller\ArgumentResolver;
@ -20,7 +21,7 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\User\UserInterface;
class SecurityUserValueResolverTest extends \PHPUnit_Framework_TestCase class SecurityUserValueResolverTest extends TestCase
{ {
public function testResolveNoToken() public function testResolveNoToken()
{ {

View File

@ -11,11 +11,12 @@
namespace Symfony\Bundle\WebProfilerBundle\Tests\Csp; namespace Symfony\Bundle\WebProfilerBundle\Tests\Csp;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\WebProfilerBundle\Csp\ContentSecurityPolicyHandler; use Symfony\Bundle\WebProfilerBundle\Csp\ContentSecurityPolicyHandler;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
class ContentSecurityPolicyHandlerTest extends \PHPUnit_Framework_TestCase class ContentSecurityPolicyHandlerTest extends TestCase
{ {
/** /**
* @dataProvider provideRequestAndResponses * @dataProvider provideRequestAndResponses

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Cache\Tests\Adapter; namespace Symfony\Component\Cache\Tests\Adapter;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Adapter\AbstractAdapter; use Symfony\Component\Cache\Adapter\AbstractAdapter;
class MaxIdLengthAdapterTest extends \PHPUnit_Framework_TestCase class MaxIdLengthAdapterTest extends TestCase
{ {
public function testLongKey() public function testLongKey()
{ {

View File

@ -11,13 +11,14 @@
namespace Symfony\Component\Cache\Tests\Adapter; namespace Symfony\Component\Cache\Tests\Adapter;
use PHPUnit\Framework\TestCase;
use Psr\Cache\CacheItemInterface; use Psr\Cache\CacheItemInterface;
use Symfony\Component\Cache\Adapter\NullAdapter; use Symfony\Component\Cache\Adapter\NullAdapter;
/** /**
* @group time-sensitive * @group time-sensitive
*/ */
class NullAdapterTest extends \PHPUnit_Framework_TestCase class NullAdapterTest extends TestCase
{ {
public function createCachePool() public function createCachePool()
{ {

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Cache\Tests; namespace Symfony\Component\Cache\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\CacheItem; use Symfony\Component\Cache\CacheItem;
class CacheItemTest extends \PHPUnit_Framework_TestCase class CacheItemTest extends TestCase
{ {
public function testValidKey() public function testValidKey()
{ {

View File

@ -12,10 +12,11 @@
namespace Symfony\Component\Cache\Tests; namespace Symfony\Component\Cache\Tests;
use Doctrine\Common\Cache\CacheProvider; use Doctrine\Common\Cache\CacheProvider;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Component\Cache\DoctrineProvider; use Symfony\Component\Cache\DoctrineProvider;
class DoctrineProviderTest extends \PHPUnit_Framework_TestCase class DoctrineProviderTest extends TestCase
{ {
public function testProvider() public function testProvider()
{ {

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Config\Tests\Definition\Builder; namespace Symfony\Component\Config\Tests\Definition\Builder;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition; use Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition;
class BooleanNodeDefinitionTest extends \PHPUnit_Framework_TestCase class BooleanNodeDefinitionTest extends TestCase
{ {
/** /**
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidDefinitionException * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidDefinitionException

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Config\Tests\Resource; namespace Symfony\Component\Config\Tests\Resource;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Resource\ClassExistenceResource; use Symfony\Component\Config\Resource\ClassExistenceResource;
class ClassExistenceResourceTest extends \PHPUnit_Framework_TestCase class ClassExistenceResourceTest extends TestCase
{ {
public function testToString() public function testToString()
{ {

View File

@ -11,10 +11,11 @@
namespace Symfony\Component\Console\Tests\Command; namespace Symfony\Component\Console\Tests\Command;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\Filesystem\LockHandler; use Symfony\Component\Filesystem\LockHandler;
class LockableTraitTest extends \PHPUnit_Framework_TestCase class LockableTraitTest extends TestCase
{ {
protected static $fixturesPath; protected static $fixturesPath;

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Console\Tests\Helper; namespace Symfony\Component\Console\Tests\Helper;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Input\StreamableInputInterface; use Symfony\Component\Console\Input\StreamableInputInterface;
abstract class AbstractQuestionHelperTest extends \PHPUnit_Framework_TestCase abstract class AbstractQuestionHelperTest extends TestCase
{ {
protected function createStreamableInputInterfaceMock($stream = null, $interactive = true) protected function createStreamableInputInterfaceMock($stream = null, $interactive = true)
{ {

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Console\Tests; namespace Symfony\Component\Console\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Terminal; use Symfony\Component\Console\Terminal;
class TerminalTest extends \PHPUnit_Framework_TestCase class TerminalTest extends TestCase
{ {
public function test() public function test()
{ {

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\DependencyInjection\Tests\Compiler; namespace Symfony\Component\DependencyInjection\Tests\Compiler;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Compiler\FactoryReturnTypePass; use Symfony\Component\DependencyInjection\Compiler\FactoryReturnTypePass;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Reference;
@ -21,7 +22,7 @@ use Symfony\Component\DependencyInjection\Tests\Fixtures\FactoryParent;
/** /**
* @author Guilhem N. <egetick@gmail.com> * @author Guilhem N. <egetick@gmail.com>
*/ */
class FactoryReturnTypePassTest extends \PHPUnit_Framework_TestCase class FactoryReturnTypePassTest extends TestCase
{ {
public function testProcess() public function testProcess()
{ {

View File

@ -11,13 +11,14 @@
namespace Symfony\Component\DependencyInjection\Tests\Compiler; namespace Symfony\Component\DependencyInjection\Tests\Compiler;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Compiler\PassConfig; use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
/** /**
* @author Guilhem N <egetick@gmail.com> * @author Guilhem N <egetick@gmail.com>
*/ */
class PassConfigTest extends \PHPUnit_Framework_TestCase class PassConfigTest extends TestCase
{ {
public function testPassOrdering() public function testPassOrdering()
{ {

View File

@ -11,11 +11,12 @@
namespace Symfony\Component\DependencyInjection\Tests\Compiler; namespace Symfony\Component\DependencyInjection\Tests\Compiler;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait; use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Reference;
class PriorityTaggedServiceTraitTest extends \PHPUnit_Framework_TestCase class PriorityTaggedServiceTraitTest extends TestCase
{ {
public function testThatCacheWarmersAreProcessedInPriorityOrder() public function testThatCacheWarmersAreProcessedInPriorityOrder()
{ {

View File

@ -11,10 +11,11 @@
namespace Symfony\Component\DependencyInjection\Tests\Config; namespace Symfony\Component\DependencyInjection\Tests\Config;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Compiler\AutowirePass; use Symfony\Component\DependencyInjection\Compiler\AutowirePass;
use Symfony\Component\DependencyInjection\Config\AutowireServiceResource; use Symfony\Component\DependencyInjection\Config\AutowireServiceResource;
class AutowireServiceResourceTest extends \PHPUnit_Framework_TestCase class AutowireServiceResourceTest extends TestCase
{ {
/** /**
* @var AutowireServiceResource * @var AutowireServiceResource

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\DependencyInjection\Tests\ParameterBag; namespace Symfony\Component\DependencyInjection\Tests\ParameterBag;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ParameterBag\EnvPlaceholderParameterBag; use Symfony\Component\DependencyInjection\ParameterBag\EnvPlaceholderParameterBag;
class EnvPlaceholderParameterBagTest extends \PHPUnit_Framework_TestCase class EnvPlaceholderParameterBagTest extends TestCase
{ {
/** /**
* @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException * @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\DomCrawler\Tests; namespace Symfony\Component\DomCrawler\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DomCrawler\Image; use Symfony\Component\DomCrawler\Image;
class ImageTest extends \PHPUnit_Framework_TestCase class ImageTest extends TestCase
{ {
/** /**
* @expectedException \LogicException * @expectedException \LogicException

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\ExpressionLanguage\Tests; namespace Symfony\Component\ExpressionLanguage\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\ExpressionLanguage\ParsedExpression; use Symfony\Component\ExpressionLanguage\ParsedExpression;
use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheAdapter; use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheAdapter;
use Symfony\Component\ExpressionLanguage\Node\Node; use Symfony\Component\ExpressionLanguage\Node\Node;
@ -18,7 +19,7 @@ use Symfony\Component\ExpressionLanguage\Node\Node;
/** /**
* @group legacy * @group legacy
*/ */
class ParserCacheAdapterTest extends \PHPUnit_Framework_TestCase class ParserCacheAdapterTest extends TestCase
{ {
public function testGetItem() public function testGetItem()
{ {

View File

@ -11,13 +11,14 @@
namespace Symfony\Component\Form\Tests\ChoiceList\Loader; namespace Symfony\Component\Form\Tests\ChoiceList\Loader;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Form\ChoiceList\LazyChoiceList; use Symfony\Component\Form\ChoiceList\LazyChoiceList;
use Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader; use Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader;
/** /**
* @author Jules Pietri <jules@heahprod.com> * @author Jules Pietri <jules@heahprod.com>
*/ */
class CallbackChoiceLoaderTest extends \PHPUnit_Framework_TestCase class CallbackChoiceLoaderTest extends TestCase
{ {
/** /**
* @var \Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader * @var \Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader

View File

@ -11,7 +11,9 @@
namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer; namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer;
abstract class DateIntervalTestCase extends \PHPUnit_Framework_TestCase use PHPUnit\Framework\TestCase;
abstract class DateIntervalTestCase extends TestCase
{ {
public static function assertDateIntervalEquals(\DateInterval $expected, \DateInterval $actual) public static function assertDateIntervalEquals(\DateInterval $expected, \DateInterval $actual)
{ {

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\HttpKernel\Tests\Controller; namespace Symfony\Component\HttpKernel\Tests\Controller;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver; use Symfony\Component\HttpKernel\Controller\ArgumentResolver;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver; use Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver; use Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver;
@ -23,7 +24,7 @@ use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\NullableController;
use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\VariadicController; use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\VariadicController;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
class ArgumentResolverTest extends \PHPUnit_Framework_TestCase class ArgumentResolverTest extends TestCase
{ {
/** @var ArgumentResolver */ /** @var ArgumentResolver */
private static $resolver; private static $resolver;

View File

@ -12,13 +12,14 @@
namespace Symfony\Component\HttpKernel\Tests\ControllerMetadata; namespace Symfony\Component\HttpKernel\Tests\ControllerMetadata;
use Fake\ImportedAndFake; use Fake\ImportedAndFake;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata; use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory; use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory;
use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\BasicTypesController; use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\BasicTypesController;
use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\NullableController; use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\NullableController;
use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\VariadicController; use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\VariadicController;
class ArgumentMetadataFactoryTest extends \PHPUnit_Framework_TestCase class ArgumentMetadataFactoryTest extends TestCase
{ {
/** /**
* @var ArgumentMetadataFactory * @var ArgumentMetadataFactory

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\HttpKernel\Tests\ControllerMetadata; namespace Symfony\Component\HttpKernel\Tests\ControllerMetadata;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata; use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;
class ArgumentMetadataTest extends \PHPUnit_Framework_TestCase class ArgumentMetadataTest extends TestCase
{ {
public function testWithBcLayerWithDefault() public function testWithBcLayerWithDefault()
{ {

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\HttpKernel\Tests\DataCollector; namespace Symfony\Component\HttpKernel\Tests\DataCollector;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Tests\Fixtures\DataCollector\CloneVarDataCollector; use Symfony\Component\HttpKernel\Tests\Fixtures\DataCollector\CloneVarDataCollector;
@ -18,7 +19,7 @@ use Symfony\Component\VarDumper\Cloner\Stub;
use Symfony\Component\VarDumper\Cloner\VarCloner; use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\CliDumper; use Symfony\Component\VarDumper\Dumper\CliDumper;
class DataCollectorTest extends \PHPUnit_Framework_TestCase class DataCollectorTest extends TestCase
{ {
public function testCloneVarStringWithScheme() public function testCloneVarStringWithScheme()
{ {

View File

@ -11,11 +11,12 @@
namespace Symfony\Component\HttpKernel\Tests\Debug; namespace Symfony\Component\HttpKernel\Tests\Debug;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\Debug\FileLinkFormatter; use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
class FileLinkFormatterTest extends \PHPUnit_Framework_TestCase class FileLinkFormatterTest extends TestCase
{ {
public function testWhenNoFileLinkFormatAndNoRequest() public function testWhenNoFileLinkFormatAndNoRequest()
{ {

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\HttpKernel\Tests\DependencyInjection; namespace Symfony\Component\HttpKernel\Tests\DependencyInjection;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\DependencyInjection\AddClassesToCachePass; use Symfony\Component\HttpKernel\DependencyInjection\AddClassesToCachePass;
class AddClassesToCachePassTest extends \PHPUnit_Framework_TestCase class AddClassesToCachePassTest extends TestCase
{ {
public function testExpandClasses() public function testExpandClasses()
{ {

View File

@ -2,9 +2,10 @@
namespace Symfony\Component\HttpKernel\Tests\Exception; namespace Symfony\Component\HttpKernel\Tests\Exception;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
class HttpExceptionTest extends \PHPUnit_Framework_TestCase class HttpExceptionTest extends TestCase
{ {
public function headerDataProvider() public function headerDataProvider()
{ {

View File

@ -11,10 +11,11 @@
namespace Symfony\Component\HttpKernel\Tests\Profiler; namespace Symfony\Component\HttpKernel\Tests\Profiler;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\Profiler\FileProfilerStorage; use Symfony\Component\HttpKernel\Profiler\FileProfilerStorage;
use Symfony\Component\HttpKernel\Profiler\Profile; use Symfony\Component\HttpKernel\Profiler\Profile;
class FileProfilerStorageTest extends \PHPUnit_Framework_TestCase class FileProfilerStorageTest extends TestCase
{ {
private $tmpDir; private $tmpDir;
private $storage; private $storage;

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Inflector\Tests; namespace Symfony\Component\Inflector\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Inflector\Inflector; use Symfony\Component\Inflector\Inflector;
class InflectorTest extends \PHPUnit_Framework_TestCase class InflectorTest extends TestCase
{ {
public function singularizeProvider() public function singularizeProvider()
{ {

View File

@ -11,12 +11,13 @@
namespace Symfony\Component\Ldap\Tests; namespace Symfony\Component\Ldap\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Ldap\Adapter\AdapterInterface; use Symfony\Component\Ldap\Adapter\AdapterInterface;
use Symfony\Component\Ldap\Adapter\ConnectionInterface; use Symfony\Component\Ldap\Adapter\ConnectionInterface;
use Symfony\Component\Ldap\Exception\DriverNotFoundException; use Symfony\Component\Ldap\Exception\DriverNotFoundException;
use Symfony\Component\Ldap\Ldap; use Symfony\Component\Ldap\Ldap;
class LdapTest extends \PHPUnit_Framework_TestCase class LdapTest extends TestCase
{ {
/** @var \PHPUnit_Framework_MockObject_MockObject */ /** @var \PHPUnit_Framework_MockObject_MockObject */
private $adapter; private $adapter;

View File

@ -2,7 +2,9 @@
namespace Symfony\Component\Ldap\Tests; namespace Symfony\Component\Ldap\Tests;
class LdapTestCase extends \PHPUnit_Framework_TestCase use PHPUnit\Framework\TestCase;
class LdapTestCase extends TestCase
{ {
protected function getLdapConfig() protected function getLdapConfig()
{ {

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\PropertyInfo\Tests; namespace Symfony\Component\PropertyInfo\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\PropertyInfo\PropertyInfoExtractor; use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
use Symfony\Component\PropertyInfo\Tests\Fixtures\DummyExtractor; use Symfony\Component\PropertyInfo\Tests\Fixtures\DummyExtractor;
use Symfony\Component\PropertyInfo\Tests\Fixtures\NullExtractor; use Symfony\Component\PropertyInfo\Tests\Fixtures\NullExtractor;
@ -19,7 +20,7 @@ use Symfony\Component\PropertyInfo\Type;
/** /**
* @author Kévin Dunglas <dunglas@gmail.com> * @author Kévin Dunglas <dunglas@gmail.com>
*/ */
class AbstractPropertyInfoExtractorTest extends \PHPUnit_Framework_TestCase class AbstractPropertyInfoExtractorTest extends TestCase
{ {
/** /**
* @var PropertyInfoExtractor * @var PropertyInfoExtractor

View File

@ -11,11 +11,12 @@
namespace Symfony\Component\Security\Core\Tests\Authorization; namespace Symfony\Component\Security\Core\Tests\Authorization;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager; use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
use Symfony\Component\Security\Core\Authorization\DebugAccessDecisionManager; use Symfony\Component\Security\Core\Authorization\DebugAccessDecisionManager;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
class DebugAccessDecisionManagerTest extends \PHPUnit_Framework_TestCase class DebugAccessDecisionManagerTest extends TestCase
{ {
/** /**
* @dataProvider provideObjectsAndLogs * @dataProvider provideObjectsAndLogs

View File

@ -2,10 +2,11 @@
namespace Symfony\Component\Security\Http\Tests\Util; namespace Symfony\Component\Security\Http\Tests\Util;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Security\Http\Util\TargetPathTrait; use Symfony\Component\Security\Http\Util\TargetPathTrait;
class TargetPathTraitTest extends \PHPUnit_Framework_TestCase class TargetPathTraitTest extends TestCase
{ {
public function testSetTargetPath() public function testSetTargetPath()
{ {

View File

@ -11,12 +11,13 @@
namespace Symfony\Component\Serializer\Tests\Annotation; namespace Symfony\Component\Serializer\Tests\Annotation;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Serializer\Annotation\MaxDepth; use Symfony\Component\Serializer\Annotation\MaxDepth;
/** /**
* @author Kévin Dunglas <dunglas@gmail.com> * @author Kévin Dunglas <dunglas@gmail.com>
*/ */
class MaxDepthTest extends \PHPUnit_Framework_TestCase class MaxDepthTest extends TestCase
{ {
/** /**
* @expectedException \Symfony\Component\Serializer\Exception\InvalidArgumentException * @expectedException \Symfony\Component\Serializer\Exception\InvalidArgumentException

View File

@ -11,12 +11,13 @@
namespace Symfony\Component\Serializer\Tests\Encoder; namespace Symfony\Component\Serializer\Tests\Encoder;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Serializer\Encoder\CsvEncoder; use Symfony\Component\Serializer\Encoder\CsvEncoder;
/** /**
* @author Kévin Dunglas <dunglas@gmail.com> * @author Kévin Dunglas <dunglas@gmail.com>
*/ */
class CsvEncoderTest extends \PHPUnit_Framework_TestCase class CsvEncoderTest extends TestCase
{ {
/** /**
* @var CsvEncoder * @var CsvEncoder

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\Serializer\Tests\Encoder; namespace Symfony\Component\Serializer\Tests\Encoder;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Serializer\Encoder\YamlEncoder; use Symfony\Component\Serializer\Encoder\YamlEncoder;
use Symfony\Component\Yaml\Dumper; use Symfony\Component\Yaml\Dumper;
use Symfony\Component\Yaml\Parser; use Symfony\Component\Yaml\Parser;
@ -19,7 +20,7 @@ use Symfony\Component\Yaml\Yaml;
/** /**
* @author Kévin Dunglas <dunglas@gmail.com> * @author Kévin Dunglas <dunglas@gmail.com>
*/ */
class YamlEncoderTest extends \PHPUnit_Framework_TestCase class YamlEncoderTest extends TestCase
{ {
public function testEncode() public function testEncode()
{ {

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\Serializer\Tests\Mapping\Factory; namespace Symfony\Component\Serializer\Tests\Mapping\Factory;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Component\Serializer\Mapping\ClassMetadata; use Symfony\Component\Serializer\Mapping\ClassMetadata;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
@ -20,7 +21,7 @@ use Symfony\Component\Serializer\Tests\Fixtures\Dummy;
/** /**
* @author Kévin Dunglas <dunglas@gmail.com> * @author Kévin Dunglas <dunglas@gmail.com>
*/ */
class CacheMetadataFactoryTest extends \PHPUnit_Framework_TestCase class CacheMetadataFactoryTest extends TestCase
{ {
public function testGetMetadataFor() public function testGetMetadataFor()
{ {

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Serializer\Tests\Normalizer; namespace Symfony\Component\Serializer\Tests\Normalizer;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer; use Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer;
class AbstractObjectNormalizerTest extends \PHPUnit_Framework_TestCase class AbstractObjectNormalizerTest extends TestCase
{ {
public function testDenormalize() public function testDenormalize()
{ {

View File

@ -11,13 +11,14 @@
namespace Symfony\Component\Serializer\Tests\Normalizer; namespace Symfony\Component\Serializer\Tests\Normalizer;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\Serializer\Normalizer\DataUriNormalizer; use Symfony\Component\Serializer\Normalizer\DataUriNormalizer;
/** /**
* @author Kévin Dunglas <dunglas@gmail.com> * @author Kévin Dunglas <dunglas@gmail.com>
*/ */
class DataUriNormalizerTest extends \PHPUnit_Framework_TestCase class DataUriNormalizerTest extends TestCase
{ {
const TEST_GIF_DATA = 'data:image/gif;base64,R0lGODdhAQABAIAAAP///////ywAAAAAAQABAAACAkQBADs='; const TEST_GIF_DATA = 'data:image/gif;base64,R0lGODdhAQABAIAAAP///////ywAAAAAAQABAAACAkQBADs=';
const TEST_TXT_DATA = 'data:text/plain,K%C3%A9vin%20Dunglas%0A'; const TEST_TXT_DATA = 'data:text/plain,K%C3%A9vin%20Dunglas%0A';

View File

@ -11,12 +11,13 @@
namespace Symfony\Component\Serializer\Tests\Normalizer; namespace Symfony\Component\Serializer\Tests\Normalizer;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer; use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
/** /**
* @author Kévin Dunglas <dunglas@gmail.com> * @author Kévin Dunglas <dunglas@gmail.com>
*/ */
class DateTimeNormalizerTest extends \PHPUnit_Framework_TestCase class DateTimeNormalizerTest extends TestCase
{ {
/** /**
* @var DateTimeNormalizer * @var DateTimeNormalizer

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\Serializer\Tests\Normalizer; namespace Symfony\Component\Serializer\Tests\Normalizer;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer; use Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use Symfony\Component\Serializer\SerializerInterface; use Symfony\Component\Serializer\SerializerInterface;
@ -19,7 +20,7 @@ use Symfony\Component\Serializer\Tests\Fixtures\JsonSerializableDummy;
/** /**
* @author Fred Cox <mcfedr@gmail.com> * @author Fred Cox <mcfedr@gmail.com>
*/ */
class JsonSerializableNormalizerTest extends \PHPUnit_Framework_TestCase class JsonSerializableNormalizerTest extends TestCase
{ {
/** /**
* @var JsonSerializableNormalizer * @var JsonSerializableNormalizer

View File

@ -11,13 +11,14 @@
namespace Symfony\Component\VarDumper\Tests\Caster; namespace Symfony\Component\VarDumper\Tests\Caster;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Caster\Caster; use Symfony\Component\VarDumper\Caster\Caster;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
/** /**
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*/ */
class CasterTest extends \PHPUnit_Framework_TestCase class CasterTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -11,13 +11,14 @@
namespace Symfony\Component\VarDumper\Tests\Caster; namespace Symfony\Component\VarDumper\Tests\Caster;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Caster\ExceptionCaster; use Symfony\Component\VarDumper\Caster\ExceptionCaster;
use Symfony\Component\VarDumper\Caster\FrameStub; use Symfony\Component\VarDumper\Caster\FrameStub;
use Symfony\Component\VarDumper\Cloner\VarCloner; use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\HtmlDumper; use Symfony\Component\VarDumper\Dumper\HtmlDumper;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
class ExceptionCasterTest extends \PHPUnit_Framework_TestCase class ExceptionCasterTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -11,13 +11,14 @@
namespace Symfony\Component\VarDumper\Tests\Caster; namespace Symfony\Component\VarDumper\Tests\Caster;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
/** /**
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
* @requires extension redis * @requires extension redis
*/ */
class RedisCasterTest extends \PHPUnit_Framework_TestCase class RedisCasterTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\VarDumper\Tests\Caster; namespace Symfony\Component\VarDumper\Tests\Caster;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
use Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo; use Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo;
use Symfony\Component\VarDumper\Tests\Fixtures\NotLoadableClass; use Symfony\Component\VarDumper\Tests\Fixtures\NotLoadableClass;
@ -18,7 +19,7 @@ use Symfony\Component\VarDumper\Tests\Fixtures\NotLoadableClass;
/** /**
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*/ */
class ReflectionCasterTest extends \PHPUnit_Framework_TestCase class ReflectionCasterTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -11,12 +11,13 @@
namespace Symfony\Component\VarDumper\Tests\Caster; namespace Symfony\Component\VarDumper\Tests\Caster;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
/** /**
* @author Grégoire Pineau <lyrixx@lyrixx.info> * @author Grégoire Pineau <lyrixx@lyrixx.info>
*/ */
class SplCasterTest extends \PHPUnit_Framework_TestCase class SplCasterTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\VarDumper\Tests\Caster; namespace Symfony\Component\VarDumper\Tests\Caster;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Caster\ArgsStub; use Symfony\Component\VarDumper\Caster\ArgsStub;
use Symfony\Component\VarDumper\Caster\ClassStub; use Symfony\Component\VarDumper\Caster\ClassStub;
use Symfony\Component\VarDumper\Caster\LinkStub; use Symfony\Component\VarDumper\Caster\LinkStub;
@ -19,7 +20,7 @@ use Symfony\Component\VarDumper\Dumper\HtmlDumper;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
use Symfony\Component\VarDumper\Tests\Fixtures\FooInterface; use Symfony\Component\VarDumper\Tests\Fixtures\FooInterface;
class StubCasterTest extends \PHPUnit_Framework_TestCase class StubCasterTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -11,12 +11,13 @@
namespace Symfony\Component\VarDumper\Tests\Caster; namespace Symfony\Component\VarDumper\Tests\Caster;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
/** /**
* @author Baptiste Clavié <clavie.b@gmail.com> * @author Baptiste Clavié <clavie.b@gmail.com>
*/ */
class XmlReaderCasterTest extends \PHPUnit_Framework_TestCase class XmlReaderCasterTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\VarDumper\Tests; namespace Symfony\Component\VarDumper\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Cloner\VarCloner; use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\CliDumper; use Symfony\Component\VarDumper\Dumper\CliDumper;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
@ -18,7 +19,7 @@ use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
/** /**
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*/ */
class CliDumperTest extends \PHPUnit_Framework_TestCase class CliDumperTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\VarDumper\Tests\Test; namespace Symfony\Component\VarDumper\Tests\Test;
use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
class VarDumperTestTraitTest extends \PHPUnit_Framework_TestCase class VarDumperTestTraitTest extends TestCase
{ {
use VarDumperTestTrait; use VarDumperTestTrait;

View File

@ -2,10 +2,11 @@
namespace Symfony\Component\Workflow\Tests; namespace Symfony\Component\Workflow\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\DefinitionBuilder; use Symfony\Component\Workflow\DefinitionBuilder;
use Symfony\Component\Workflow\Transition; use Symfony\Component\Workflow\Transition;
class DefinitionBuilderTest extends \PHPUnit_Framework_TestCase class DefinitionBuilderTest extends TestCase
{ {
/** /**
* @expectedException \Symfony\Component\Workflow\Exception\InvalidArgumentException * @expectedException \Symfony\Component\Workflow\Exception\InvalidArgumentException

View File

@ -2,10 +2,11 @@
namespace Symfony\Component\Workflow\Tests; namespace Symfony\Component\Workflow\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Definition; use Symfony\Component\Workflow\Definition;
use Symfony\Component\Workflow\Transition; use Symfony\Component\Workflow\Transition;
class DefinitionTest extends \PHPUnit_Framework_TestCase class DefinitionTest extends TestCase
{ {
public function testAddPlaces() public function testAddPlaces()
{ {

View File

@ -2,11 +2,12 @@
namespace Symfony\Component\Workflow\Tests\Dumper; namespace Symfony\Component\Workflow\Tests\Dumper;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Dumper\GraphvizDumper; use Symfony\Component\Workflow\Dumper\GraphvizDumper;
use Symfony\Component\Workflow\Marking; use Symfony\Component\Workflow\Marking;
use Symfony\Component\Workflow\Tests\WorkflowBuilderTrait; use Symfony\Component\Workflow\Tests\WorkflowBuilderTrait;
class GraphvizDumperTest extends \PHPUnit_Framework_TestCase class GraphvizDumperTest extends TestCase
{ {
use WorkflowBuilderTrait; use WorkflowBuilderTrait;

View File

@ -2,11 +2,12 @@
namespace Symfony\Component\Workflow\Tests\Dumper; namespace Symfony\Component\Workflow\Tests\Dumper;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Dumper\StateMachineGraphvizDumper; use Symfony\Component\Workflow\Dumper\StateMachineGraphvizDumper;
use Symfony\Component\Workflow\Marking; use Symfony\Component\Workflow\Marking;
use Symfony\Component\Workflow\Tests\WorkflowBuilderTrait; use Symfony\Component\Workflow\Tests\WorkflowBuilderTrait;
class StateMachineGraphvizDumperTest extends \PHPUnit_Framework_TestCase class StateMachineGraphvizDumperTest extends TestCase
{ {
use WorkflowBuilderTrait; use WorkflowBuilderTrait;

View File

@ -2,6 +2,7 @@
namespace Symfony\Component\Workflow\Tests\EventListener; namespace Symfony\Component\Workflow\Tests\EventListener;
use PHPUnit\Framework\TestCase;
use Psr\Log\AbstractLogger; use Psr\Log\AbstractLogger;
use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\Workflow\EventListener\AuditTrailListener; use Symfony\Component\Workflow\EventListener\AuditTrailListener;
@ -11,7 +12,7 @@ use Symfony\Component\Workflow\Tests\createSimpleWorkflowDefinition;
use Symfony\Component\Workflow\Transition; use Symfony\Component\Workflow\Transition;
use Symfony\Component\Workflow\Workflow; use Symfony\Component\Workflow\Workflow;
class AuditTrailListenerTest extends \PHPUnit_Framework_TestCase class AuditTrailListenerTest extends TestCase
{ {
use WorkflowBuilderTrait; use WorkflowBuilderTrait;

View File

@ -2,10 +2,11 @@
namespace Symfony\Component\Workflow\Tests\MarkingStore; namespace Symfony\Component\Workflow\Tests\MarkingStore;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Marking; use Symfony\Component\Workflow\Marking;
use Symfony\Component\Workflow\MarkingStore\MultipleStateMarkingStore; use Symfony\Component\Workflow\MarkingStore\MultipleStateMarkingStore;
class MultipleStateMarkingStoreTest extends \PHPUnit_Framework_TestCase class MultipleStateMarkingStoreTest extends TestCase
{ {
public function testGetSetMarking() public function testGetSetMarking()
{ {

View File

@ -2,10 +2,11 @@
namespace Symfony\Component\Workflow\Tests\MarkingStore; namespace Symfony\Component\Workflow\Tests\MarkingStore;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Marking; use Symfony\Component\Workflow\Marking;
use Symfony\Component\Workflow\MarkingStore\SingleStateMarkingStore; use Symfony\Component\Workflow\MarkingStore\SingleStateMarkingStore;
class SingleStateMarkingStoreTest extends \PHPUnit_Framework_TestCase class SingleStateMarkingStoreTest extends TestCase
{ {
public function testGetSetMarking() public function testGetSetMarking()
{ {

View File

@ -2,9 +2,10 @@
namespace Symfony\Component\Workflow\Tests; namespace Symfony\Component\Workflow\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Marking; use Symfony\Component\Workflow\Marking;
class MarkingTest extends \PHPUnit_Framework_TestCase class MarkingTest extends TestCase
{ {
public function testMarking() public function testMarking()
{ {

View File

@ -2,13 +2,14 @@
namespace Symfony\Component\Workflow\Tests; namespace Symfony\Component\Workflow\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Workflow\Definition; use Symfony\Component\Workflow\Definition;
use Symfony\Component\Workflow\MarkingStore\MarkingStoreInterface; use Symfony\Component\Workflow\MarkingStore\MarkingStoreInterface;
use Symfony\Component\Workflow\Registry; use Symfony\Component\Workflow\Registry;
use Symfony\Component\Workflow\Workflow; use Symfony\Component\Workflow\Workflow;
class RegistryTest extends \PHPUnit_Framework_TestCase class RegistryTest extends TestCase
{ {
private $registry; private $registry;

View File

@ -2,9 +2,10 @@
namespace Symfony\Component\Workflow\Tests; namespace Symfony\Component\Workflow\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\StateMachine; use Symfony\Component\Workflow\StateMachine;
class StateMachineTest extends \PHPUnit_Framework_TestCase class StateMachineTest extends TestCase
{ {
use WorkflowBuilderTrait; use WorkflowBuilderTrait;

View File

@ -2,9 +2,10 @@
namespace Symfony\Component\Workflow\Tests; namespace Symfony\Component\Workflow\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Transition; use Symfony\Component\Workflow\Transition;
class TransitionTest extends \PHPUnit_Framework_TestCase class TransitionTest extends TestCase
{ {
/** /**
* @expectedException \Symfony\Component\Workflow\Exception\InvalidArgumentException * @expectedException \Symfony\Component\Workflow\Exception\InvalidArgumentException

View File

@ -2,11 +2,12 @@
namespace Symfony\Component\Workflow\Tests\Validator; namespace Symfony\Component\Workflow\Tests\Validator;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Definition; use Symfony\Component\Workflow\Definition;
use Symfony\Component\Workflow\Transition; use Symfony\Component\Workflow\Transition;
use Symfony\Component\Workflow\Validator\StateMachineValidator; use Symfony\Component\Workflow\Validator\StateMachineValidator;
class StateMachineValidatorTest extends \PHPUnit_Framework_TestCase class StateMachineValidatorTest extends TestCase
{ {
/** /**
* @expectedException \Symfony\Component\Workflow\Exception\InvalidDefinitionException * @expectedException \Symfony\Component\Workflow\Exception\InvalidDefinitionException

View File

@ -2,12 +2,13 @@
namespace Symfony\Component\Workflow\Tests\Validator; namespace Symfony\Component\Workflow\Tests\Validator;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\Definition; use Symfony\Component\Workflow\Definition;
use Symfony\Component\Workflow\Tests\WorkflowBuilderTrait; use Symfony\Component\Workflow\Tests\WorkflowBuilderTrait;
use Symfony\Component\Workflow\Transition; use Symfony\Component\Workflow\Transition;
use Symfony\Component\Workflow\Validator\WorkflowValidator; use Symfony\Component\Workflow\Validator\WorkflowValidator;
class WorkflowValidatorTest extends \PHPUnit_Framework_TestCase class WorkflowValidatorTest extends TestCase
{ {
use WorkflowBuilderTrait; use WorkflowBuilderTrait;

View File

@ -2,6 +2,7 @@
namespace Symfony\Component\Workflow\Tests; namespace Symfony\Component\Workflow\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\Workflow\Definition; use Symfony\Component\Workflow\Definition;
use Symfony\Component\Workflow\Event\GuardEvent; use Symfony\Component\Workflow\Event\GuardEvent;
@ -11,7 +12,7 @@ use Symfony\Component\Workflow\MarkingStore\MultipleStateMarkingStore;
use Symfony\Component\Workflow\Transition; use Symfony\Component\Workflow\Transition;
use Symfony\Component\Workflow\Workflow; use Symfony\Component\Workflow\Workflow;
class WorkflowTest extends \PHPUnit_Framework_TestCase class WorkflowTest extends TestCase
{ {
use WorkflowBuilderTrait; use WorkflowBuilderTrait;

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\Yaml\Tests\Command; namespace Symfony\Component\Yaml\Tests\Command;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Yaml\Command\LintCommand; use Symfony\Component\Yaml\Command\LintCommand;
use Symfony\Component\Console\Application; use Symfony\Component\Console\Application;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
@ -21,7 +22,7 @@ use Symfony\Component\Console\Tester\CommandTester;
* *
* @author Robin Chalas <robin.chalas@gmail.com> * @author Robin Chalas <robin.chalas@gmail.com>
*/ */
class LintCommandTest extends \PHPUnit_Framework_TestCase class LintCommandTest extends TestCase
{ {
private $files; private $files;