Merge branch '3.2'
* 3.2: Updated PHPUnit namespaces
This commit is contained in:
commit
2f20a6ceea
@ -14,13 +14,14 @@ namespace Symfony\Bridge\Doctrine\PropertyInfo\Tests;
|
|||||||
use Doctrine\DBAL\Types\Type as DBALType;
|
use Doctrine\DBAL\Types\Type as DBALType;
|
||||||
use Doctrine\ORM\EntityManager;
|
use Doctrine\ORM\EntityManager;
|
||||||
use Doctrine\ORM\Tools\Setup;
|
use Doctrine\ORM\Tools\Setup;
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
|
use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
|
||||||
use Symfony\Component\PropertyInfo\Type;
|
use Symfony\Component\PropertyInfo\Type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||||
*/
|
*/
|
||||||
class DoctrineExtractorTest extends \PHPUnit_Framework_TestCase
|
class DoctrineExtractorTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var DoctrineExtractor
|
* @var DoctrineExtractor
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
|
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ConfigCachePass;
|
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ConfigCachePass;
|
||||||
|
|
||||||
class ConfigCachePassTest extends \PHPUnit_Framework_TestCase
|
class ConfigCachePassTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testThatCheckersAreProcessedInPriorityOrder()
|
public function testThatCheckersAreProcessedInPriorityOrder()
|
||||||
{
|
{
|
||||||
|
@ -11,12 +11,13 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
|
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\DataCollectorTranslatorPass;
|
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\DataCollectorTranslatorPass;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
|
|
||||||
class DataCollectorTranslatorPassTest extends \PHPUnit_Framework_TestCase
|
class DataCollectorTranslatorPassTest extends TestCase
|
||||||
{
|
{
|
||||||
private $container;
|
private $container;
|
||||||
private $dataCollectorTranslatorPass;
|
private $dataCollectorTranslatorPass;
|
||||||
|
@ -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\FormPass;
|
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Definition;
|
use Symfony\Component\DependencyInjection\Definition;
|
||||||
@ -22,7 +23,7 @@ use Symfony\Component\Form\AbstractType;
|
|||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*/
|
*/
|
||||||
class FormPassTest extends \PHPUnit_Framework_TestCase
|
class FormPassTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testDoNothingIfFormExtensionNotLoaded()
|
public function testDoNothingIfFormExtensionNotLoaded()
|
||||||
{
|
{
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
|
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\PropertyInfoPass;
|
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\PropertyInfoPass;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
|
|
||||||
class PropertyInfoPassTest extends \PHPUnit_Framework_TestCase
|
class PropertyInfoPassTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testServicesAreOrderedAccordingToPriority()
|
public function testServicesAreOrderedAccordingToPriority()
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
|
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\UnusedTagsPass;
|
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\UnusedTagsPass;
|
||||||
|
|
||||||
class UnusedTagsPassTest extends \PHPUnit_Framework_TestCase
|
class UnusedTagsPassTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testProcess()
|
public function testProcess()
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\Tests\Kernel;
|
namespace Symfony\Bundle\FrameworkBundle\Tests\Kernel;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
class MicroKernelTraitTest extends \PHPUnit_Framework_TestCase
|
class MicroKernelTraitTest extends TestCase
|
||||||
{
|
{
|
||||||
public function test()
|
public function test()
|
||||||
{
|
{
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\Tests\Routing;
|
namespace Symfony\Bundle\FrameworkBundle\Tests\Routing;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser;
|
use Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser;
|
||||||
use Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader;
|
use Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader;
|
||||||
use Symfony\Component\Config\Loader\LoaderResolver;
|
use Symfony\Component\Config\Loader\LoaderResolver;
|
||||||
|
|
||||||
class DelegatingLoaderTest extends \PHPUnit_Framework_TestCase
|
class DelegatingLoaderTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testConstructorApi()
|
public function testConstructorApi()
|
||||||
{
|
{
|
||||||
|
@ -11,13 +11,14 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Security\Factory;
|
namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Security\Factory;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\GuardAuthenticationFactory;
|
use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\GuardAuthenticationFactory;
|
||||||
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
||||||
use Symfony\Component\DependencyInjection\Argument\IteratorArgument;
|
use Symfony\Component\DependencyInjection\Argument\IteratorArgument;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
|
|
||||||
class GuardAuthenticationFactoryTest extends \PHPUnit_Framework_TestCase
|
class GuardAuthenticationFactoryTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @dataProvider getValidConfigurationTests
|
* @dataProvider getValidConfigurationTests
|
||||||
|
@ -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\FileExistenceResource;
|
use Symfony\Component\Config\Resource\FileExistenceResource;
|
||||||
|
|
||||||
class FileExistenceResourceTest extends \PHPUnit_Framework_TestCase
|
class FileExistenceResourceTest extends TestCase
|
||||||
{
|
{
|
||||||
protected $resource;
|
protected $resource;
|
||||||
protected $file;
|
protected $file;
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Config\Tests;
|
namespace Symfony\Component\Config\Tests;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Config\Tests\Resource\ResourceStub;
|
use Symfony\Component\Config\Tests\Resource\ResourceStub;
|
||||||
use Symfony\Component\Config\Resource\FileResource;
|
use Symfony\Component\Config\Resource\FileResource;
|
||||||
use Symfony\Component\Config\ResourceCheckerConfigCache;
|
use Symfony\Component\Config\ResourceCheckerConfigCache;
|
||||||
|
|
||||||
class ResourceCheckerConfigCacheTest extends \PHPUnit_Framework_TestCase
|
class ResourceCheckerConfigCacheTest extends TestCase
|
||||||
{
|
{
|
||||||
private $cacheFile = null;
|
private $cacheFile = null;
|
||||||
|
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Console\Tests\Helper;
|
namespace Symfony\Component\Console\Tests\Helper;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Console\Helper\ProgressIndicator;
|
use Symfony\Component\Console\Helper\ProgressIndicator;
|
||||||
use Symfony\Component\Console\Output\StreamOutput;
|
use Symfony\Component\Console\Output\StreamOutput;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group time-sensitive
|
* @group time-sensitive
|
||||||
*/
|
*/
|
||||||
class ProgressIndicatorTest extends \PHPUnit_Framework_TestCase
|
class ProgressIndicatorTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testDefaultIndicator()
|
public function testDefaultIndicator()
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\CssSelector\Tests;
|
namespace Symfony\Component\CssSelector\Tests;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\CssSelector\CssSelectorConverter;
|
use Symfony\Component\CssSelector\CssSelectorConverter;
|
||||||
|
|
||||||
class CssSelectorConverterTest extends \PHPUnit_Framework_TestCase
|
class CssSelectorConverterTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testCssToXPath()
|
public function testCssToXPath()
|
||||||
{
|
{
|
||||||
|
@ -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\AutowirePass;
|
use Symfony\Component\DependencyInjection\Compiler\AutowirePass;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
@ -20,7 +21,7 @@ use Symfony\Component\DependencyInjection\Tests\Fixtures\GetterOverriding;
|
|||||||
/**
|
/**
|
||||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||||
*/
|
*/
|
||||||
class AutowirePassTest extends \PHPUnit_Framework_TestCase
|
class AutowirePassTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testProcess()
|
public function testProcess()
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\DependencyInjection\Tests\Loader;
|
namespace Symfony\Component\DependencyInjection\Tests\Loader;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
|
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
|
||||||
use Symfony\Component\DependencyInjection\Loader\IniFileLoader;
|
use Symfony\Component\DependencyInjection\Loader\IniFileLoader;
|
||||||
@ -19,7 +20,7 @@ use Symfony\Component\DependencyInjection\Loader\DirectoryLoader;
|
|||||||
use Symfony\Component\Config\Loader\LoaderResolver;
|
use Symfony\Component\Config\Loader\LoaderResolver;
|
||||||
use Symfony\Component\Config\FileLocator;
|
use Symfony\Component\Config\FileLocator;
|
||||||
|
|
||||||
class DirectoryLoaderTest extends \PHPUnit_Framework_TestCase
|
class DirectoryLoaderTest extends TestCase
|
||||||
{
|
{
|
||||||
private static $fixturesPath;
|
private static $fixturesPath;
|
||||||
|
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Form\Tests\Extension\DependencyInjection;
|
namespace Symfony\Component\Form\Tests\Extension\DependencyInjection;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
|
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
|
||||||
use Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension;
|
use Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension;
|
||||||
|
|
||||||
class DependencyInjectionExtensionTest extends \PHPUnit_Framework_TestCase
|
class DependencyInjectionExtensionTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testGetTypeExtensions()
|
public function testGetTypeExtensions()
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Form\Tests\Util;
|
namespace Symfony\Component\Form\Tests\Util;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Form\Util\StringUtil;
|
use Symfony\Component\Form\Util\StringUtil;
|
||||||
|
|
||||||
class StringUtilTest extends \PHPUnit_Framework_TestCase
|
class StringUtilTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testTrim()
|
public function testTrim()
|
||||||
{
|
{
|
||||||
|
@ -11,13 +11,14 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\PropertyInfo\Tests\PhpDocExtractors;
|
namespace Symfony\Component\PropertyInfo\Tests\PhpDocExtractors;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
|
use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
|
||||||
use Symfony\Component\PropertyInfo\Type;
|
use Symfony\Component\PropertyInfo\Type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||||
*/
|
*/
|
||||||
class PhpDocExtractorTest extends \PHPUnit_Framework_TestCase
|
class PhpDocExtractorTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var PhpDocExtractor
|
* @var PhpDocExtractor
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\PropertyInfo\Tests\Extractor;
|
namespace Symfony\Component\PropertyInfo\Tests\Extractor;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
|
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
|
||||||
use Symfony\Component\PropertyInfo\Tests\Fixtures\AdderRemoverDummy;
|
use Symfony\Component\PropertyInfo\Tests\Fixtures\AdderRemoverDummy;
|
||||||
use Symfony\Component\PropertyInfo\Type;
|
use Symfony\Component\PropertyInfo\Type;
|
||||||
@ -18,7 +19,7 @@ use Symfony\Component\PropertyInfo\Type;
|
|||||||
/**
|
/**
|
||||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||||
*/
|
*/
|
||||||
class ReflectionExtractorTest extends \PHPUnit_Framework_TestCase
|
class ReflectionExtractorTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var ReflectionExtractor
|
* @var ReflectionExtractor
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
namespace Symfony\Component\PropertyInfo\Tests\Extractors;
|
namespace Symfony\Component\PropertyInfo\Tests\Extractors;
|
||||||
|
|
||||||
use Doctrine\Common\Annotations\AnnotationReader;
|
use Doctrine\Common\Annotations\AnnotationReader;
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\PropertyInfo\Extractor\SerializerExtractor;
|
use Symfony\Component\PropertyInfo\Extractor\SerializerExtractor;
|
||||||
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
|
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
|
||||||
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
|
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
|
||||||
@ -19,7 +20,7 @@ use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
|
|||||||
/**
|
/**
|
||||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||||
*/
|
*/
|
||||||
class SerializerExtractorTest extends \PHPUnit_Framework_TestCase
|
class SerializerExtractorTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var SerializerExtractor
|
* @var SerializerExtractor
|
||||||
|
@ -11,12 +11,13 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\PropertyInfo\Tests;
|
namespace Symfony\Component\PropertyInfo\Tests;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\PropertyInfo\Type;
|
use Symfony\Component\PropertyInfo\Type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||||
*/
|
*/
|
||||||
class TypeTest extends \PHPUnit_Framework_TestCase
|
class TypeTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testConstruct()
|
public function testConstruct()
|
||||||
{
|
{
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Routing\Tests\Loader;
|
namespace Symfony\Component\Routing\Tests\Loader;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Routing\Loader\ObjectRouteLoader;
|
use Symfony\Component\Routing\Loader\ObjectRouteLoader;
|
||||||
use Symfony\Component\Routing\Route;
|
use Symfony\Component\Routing\Route;
|
||||||
use Symfony\Component\Routing\RouteCollection;
|
use Symfony\Component\Routing\RouteCollection;
|
||||||
|
|
||||||
class ObjectRouteLoaderTest extends \PHPUnit_Framework_TestCase
|
class ObjectRouteLoaderTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testLoadCallsServiceAndReturnsCollection()
|
public function testLoadCallsServiceAndReturnsCollection()
|
||||||
{
|
{
|
||||||
|
@ -11,12 +11,13 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Routing\Tests;
|
namespace Symfony\Component\Routing\Tests;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Config\Resource\FileResource;
|
use Symfony\Component\Config\Resource\FileResource;
|
||||||
use Symfony\Component\Routing\Route;
|
use Symfony\Component\Routing\Route;
|
||||||
use Symfony\Component\Routing\RouteCollection;
|
use Symfony\Component\Routing\RouteCollection;
|
||||||
use Symfony\Component\Routing\RouteCollectionBuilder;
|
use Symfony\Component\Routing\RouteCollectionBuilder;
|
||||||
|
|
||||||
class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase
|
class RouteCollectionBuilderTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testImport()
|
public function testImport()
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Core\Tests\Authentication\Provider;
|
namespace Symfony\Component\Security\Core\Tests\Authentication\Provider;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Ldap\LdapInterface;
|
use Symfony\Component\Ldap\LdapInterface;
|
||||||
use Symfony\Component\Ldap\Entry;
|
use Symfony\Component\Ldap\Entry;
|
||||||
use Symfony\Component\Ldap\Adapter\QueryInterface;
|
use Symfony\Component\Ldap\Adapter\QueryInterface;
|
||||||
@ -25,7 +26,7 @@ use Symfony\Component\Security\Core\User\UserProviderInterface;
|
|||||||
/**
|
/**
|
||||||
* @requires extension ldap
|
* @requires extension ldap
|
||||||
*/
|
*/
|
||||||
class LdapBindAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
|
class LdapBindAuthenticationProviderTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
|
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Core\Tests\Authorization\Voter;
|
namespace Symfony\Component\Security\Core\Tests\Authorization\Voter;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
||||||
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
|
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
|
||||||
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
|
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
|
||||||
|
|
||||||
class VoterTest extends \PHPUnit_Framework_TestCase
|
class VoterTest extends TestCase
|
||||||
{
|
{
|
||||||
protected $token;
|
protected $token;
|
||||||
|
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Core\Tests\Exception;
|
namespace Symfony\Component\Security\Core\Tests\Exception;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
|
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
|
||||||
|
|
||||||
class CustomUserMessageAuthenticationExceptionTest extends \PHPUnit_Framework_TestCase
|
class CustomUserMessageAuthenticationExceptionTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testConstructWithSAfeMessage()
|
public function testConstructWithSAfeMessage()
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Core\Tests\User;
|
namespace Symfony\Component\Security\Core\Tests\User;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Ldap\Adapter\CollectionInterface;
|
use Symfony\Component\Ldap\Adapter\CollectionInterface;
|
||||||
use Symfony\Component\Ldap\Adapter\QueryInterface;
|
use Symfony\Component\Ldap\Adapter\QueryInterface;
|
||||||
use Symfony\Component\Ldap\Entry;
|
use Symfony\Component\Ldap\Entry;
|
||||||
@ -21,7 +22,7 @@ use Symfony\Component\Ldap\Exception\ConnectionException;
|
|||||||
/**
|
/**
|
||||||
* @requires extension ldap
|
* @requires extension ldap
|
||||||
*/
|
*/
|
||||||
class LdapUserProviderTest extends \PHPUnit_Framework_TestCase
|
class LdapUserProviderTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @expectedException \Symfony\Component\Security\Core\Exception\UsernameNotFoundException
|
* @expectedException \Symfony\Component\Security\Core\Exception\UsernameNotFoundException
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Guard\Tests\Authenticator;
|
namespace Symfony\Component\Security\Guard\Tests\Authenticator;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\Security\Core\Exception\AuthenticationException;
|
use Symfony\Component\Security\Core\Exception\AuthenticationException;
|
||||||
use Symfony\Component\Security\Core\User\UserInterface;
|
use Symfony\Component\Security\Core\User\UserInterface;
|
||||||
@ -20,7 +21,7 @@ use Symfony\Component\Security\Guard\Authenticator\AbstractFormLoginAuthenticato
|
|||||||
/**
|
/**
|
||||||
* @author Jean Pasdeloup <jpasdeloup@sedona.fr>
|
* @author Jean Pasdeloup <jpasdeloup@sedona.fr>
|
||||||
*/
|
*/
|
||||||
class FormLoginAuthenticatorTest extends \PHPUnit_Framework_TestCase
|
class FormLoginAuthenticatorTest extends TestCase
|
||||||
{
|
{
|
||||||
private $requestWithoutSession;
|
private $requestWithoutSession;
|
||||||
private $requestWithSession;
|
private $requestWithSession;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Guard\Tests\Firewall;
|
namespace Symfony\Component\Security\Guard\Tests\Firewall;
|
||||||
|
|
||||||
|
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\Security\Guard\Firewall\GuardAuthenticationListener;
|
use Symfony\Component\Security\Guard\Firewall\GuardAuthenticationListener;
|
||||||
@ -20,7 +21,7 @@ use Symfony\Component\Security\Core\Exception\AuthenticationException;
|
|||||||
/**
|
/**
|
||||||
* @author Ryan Weaver <weaverryan@gmail.com>
|
* @author Ryan Weaver <weaverryan@gmail.com>
|
||||||
*/
|
*/
|
||||||
class GuardAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
|
class GuardAuthenticationListenerTest extends TestCase
|
||||||
{
|
{
|
||||||
private $authenticationManager;
|
private $authenticationManager;
|
||||||
private $guardAuthenticatorHandler;
|
private $guardAuthenticatorHandler;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Guard\Tests;
|
namespace Symfony\Component\Security\Guard\Tests;
|
||||||
|
|
||||||
|
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\Security\Guard\GuardAuthenticatorHandler;
|
use Symfony\Component\Security\Guard\GuardAuthenticatorHandler;
|
||||||
@ -18,7 +19,7 @@ use Symfony\Component\Security\Core\Exception\AuthenticationException;
|
|||||||
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
|
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
|
||||||
use Symfony\Component\Security\Http\SecurityEvents;
|
use Symfony\Component\Security\Http\SecurityEvents;
|
||||||
|
|
||||||
class GuardAuthenticatorHandlerTest extends \PHPUnit_Framework_TestCase
|
class GuardAuthenticatorHandlerTest extends TestCase
|
||||||
{
|
{
|
||||||
private $tokenStorage;
|
private $tokenStorage;
|
||||||
private $dispatcher;
|
private $dispatcher;
|
||||||
|
@ -11,13 +11,14 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Guard\Tests\Provider;
|
namespace Symfony\Component\Security\Guard\Tests\Provider;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Security\Guard\Provider\GuardAuthenticationProvider;
|
use Symfony\Component\Security\Guard\Provider\GuardAuthenticationProvider;
|
||||||
use Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken;
|
use Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Ryan Weaver <weaverryan@gmail.com>
|
* @author Ryan Weaver <weaverryan@gmail.com>
|
||||||
*/
|
*/
|
||||||
class GuardAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
|
class GuardAuthenticationProviderTest extends TestCase
|
||||||
{
|
{
|
||||||
private $userProvider;
|
private $userProvider;
|
||||||
private $userChecker;
|
private $userChecker;
|
||||||
|
@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Http\Tests\Firewall;
|
namespace Symfony\Component\Security\Http\Tests\Firewall;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||||
use Symfony\Component\Security\Http\EntryPoint\DigestAuthenticationEntryPoint;
|
use Symfony\Component\Security\Http\EntryPoint\DigestAuthenticationEntryPoint;
|
||||||
use Symfony\Component\Security\Http\Firewall\DigestAuthenticationListener;
|
use Symfony\Component\Security\Http\Firewall\DigestAuthenticationListener;
|
||||||
|
|
||||||
class DigestAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
|
class DigestAuthenticationListenerTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testHandleWithValidDigest()
|
public function testHandleWithValidDigest()
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Serializer\Tests\Encoder;
|
namespace Symfony\Component\Serializer\Tests\Encoder;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Serializer\Encoder\ChainDecoder;
|
use Symfony\Component\Serializer\Encoder\ChainDecoder;
|
||||||
|
|
||||||
class ChainDecoderTest extends \PHPUnit_Framework_TestCase
|
class ChainDecoderTest extends TestCase
|
||||||
{
|
{
|
||||||
const FORMAT_1 = 'format1';
|
const FORMAT_1 = 'format1';
|
||||||
const FORMAT_2 = 'format2';
|
const FORMAT_2 = 'format2';
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Serializer\Tests\Encoder;
|
namespace Symfony\Component\Serializer\Tests\Encoder;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Serializer\Encoder\ChainEncoder;
|
use Symfony\Component\Serializer\Encoder\ChainEncoder;
|
||||||
use Symfony\Component\Serializer\Encoder\NormalizationAwareInterface;
|
use Symfony\Component\Serializer\Encoder\NormalizationAwareInterface;
|
||||||
|
|
||||||
class ChainEncoderTest extends \PHPUnit_Framework_TestCase
|
class ChainEncoderTest extends TestCase
|
||||||
{
|
{
|
||||||
const FORMAT_1 = 'format1';
|
const FORMAT_1 = 'format1';
|
||||||
const FORMAT_2 = 'format2';
|
const FORMAT_2 = 'format2';
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Serializer\Tests\Encoder;
|
namespace Symfony\Component\Serializer\Tests\Encoder;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Serializer\Encoder\JsonDecode;
|
use Symfony\Component\Serializer\Encoder\JsonDecode;
|
||||||
use Symfony\Component\Serializer\Encoder\JsonEncoder;
|
use Symfony\Component\Serializer\Encoder\JsonEncoder;
|
||||||
|
|
||||||
class JsonDecodeTest extends \PHPUnit_Framework_TestCase
|
class JsonDecodeTest extends TestCase
|
||||||
{
|
{
|
||||||
/** @var \Symfony\Component\Serializer\Encoder\JsonDecode */
|
/** @var \Symfony\Component\Serializer\Encoder\JsonDecode */
|
||||||
private $decode;
|
private $decode;
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Serializer\Tests\Encoder;
|
namespace Symfony\Component\Serializer\Tests\Encoder;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Serializer\Encoder\JsonEncode;
|
use Symfony\Component\Serializer\Encoder\JsonEncode;
|
||||||
use Symfony\Component\Serializer\Encoder\JsonEncoder;
|
use Symfony\Component\Serializer\Encoder\JsonEncoder;
|
||||||
|
|
||||||
class JsonEncodeTest extends \PHPUnit_Framework_TestCase
|
class JsonEncodeTest extends TestCase
|
||||||
{
|
{
|
||||||
private $encoder;
|
private $encoder;
|
||||||
|
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Serializer\Tests\Normalizer;
|
namespace Symfony\Component\Serializer\Tests\Normalizer;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
|
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
|
||||||
use Symfony\Component\Serializer\SerializerInterface;
|
use Symfony\Component\Serializer\SerializerInterface;
|
||||||
|
|
||||||
class ArrayDenormalizerTest extends \PHPUnit_Framework_TestCase
|
class ArrayDenormalizerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var ArrayDenormalizer
|
* @var ArrayDenormalizer
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Translation\Tests\Util;
|
namespace Symfony\Component\Translation\Tests\Util;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Translation\Util\ArrayConverter;
|
use Symfony\Component\Translation\Util\ArrayConverter;
|
||||||
|
|
||||||
class ArrayConverterTest extends \PHPUnit_Framework_TestCase
|
class ArrayConverterTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @dataProvider messagesData
|
* @dataProvider messagesData
|
||||||
|
Reference in New Issue
Block a user