Skip to content

Commit eb5aee5

Browse files
Merge branch '2.8' into 3.2
* 2.8: Update to PHPUnit namespaces Minor typo fix messsagesData -> messagesData remove translation data collector when not usable
2 parents bd2250a + e9e8d44 commit eb5aee5

33 files changed

+66
-33
lines changed

Tests/AccessMapTest.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\Http\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Http\AccessMap;
1516

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

Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php

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

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

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler;
1516
use Symfony\Component\Security\Core\Security;
1617
use Symfony\Component\HttpFoundation\Response;
1718
use Symfony\Component\HttpKernel\HttpKernelInterface;
1819

19-
class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCase
20+
class DefaultAuthenticationFailureHandlerTest extends TestCase
2021
{
2122
private $httpKernel;
2223
private $httpUtils;

Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.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\Http\Tests\Authentication;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\HttpFoundation\Response;
1516
use Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler;
1617

17-
class DefaultAuthenticationSuccessHandlerTest extends \PHPUnit_Framework_TestCase
18+
class DefaultAuthenticationSuccessHandlerTest extends TestCase
1819
{
1920
private $httpUtils = null;
2021

Tests/Authentication/SimpleAuthenticationHandlerTest.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\Http\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\HttpFoundation\Response;
1516
use Symfony\Component\Security\Core\Authentication\SimpleAuthenticatorInterface;
1617
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1718
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
1819
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
1920
use Symfony\Component\Security\Http\Authentication\SimpleAuthenticationHandler;
2021

21-
class SimpleAuthenticationHandlerTest extends \PHPUnit_Framework_TestCase
22+
class SimpleAuthenticationHandlerTest extends TestCase
2223
{
2324
private $successHandler;
2425

Tests/EntryPoint/BasicAuthenticationEntryPointTest.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\Http\Tests\EntryPoint;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Http\EntryPoint\BasicAuthenticationEntryPoint;
1516
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1617

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

Tests/EntryPoint/DigestAuthenticationEntryPointTest.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\Http\Tests\EntryPoint;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Http\EntryPoint\DigestAuthenticationEntryPoint;
1516
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1617
use Symfony\Component\Security\Core\Exception\NonceExpiredException;
1718

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

Tests/EntryPoint/FormAuthenticationEntryPointTest.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\Http\Tests\EntryPoint;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\HttpFoundation\Response;
1516
use Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint;
1617
use Symfony\Component\HttpKernel\HttpKernelInterface;
1718

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

Tests/EntryPoint/RetryAuthenticationEntryPointTest.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\Http\Tests\EntryPoint;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint;
1516
use Symfony\Component\HttpFoundation\Request;
1617

17-
class RetryAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase
18+
class RetryAuthenticationEntryPointTest extends TestCase
1819
{
1920
/**
2021
* @dataProvider dataForStart

Tests/Firewall/AbstractPreAuthenticatedListenerTest.php

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

1212
namespace Symfony\Component\Security\Http\Tests\Firewall;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken;
1617
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
1718
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1819

19-
class AbstractPreAuthenticatedListenerTest extends \PHPUnit_Framework_TestCase
20+
class AbstractPreAuthenticatedListenerTest extends TestCase
2021
{
2122
public function testHandleWithValidValues()
2223
{

Tests/Firewall/AccessListenerTest.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\Http\Tests\Firewall;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Security\Http\Firewall\AccessListener;
1516

16-
class AccessListenerTest extends \PHPUnit_Framework_TestCase
17+
class AccessListenerTest extends TestCase
1718
{
1819
/**
1920
* @expectedException \Symfony\Component\Security\Core\Exception\AccessDeniedException

0 commit comments

Comments
 (0)