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

Commit c420493

Browse files
peterrehmnicolas-grekas
authored andcommitted
Updated PHPUnit namespaces
1 parent 3fa9ee6 commit c420493

File tree

9 files changed

+18
-9
lines changed

9 files changed

+18
-9
lines changed

Core/Tests/Authentication/Provider/LdapBindAuthenticationProviderTest.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\Core\Tests\Authentication\Provider;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\Provider\LdapBindAuthenticationProvider;
1516
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
1617
use Symfony\Component\Security\Core\User\User;
@@ -19,7 +20,7 @@
1920
/**
2021
* @requires extension ldap
2122
*/
22-
class LdapBindAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
23+
class LdapBindAuthenticationProviderTest extends TestCase
2324
{
2425
/**
2526
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException

Core/Tests/Authorization/Voter/VoterTest.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\Authorization\Voter;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1516
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
1617
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
1718

18-
class VoterTest extends \PHPUnit_Framework_TestCase
19+
class VoterTest extends TestCase
1920
{
2021
protected $token;
2122

Core/Tests/Exception/CustomUserMessageAuthenticationExceptionTest.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\Exception;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
1516

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

Core/Tests/User/LdapUserProviderTest.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\User;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Core\User\LdapUserProvider;
1516
use Symfony\Component\Ldap\Exception\ConnectionException;
1617

1718
/**
1819
* @requires extension ldap
1920
*/
20-
class LdapUserProviderTest extends \PHPUnit_Framework_TestCase
21+
class LdapUserProviderTest extends TestCase
2122
{
2223
/**
2324
* @expectedException \Symfony\Component\Security\Core\Exception\UsernameNotFoundException

Guard/Tests/Authenticator/FormLoginAuthenticatorTest.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\Guard\Tests\Authenticator;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1617
use Symfony\Component\Security\Core\User\UserInterface;
@@ -20,7 +21,7 @@
2021
/**
2122
* @author Jean Pasdeloup <[email protected]>
2223
*/
23-
class FormLoginAuthenticatorTest extends \PHPUnit_Framework_TestCase
24+
class FormLoginAuthenticatorTest extends TestCase
2425
{
2526
private $requestWithoutSession;
2627
private $requestWithSession;

Guard/Tests/Firewall/GuardAuthenticationListenerTest.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\Guard\Tests\Firewall;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\HttpFoundation\Response;
1617
use Symfony\Component\Security\Guard\Firewall\GuardAuthenticationListener;
@@ -20,7 +21,7 @@
2021
/**
2122
* @author Ryan Weaver <[email protected]>
2223
*/
23-
class GuardAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
24+
class GuardAuthenticationListenerTest extends TestCase
2425
{
2526
private $authenticationManager;
2627
private $guardAuthenticatorHandler;

Guard/Tests/GuardAuthenticatorHandlerTest.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\Guard\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\HttpFoundation\Response;
1617
use Symfony\Component\Security\Guard\GuardAuthenticatorHandler;
1718
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1819
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
1920
use Symfony\Component\Security\Http\SecurityEvents;
2021

21-
class GuardAuthenticatorHandlerTest extends \PHPUnit_Framework_TestCase
22+
class GuardAuthenticatorHandlerTest extends TestCase
2223
{
2324
private $tokenStorage;
2425
private $dispatcher;

Guard/Tests/Provider/GuardAuthenticationProviderTest.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\Guard\Tests\Provider;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Guard\Provider\GuardAuthenticationProvider;
1516
use Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken;
1617

1718
/**
1819
* @author Ryan Weaver <[email protected]>
1920
*/
20-
class GuardAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
21+
class GuardAuthenticationProviderTest extends TestCase
2122
{
2223
private $userProvider;
2324
private $userChecker;

Http/Tests/Firewall/DigestAuthenticationListenerTest.php

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

33
namespace Symfony\Component\Security\Http\Tests\Firewall;
44

5+
use PHPUnit\Framework\TestCase;
56
use Symfony\Component\HttpFoundation\Request;
67
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
78
use Symfony\Component\Security\Http\EntryPoint\DigestAuthenticationEntryPoint;
89
use Symfony\Component\Security\Http\Firewall\DigestAuthenticationListener;
910

10-
class DigestAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
11+
class DigestAuthenticationListenerTest extends TestCase
1112
{
1213
public function testHandleWithValidDigest()
1314
{

0 commit comments

Comments
 (0)