File tree Expand file tree Collapse file tree 23 files changed +46
-24
lines changed Expand file tree Collapse file tree 23 files changed +46
-24
lines changed Original file line number Diff line number Diff line change 15
15
use FOS \HttpCache \ProxyClient \Invalidation \RefreshCapable ;
16
16
use FOS \HttpCache \ProxyClient \ProxyClient ;
17
17
use FOS \HttpCacheBundle \CacheManager ;
18
+ use PHPUnit \Framework \TestCase ;
18
19
use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
19
20
20
- class CacheManagerTest extends \PHPUnit_Framework_TestCase
21
+ class CacheManagerTest extends TestCase
21
22
{
22
23
protected $ proxyClient ;
23
24
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \CacheManager ;
15
15
use FOS \HttpCacheBundle \Command \InvalidatePathCommand ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \Console \Application ;
17
18
use Symfony \Component \Console \Tester \CommandTester ;
18
19
use Symfony \Component \DependencyInjection \ContainerInterface ;
19
20
20
- class BaseInvalidateCommandTest extends \PHPUnit_Framework_TestCase
21
+ class BaseInvalidateCommandTest extends TestCase
21
22
{
22
23
public function testContainerAccess ()
23
24
{
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \CacheManager ;
15
15
use FOS \HttpCacheBundle \Command \InvalidatePathCommand ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \Console \Application ;
17
18
use Symfony \Component \Console \Tester \CommandTester ;
18
19
19
- class InvalidatePathCommandTest extends \PHPUnit_Framework_TestCase
20
+ class InvalidatePathCommandTest extends TestCase
20
21
{
21
22
/**
22
23
* @expectedException \RuntimeException
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \CacheManager ;
15
15
use FOS \HttpCacheBundle \Command \InvalidateRegexCommand ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \Console \Application ;
17
18
use Symfony \Component \Console \Tester \CommandTester ;
18
19
19
- class InvalidateRegexCommandTest extends \PHPUnit_Framework_TestCase
20
+ class InvalidateRegexCommandTest extends TestCase
20
21
{
21
22
/**
22
23
* @expectedException \RuntimeException
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \CacheManager ;
15
15
use FOS \HttpCacheBundle \Command \InvalidateTagCommand ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \Console \Application ;
17
18
use Symfony \Component \Console \Tester \CommandTester ;
18
19
19
- class InvalidateTagCommandTest extends \PHPUnit_Framework_TestCase
20
+ class InvalidateTagCommandTest extends TestCase
20
21
{
21
22
/**
22
23
* @expectedException \RuntimeException
Original file line number Diff line number Diff line change 12
12
namespace FOS \HttpCacheBundle \Tests \Unit \Command ;
13
13
14
14
use FOS \HttpCacheBundle \Command \PathSanityCheck ;
15
+ use PHPUnit \Framework \TestCase ;
15
16
16
- class PathSanityCheckTest extends \PHPUnit_Framework_TestCase
17
+ class PathSanityCheckTest extends TestCase
17
18
{
18
19
public function pathProvider ()
19
20
{
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \CacheManager ;
15
15
use FOS \HttpCacheBundle \Command \RefreshPathCommand ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \Console \Application ;
17
18
use Symfony \Component \Console \Tester \CommandTester ;
18
19
19
- class RefreshPathCommandTest extends \PHPUnit_Framework_TestCase
20
+ class RefreshPathCommandTest extends TestCase
20
21
{
21
22
/**
22
23
* @expectedException \RuntimeException
Original file line number Diff line number Diff line change 12
12
namespace FOS \HttpCacheBundle \Tests \Unit \Configuration ;
13
13
14
14
use FOS \HttpCacheBundle \Configuration \InvalidateRoute ;
15
+ use PHPUnit \Framework \TestCase ;
15
16
16
17
/**
17
18
* Test the @InvalidateRoute annotation.
18
19
*/
19
- class InvalidateRouteTest extends \PHPUnit_Framework_TestCase
20
+ class InvalidateRouteTest extends TestCase
20
21
{
21
22
/**
22
23
* @expectedException \RuntimeException
Original file line number Diff line number Diff line change 12
12
namespace FOS \HttpCacheBundle \Tests \Unit \Configuration ;
13
13
14
14
use FOS \HttpCacheBundle \Configuration \Tag ;
15
+ use PHPUnit \Framework \TestCase ;
15
16
16
17
/**
17
18
* Test the @InvalidateRoute annotation.
18
19
*/
19
- class TagTest extends \PHPUnit_Framework_TestCase
20
+ class TagTest extends TestCase
20
21
{
21
22
/**
22
23
* @expectedException \FOS\HttpCacheBundle\Exception\InvalidTagException
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \DependencyInjection \Compiler \HashGeneratorPass ;
15
15
use FOS \HttpCacheBundle \DependencyInjection \FOSHttpCacheExtension ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
18
use Symfony \Component \DependencyInjection \Definition ;
18
19
use Symfony \Component \DependencyInjection \ParameterBag \ParameterBag ;
19
20
20
- class HashGeneratorPassTest extends \PHPUnit_Framework_TestCase
21
+ class HashGeneratorPassTest extends TestCase
21
22
{
22
23
/**
23
24
* @var FOSHttpCacheExtension
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \DependencyInjection \Compiler \LoggerPass ;
15
15
use FOS \HttpCacheBundle \DependencyInjection \FOSHttpCacheExtension ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
18
use Symfony \Component \DependencyInjection \Definition ;
18
19
use Symfony \Component \DependencyInjection \ParameterBag \ParameterBag ;
19
20
20
- class LoggerPassTest extends \PHPUnit_Framework_TestCase
21
+ class LoggerPassTest extends TestCase
21
22
{
22
23
public function testLogger ()
23
24
{
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \DependencyInjection \Compiler \TagListenerPass ;
15
15
use FOS \HttpCacheBundle \DependencyInjection \FOSHttpCacheExtension ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
18
use Symfony \Component \DependencyInjection \ParameterBag \ParameterBag ;
18
19
19
- class TagListenerPassTest extends \PHPUnit_Framework_TestCase
20
+ class TagListenerPassTest extends TestCase
20
21
{
21
22
/**
22
23
* @expectedException \RuntimeException
Original file line number Diff line number Diff line change 12
12
namespace FOS \HttpCacheBundle \Tests \Unit \DependencyInjection ;
13
13
14
14
use FOS \HttpCacheBundle \DependencyInjection \FOSHttpCacheExtension ;
15
+ use PHPUnit \Framework \TestCase ;
15
16
use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
16
17
use Symfony \Component \DependencyInjection \ChildDefinition ;
17
18
use Symfony \Component \DependencyInjection \ContainerBuilder ;
21
22
use Symfony \Component \DependencyInjection \Reference ;
22
23
use Symfony \Component \Routing \Router ;
23
24
24
- class FOSHttpCacheExtensionTest extends \PHPUnit_Framework_TestCase
25
+ class FOSHttpCacheExtensionTest extends TestCase
25
26
{
26
27
/**
27
28
* @var FOSHttpCacheExtension
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \EventListener \CacheControlListener ;
15
15
use FOS \HttpCacheBundle \Http \RuleMatcherInterface ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \HttpFoundation \Request ;
17
18
use Symfony \Component \HttpFoundation \Response ;
18
19
use Symfony \Component \HttpKernel \Event \FilterResponseEvent ;
19
20
use Symfony \Component \HttpKernel \HttpKernelInterface ;
20
21
21
- class CacheControlListenerTest extends \PHPUnit_Framework_TestCase
22
+ class CacheControlListenerTest extends TestCase
22
23
{
23
24
public function testDefaultHeaders ()
24
25
{
Original file line number Diff line number Diff line change 17
17
use FOS \HttpCacheBundle \EventListener \InvalidationListener ;
18
18
use FOS \HttpCacheBundle \Http \RuleMatcherInterface ;
19
19
use Mockery \MockInterface ;
20
+ use PHPUnit \Framework \TestCase ;
20
21
use Symfony \Component \Console \Event \ConsoleEvent ;
21
22
use Symfony \Component \Console \Output \OutputInterface ;
22
23
use Symfony \Component \HttpFoundation \Request ;
28
29
use Symfony \Component \Routing \Route ;
29
30
use Symfony \Component \Routing \RouteCollection ;
30
31
31
- class InvalidationListenerTest extends \PHPUnit_Framework_TestCase
32
+ class InvalidationListenerTest extends TestCase
32
33
{
33
34
/**
34
35
* @var CacheManager|MockInterface
Original file line number Diff line number Diff line change 16
16
use FOS \HttpCacheBundle \EventListener \TagListener ;
17
17
use FOS \HttpCacheBundle \Http \RuleMatcherInterface ;
18
18
use FOS \HttpCacheBundle \Http \SymfonyResponseTagger ;
19
+ use PHPUnit \Framework \TestCase ;
19
20
use Symfony \Component \HttpFoundation \Request ;
20
21
use Symfony \Component \HttpFoundation \RequestMatcherInterface ;
21
22
use Symfony \Component \HttpFoundation \Response ;
22
23
use Symfony \Component \HttpKernel \Event \FilterResponseEvent ;
23
24
use Symfony \Component \HttpKernel \HttpKernelInterface ;
24
25
25
- class TagListenerTest extends \PHPUnit_Framework_TestCase
26
+ class TagListenerTest extends TestCase
26
27
{
27
28
/**
28
29
* @var CacheManager|\Mockery\Mock
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCache \UserContext \HashGenerator ;
15
15
use FOS \HttpCacheBundle \EventListener \UserContextListener ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \HttpFoundation \Request ;
17
18
use Symfony \Component \HttpFoundation \RequestMatcherInterface ;
18
19
use Symfony \Component \HttpFoundation \Response ;
19
20
use Symfony \Component \HttpKernel \Event \FilterResponseEvent ;
20
21
use Symfony \Component \HttpKernel \Event \GetResponseEvent ;
21
22
use Symfony \Component \HttpKernel \HttpKernelInterface ;
22
23
23
- class UserContextListenerTest extends \PHPUnit_Framework_TestCase
24
+ class UserContextListenerTest extends TestCase
24
25
{
25
26
/**
26
27
* @expectedException \InvalidArgumentException
Original file line number Diff line number Diff line change 12
12
namespace FOS \HttpCacheBundle \Tests \Unit \Http \RequestMatcher ;
13
13
14
14
use FOS \HttpCacheBundle \Http \RequestMatcher \QuerystringRequestMatcher ;
15
+ use PHPUnit \Framework \TestCase ;
15
16
use Symfony \Component \HttpFoundation \Request ;
16
17
17
- class QuerystringRequestMatcherTest extends \PHPUnit_Framework_TestCase
18
+ class QuerystringRequestMatcherTest extends TestCase
18
19
{
19
20
public function testMatchesReturnsFalseIfParentCallFails ()
20
21
{
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCacheBundle \Http \ResponseMatcher \CacheableResponseMatcher ;
15
15
use FOS \HttpCacheBundle \Http \RuleMatcher ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \HttpFoundation \Request ;
17
18
use Symfony \Component \HttpFoundation \RequestMatcher ;
18
19
use Symfony \Component \HttpFoundation \Response ;
19
20
20
- class RuleMatcherTest extends \PHPUnit_Framework_TestCase
21
+ class RuleMatcherTest extends TestCase
21
22
{
22
23
public function testRequestMatcherCalled ()
23
24
{
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCache \ProxyClient \ProxyClient ;
15
15
use FOS \HttpCacheBundle \Http \SymfonyResponseTagger ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \HttpFoundation \Response ;
17
18
18
- class SymfonyResponseTaggerTest extends \PHPUnit_Framework_TestCase
19
+ class SymfonyResponseTaggerTest extends TestCase
19
20
{
20
21
private $ proxyClient ;
21
22
Original file line number Diff line number Diff line change 12
12
namespace FOS \HttpCacheBundle \Tests \Unit \UserContext ;
13
13
14
14
use FOS \HttpCacheBundle \UserContext \AnonymousRequestMatcher ;
15
- use PHPUnit_Framework_TestCase ;
15
+ use PHPUnit \ Framework \ TestCase ;
16
16
use Symfony \Component \HttpFoundation \Request ;
17
17
18
- class AnonymousRequestMatcherTest extends PHPUnit_Framework_TestCase
18
+ class AnonymousRequestMatcherTest extends TestCase
19
19
{
20
20
public function testMatchAnonymousRequest ()
21
21
{
Original file line number Diff line number Diff line change 12
12
namespace FOS \HttpCacheBundle \Tests \Unit \UserContext ;
13
13
14
14
use FOS \HttpCacheBundle \UserContext \RequestMatcher ;
15
+ use PHPUnit \Framework \TestCase ;
15
16
use Symfony \Component \HttpFoundation \Request ;
16
17
17
- class RequestMatcherTest extends \PHPUnit_Framework_TestCase
18
+ class RequestMatcherTest extends TestCase
18
19
{
19
20
public function testMatch ()
20
21
{
Original file line number Diff line number Diff line change 13
13
14
14
use FOS \HttpCache \UserContext \UserContext ;
15
15
use FOS \HttpCacheBundle \UserContext \RoleProvider ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
use Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface ;
17
18
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
18
19
use Symfony \Component \Security \Core \Role \Role ;
19
20
20
- class RoleProviderTest extends \PHPUnit_Framework_TestCase
21
+ class RoleProviderTest extends TestCase
21
22
{
22
23
public function testProvider ()
23
24
{
You can’t perform that action at this time.
0 commit comments