-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency of phpunit-bridge (#112)
- Loading branch information
Showing
5 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,12 @@ | |
|
||
use PHPUnit\Framework\TestCase; | ||
use Psr\Cache\CacheItemPoolInterface; | ||
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait; | ||
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
abstract class HierarchicalCachePoolTest extends TestCase | ||
{ | ||
use SetUpTearDownTrait; | ||
|
||
/** | ||
* @type array with functionName => reason. | ||
*/ | ||
|
@@ -37,12 +34,18 @@ abstract class HierarchicalCachePoolTest extends TestCase | |
*/ | ||
abstract public function createCachePool(); | ||
|
||
private function doSetUp() | ||
/** | ||
* @before | ||
*/ | ||
public function setupService() | ||
{ | ||
$this->cache = $this->createCachePool(); | ||
} | ||
|
||
private function doTearDown() | ||
/** | ||
* @after | ||
*/ | ||
public function tearDownService() | ||
{ | ||
if ($this->cache !== null) { | ||
$this->cache->clear(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,12 @@ | |
|
||
use Cache\TagInterop\TaggableCacheItemPoolInterface; | ||
use PHPUnit\Framework\TestCase; | ||
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait; | ||
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
abstract class TaggableCachePoolTest extends TestCase | ||
{ | ||
use SetUpTearDownTrait; | ||
|
||
/** | ||
* @type array with functionName => reason. | ||
*/ | ||
|
@@ -37,12 +34,18 @@ abstract class TaggableCachePoolTest extends TestCase | |
*/ | ||
abstract public function createCachePool(); | ||
|
||
private function doSetUp() | ||
/** | ||
* @before | ||
*/ | ||
public function setupService() | ||
{ | ||
$this->cache = $this->createCachePool(); | ||
} | ||
|
||
private function doTearDown() | ||
/** | ||
* @after | ||
*/ | ||
public function tearDownService() | ||
{ | ||
if ($this->cache !== null) { | ||
$this->cache->clear(); | ||
|