File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 "require-dev" : {
3131 "phpunit/phpunit" : " ^4.8.35|^5.4.3" ,
3232 "cache/cache" : " ^1.0" ,
33- "symfony/cache" : " ^3.1|^4.0|^5.0" ,
33+ "symfony/cache" : " ^3.4.31|^4.3.4|^5.0" ,
34+ "symfony/phpunit-bridge" : " ^4.4" ,
3435 "illuminate/cache" : " ^5.4|^5.5|^5.6" ,
3536 "tedivm/stash" : " ^0.14" ,
3637 "mockery/mockery" : " ^1.0"
Original file line number Diff line number Diff line change 1414use PHPUnit \Framework \TestCase ;
1515use Psr \Cache \CacheItemInterface ;
1616use Psr \Cache \CacheItemPoolInterface ;
17+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1718
1819abstract class CachePoolTest extends TestCase
1920{
21+ use ForwardCompatTestTrait;
22+
2023 /**
2124 * @type array with functionName => reason.
2225 */
@@ -32,12 +35,12 @@ abstract class CachePoolTest extends TestCase
3235 */
3336 abstract public function createCachePool ();
3437
35- protected function setUp ()
38+ private function doSetUp ()
3639 {
3740 $ this ->cache = $ this ->createCachePool ();
3841 }
3942
40- protected function tearDown ()
43+ private function doTearDown ()
4144 {
4245 if ($ this ->cache !== null ) {
4346 $ this ->cache ->clear ();
Original file line number Diff line number Diff line change 1313
1414use PHPUnit \Framework \TestCase ;
1515use Psr \Cache \CacheItemPoolInterface ;
16+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1617
1718/**
1819 * @author Tobias Nyholm <tobias.nyholm@gmail.com>
1920 */
2021abstract class HierarchicalCachePoolTest extends TestCase
2122{
23+ use ForwardCompatTestTrait;
24+
2225 /**
2326 * @type array with functionName => reason.
2427 */
@@ -34,12 +37,12 @@ abstract class HierarchicalCachePoolTest extends TestCase
3437 */
3538 abstract public function createCachePool ();
3639
37- protected function setUp ()
40+ private function doSetUp ()
3841 {
3942 $ this ->cache = $ this ->createCachePool ();
4043 }
4144
42- protected function tearDown ()
45+ private function doTearDown ()
4346 {
4447 if ($ this ->cache !== null ) {
4548 $ this ->cache ->clear ();
Original file line number Diff line number Diff line change 1313
1414use PHPUnit \Framework \TestCase ;
1515use Psr \SimpleCache \CacheInterface ;
16+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1617
1718abstract class SimpleCacheTest extends TestCase
1819{
20+ use ForwardCompatTestTrait;
21+
1922 /**
2023 * @type array with functionName => reason.
2124 */
@@ -46,12 +49,12 @@ public function advanceTime($seconds)
4649 sleep ($ seconds );
4750 }
4851
49- protected function setUp ()
52+ private function doSetUp ()
5053 {
5154 $ this ->cache = $ this ->createSimpleCache ();
5255 }
5356
54- protected function tearDown ()
57+ private function doTearDown ()
5558 {
5659 if ($ this ->cache !== null ) {
5760 $ this ->cache ->clear ();
Original file line number Diff line number Diff line change 1313
1414use Cache \TagInterop \TaggableCacheItemPoolInterface ;
1515use PHPUnit \Framework \TestCase ;
16+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1617
1718/**
1819 * @author Tobias Nyholm <tobias.nyholm@gmail.com>
1920 */
2021abstract class TaggableCachePoolTest extends TestCase
2122{
23+ use ForwardCompatTestTrait;
24+
2225 /**
2326 * @type array with functionName => reason.
2427 */
@@ -34,12 +37,12 @@ abstract class TaggableCachePoolTest extends TestCase
3437 */
3538 abstract public function createCachePool ();
3639
37- protected function setUp ()
40+ private function doSetUp ()
3841 {
3942 $ this ->cache = $ this ->createCachePool ();
4043 }
4144
42- protected function tearDown ()
45+ private function doTearDown ()
4346 {
4447 if ($ this ->cache !== null ) {
4548 $ this ->cache ->clear ();
You can’t perform that action at this time.
0 commit comments