Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 6874fd5

Browse files
peterrehmfabpot
authored andcommitted
Update to PHPUnit namespaces
1 parent bdff202 commit 6874fd5

File tree

99 files changed

+204
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+204
-99
lines changed

Acl/Tests/Dbal/AclProviderBenchmarkTest.php

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

1212
namespace Symfony\Component\Security\Acl\Tests\Dbal;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Dbal\AclProvider;
1516
use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy;
1617
use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
@@ -20,7 +21,7 @@
2021
/**
2122
* @group benchmark
2223
*/
23-
class AclProviderBenchmarkTest extends \PHPUnit_Framework_TestCase
24+
class AclProviderBenchmarkTest extends TestCase
2425
{
2526
/** @var \Doctrine\DBAL\Connection */
2627
protected $con;

Acl/Tests/Dbal/AclProviderTest.php

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

1212
namespace Symfony\Component\Security\Acl\Tests\Dbal;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Dbal\AclProvider;
1516
use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy;
1617
use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
@@ -20,7 +21,7 @@
2021
/**
2122
* @requires extension pdo_sqlite
2223
*/
23-
class AclProviderTest extends \PHPUnit_Framework_TestCase
24+
class AclProviderTest extends TestCase
2425
{
2526
protected $con;
2627
protected $insertClassStmt;

Acl/Tests/Dbal/MutableAclProviderTest.php

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

1212
namespace Symfony\Component\Security\Acl\Tests\Dbal;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
1516
use Symfony\Component\Security\Acl\Model\FieldEntryInterface;
1617
use Symfony\Component\Security\Acl\Model\AuditableEntryInterface;
@@ -30,7 +31,7 @@
3031
/**
3132
* @requires extension pdo_sqlite
3233
*/
33-
class MutableAclProviderTest extends \PHPUnit_Framework_TestCase
34+
class MutableAclProviderTest extends TestCase
3435
{
3536
protected $con;
3637

Acl/Tests/Domain/AclTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
1516
use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
1617
use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy;
1718
use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
1819
use Symfony\Component\Security\Acl\Domain\Acl;
1920

20-
class AclTest extends \PHPUnit_Framework_TestCase
21+
class AclTest extends TestCase
2122
{
2223
public function testConstructor()
2324
{

Acl/Tests/Domain/AuditLoggerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14-
class AuditLoggerTest extends \PHPUnit_Framework_TestCase
14+
use PHPUnit\Framework\TestCase;
15+
16+
class AuditLoggerTest extends TestCase
1517
{
1618
/**
1719
* @dataProvider getTestLogData

Acl/Tests/Domain/DoctrineAclCacheTest.php

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

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
1516
use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
1617
use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy;
1718
use Symfony\Component\Security\Acl\Domain\Acl;
1819
use Symfony\Component\Security\Acl\Domain\DoctrineAclCache;
1920
use Doctrine\Common\Cache\ArrayCache;
2021

21-
class DoctrineAclCacheTest extends \PHPUnit_Framework_TestCase
22+
class DoctrineAclCacheTest extends TestCase
2223
{
2324
protected $permissionGrantingStrategy;
2425

Acl/Tests/Domain/EntryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\Entry;
1516

16-
class EntryTest extends \PHPUnit_Framework_TestCase
17+
class EntryTest extends TestCase
1718
{
1819
public function testConstructor()
1920
{

Acl/Tests/Domain/FieldEntryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\FieldEntry;
1516

16-
class FieldEntryTest extends \PHPUnit_Framework_TestCase
17+
class FieldEntryTest extends TestCase
1718
{
1819
public function testConstructor()
1920
{

Acl/Tests/Domain/ObjectIdentityRetrievalStrategyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\ObjectIdentityRetrievalStrategy;
1516

16-
class ObjectIdentityRetrievalStrategyTest extends \PHPUnit_Framework_TestCase
17+
class ObjectIdentityRetrievalStrategyTest extends TestCase
1718
{
1819
public function testGetObjectIdentityReturnsNullForInvalidDomainObject()
1920
{

Acl/Tests/Domain/ObjectIdentityTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain
1313
{
14+
15+
use PHPUnit\Framework\TestCase;
1416
use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
1517
use Symfony\Component\Security\Acl\Model\DomainObjectInterface;
1618

17-
class ObjectIdentityTest extends \PHPUnit_Framework_TestCase
19+
class ObjectIdentityTest extends TestCase
1820
{
1921
public function testConstructor()
2022
{

Acl/Tests/Domain/PermissionGrantingStrategyTest.php

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

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
1516
use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
1617
use Symfony\Component\Security\Acl\Domain\Acl;
1718
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
1819
use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy;
1920
use Symfony\Component\Security\Acl\Exception\NoAceFoundException;
2021

21-
class PermissionGrantingStrategyTest extends \PHPUnit_Framework_TestCase
22+
class PermissionGrantingStrategyTest extends TestCase
2223
{
2324
public function testIsGrantedObjectAcesHavePriority()
2425
{

Acl/Tests/Domain/RoleSecurityIdentityTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
1516
use Symfony\Component\Security\Core\Role\Role;
1617
use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
1718

18-
class RoleSecurityIdentityTest extends \PHPUnit_Framework_TestCase
19+
class RoleSecurityIdentityTest extends TestCase
1920
{
2021
public function testConstructor()
2122
{

Acl/Tests/Domain/SecurityIdentityRetrievalStrategyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
1516
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
1617
use Symfony\Component\Security\Acl\Domain\SecurityIdentityRetrievalStrategy;
1718

18-
class SecurityIdentityRetrievalStrategyTest extends \PHPUnit_Framework_TestCase
19+
class SecurityIdentityRetrievalStrategyTest extends TestCase
1920
{
2021
/**
2122
* @dataProvider getSecurityIdentityRetrievalTests

Acl/Tests/Domain/UserSecurityIdentityTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Domain;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
1516
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
1617

17-
class UserSecurityIdentityTest extends \PHPUnit_Framework_TestCase
18+
class UserSecurityIdentityTest extends TestCase
1819
{
1920
public function testConstructor()
2021
{

Acl/Tests/Permission/BasicPermissionMapTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Permission;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Permission\BasicPermissionMap;
1516

16-
class BasicPermissionMapTest extends \PHPUnit_Framework_TestCase
17+
class BasicPermissionMapTest extends TestCase
1718
{
1819
public function testGetMasksReturnsNullWhenNotSupportedMask()
1920
{

Acl/Tests/Permission/MaskBuilderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Acl\Tests\Permission;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Permission\MaskBuilder;
1516

16-
class MaskBuilderTest extends \PHPUnit_Framework_TestCase
17+
class MaskBuilderTest extends TestCase
1718
{
1819
/**
1920
* @expectedException \InvalidArgumentException

Acl/Tests/Voter/AclVoterTest.php

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

1212
namespace Symfony\Component\Security\Acl\Tests\Voter;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Acl\Exception\NoAceFoundException;
1516
use Symfony\Component\Security\Acl\Voter\FieldVote;
1617
use Symfony\Component\Security\Acl\Exception\AclNotFoundException;
@@ -20,7 +21,7 @@
2021
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
2122
use Symfony\Component\Security\Acl\Voter\AclVoter;
2223

23-
class AclVoterTest extends \PHPUnit_Framework_TestCase
24+
class AclVoterTest extends TestCase
2425
{
2526
/**
2627
* @dataProvider getSupportsAttributeTests

Core/Tests/Authentication/AuthenticationProviderManagerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager;
1516
use Symfony\Component\Security\Core\Exception\ProviderNotFoundException;
1617
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1718
use Symfony\Component\Security\Core\Exception\AccountStatusException;
1819
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
1920

20-
class AuthenticationProviderManagerTest extends \PHPUnit_Framework_TestCase
21+
class AuthenticationProviderManagerTest extends TestCase
2122
{
2223
/**
2324
* @expectedException \InvalidArgumentException

Core/Tests/Authentication/AuthenticationTrustResolverTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
1516

16-
class AuthenticationTrustResolverTest extends \PHPUnit_Framework_TestCase
17+
class AuthenticationTrustResolverTest extends TestCase
1718
{
1819
public function testIsAnonymous()
1920
{

Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\Provider;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider;
1516

16-
class AnonymousAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
17+
class AnonymousAuthenticationProviderTest extends TestCase
1718
{
1819
public function testSupports()
1920
{

Core/Tests/Authentication/Provider/DaoAuthenticationProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\Provider;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder;
1516
use Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider;
1617
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
1718

18-
class DaoAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
19+
class DaoAuthenticationProviderTest extends TestCase
1920
{
2021
/**
2122
* @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationServiceException

Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\Provider;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\Provider\PreAuthenticatedAuthenticationProvider;
1516
use Symfony\Component\Security\Core\Exception\LockedException;
1617

17-
class PreAuthenticatedAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
18+
class PreAuthenticatedAuthenticationProviderTest extends TestCase
1819
{
1920
public function testSupports()
2021
{

Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\Provider;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider;
1516
use Symfony\Component\Security\Core\Exception\DisabledException;
1617
use Symfony\Component\Security\Core\Role\Role;
1718

18-
class RememberMeAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
19+
class RememberMeAuthenticationProviderTest extends TestCase
1920
{
2021
public function testSupports()
2122
{

Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php

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

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\Provider;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Exception\AccountExpiredException;
1516
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
1617
use Symfony\Component\Security\Core\Exception\CredentialsExpiredException;
1718
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
1819
use Symfony\Component\Security\Core\Role\Role;
1920
use Symfony\Component\Security\Core\Role\SwitchUserRole;
2021

21-
class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
22+
class UserAuthenticationProviderTest extends TestCase
2223
{
2324
public function testSupports()
2425
{

Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\RememberMe;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken;
1516
use Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider;
1617

17-
class InMemoryTokenProviderTest extends \PHPUnit_Framework_TestCase
18+
class InMemoryTokenProviderTest extends TestCase
1819
{
1920
public function testCreateNewToken()
2021
{

Core/Tests/Authentication/RememberMe/PersistentTokenTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\RememberMe;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken;
1516

16-
class PersistentTokenTest extends \PHPUnit_Framework_TestCase
17+
class PersistentTokenTest extends TestCase
1718
{
1819
public function testConstructor()
1920
{

Core/Tests/Authentication/Token/AbstractTokenTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\Token;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\Token\AbstractToken;
1516
use Symfony\Component\Security\Core\Role\Role;
1617
use Symfony\Component\Security\Core\Role\SwitchUserRole;
@@ -57,7 +58,8 @@ public function getCredentials()
5758
}
5859
}
5960

60-
class AbstractTokenTest extends \PHPUnit_Framework_TestCase
61+
/** @noinspection PhpUndefinedClassInspection */
62+
class AbstractTokenTest extends TestCase
6163
{
6264
public function testGetUsername()
6365
{

Core/Tests/Authentication/Token/AnonymousTokenTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication\Token;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
1516
use Symfony\Component\Security\Core\Role\Role;
1617

17-
class AnonymousTokenTest extends \PHPUnit_Framework_TestCase
18+
class AnonymousTokenTest extends TestCase
1819
{
1920
public function testConstructor()
2021
{

0 commit comments

Comments
 (0)