This repository was archived by the owner on May 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +18
-9
lines changed Expand file tree Collapse file tree 9 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Core \Tests \Authentication \Provider ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Symfony \Component \Security \Core \Authentication \Provider \LdapBindAuthenticationProvider ;
15
16
use Symfony \Component \Security \Core \Authentication \Token \UsernamePasswordToken ;
16
17
use Symfony \Component \Security \Core \User \User ;
19
20
/**
20
21
* @requires extension ldap
21
22
*/
22
- class LdapBindAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
23
+ class LdapBindAuthenticationProviderTest extends TestCase
23
24
{
24
25
/**
25
26
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Core \Tests \Authorization \Voter ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
15
16
use Symfony \Component \Security \Core \Authorization \Voter \Voter ;
16
17
use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
17
18
18
- class VoterTest extends \PHPUnit_Framework_TestCase
19
+ class VoterTest extends TestCase
19
20
{
20
21
protected $ token ;
21
22
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Core \Tests \Exception ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Symfony \Component \Security \Core \Exception \CustomUserMessageAuthenticationException ;
15
16
16
- class CustomUserMessageAuthenticationExceptionTest extends \PHPUnit_Framework_TestCase
17
+ class CustomUserMessageAuthenticationExceptionTest extends TestCase
17
18
{
18
19
public function testConstructWithSAfeMessage ()
19
20
{
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Core \Tests \User ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Symfony \Component \Security \Core \User \LdapUserProvider ;
15
16
use Symfony \Component \Ldap \Exception \ConnectionException ;
16
17
17
18
/**
18
19
* @requires extension ldap
19
20
*/
20
- class LdapUserProviderTest extends \PHPUnit_Framework_TestCase
21
+ class LdapUserProviderTest extends TestCase
21
22
{
22
23
/**
23
24
* @expectedException \Symfony\Component\Security\Core\Exception\UsernameNotFoundException
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Guard \Tests \Authenticator ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Symfony \Component \HttpFoundation \Request ;
15
16
use Symfony \Component \Security \Core \Exception \AuthenticationException ;
16
17
use Symfony \Component \Security \Core \User \UserInterface ;
20
21
/**
21
22
* @author Jean Pasdeloup <[email protected] >
22
23
*/
23
- class FormLoginAuthenticatorTest extends \PHPUnit_Framework_TestCase
24
+ class FormLoginAuthenticatorTest extends TestCase
24
25
{
25
26
private $ requestWithoutSession ;
26
27
private $ requestWithSession ;
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Guard \Tests \Firewall ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Symfony \Component \HttpFoundation \Request ;
15
16
use Symfony \Component \HttpFoundation \Response ;
16
17
use Symfony \Component \Security \Guard \Firewall \GuardAuthenticationListener ;
20
21
/**
21
22
* @author Ryan Weaver <[email protected] >
22
23
*/
23
- class GuardAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
24
+ class GuardAuthenticationListenerTest extends TestCase
24
25
{
25
26
private $ authenticationManager ;
26
27
private $ guardAuthenticatorHandler ;
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Guard \Tests ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Symfony \Component \HttpFoundation \Request ;
15
16
use Symfony \Component \HttpFoundation \Response ;
16
17
use Symfony \Component \Security \Guard \GuardAuthenticatorHandler ;
17
18
use Symfony \Component \Security \Core \Exception \AuthenticationException ;
18
19
use Symfony \Component \Security \Http \Event \InteractiveLoginEvent ;
19
20
use Symfony \Component \Security \Http \SecurityEvents ;
20
21
21
- class GuardAuthenticatorHandlerTest extends \PHPUnit_Framework_TestCase
22
+ class GuardAuthenticatorHandlerTest extends TestCase
22
23
{
23
24
private $ tokenStorage ;
24
25
private $ dispatcher ;
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Guard \Tests \Provider ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Symfony \Component \Security \Guard \Provider \GuardAuthenticationProvider ;
15
16
use Symfony \Component \Security \Guard \Token \PostAuthenticationGuardToken ;
16
17
17
18
/**
18
19
* @author Ryan Weaver <[email protected] >
19
20
*/
20
- class GuardAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
21
+ class GuardAuthenticationProviderTest extends TestCase
21
22
{
22
23
private $ userProvider ;
23
24
private $ userChecker ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace Symfony \Component \Security \Http \Tests \Firewall ;
4
4
5
+ use PHPUnit \Framework \TestCase ;
5
6
use Symfony \Component \HttpFoundation \Request ;
6
7
use Symfony \Component \Security \Core \Authentication \Token \UsernamePasswordToken ;
7
8
use Symfony \Component \Security \Http \EntryPoint \DigestAuthenticationEntryPoint ;
8
9
use Symfony \Component \Security \Http \Firewall \DigestAuthenticationListener ;
9
10
10
- class DigestAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
11
+ class DigestAuthenticationListenerTest extends TestCase
11
12
{
12
13
public function testHandleWithValidDigest ()
13
14
{
You can’t perform that action at this time.
0 commit comments