minor #22037 [Cache] cache/integration-tests is now compatible with phpunit namespaces (nicolas-grekas)

This PR was merged into the 3.2 branch.

Discussion
----------

[Cache] cache/integration-tests is now compatible with phpunit namespaces

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

2e2d018 [Cache] cache/integration-tests is now compatible with phpunit namespaces
This commit is contained in:
Nicolas Grekas 2017-03-17 15:49:01 +01:00
commit ce55ce7d97
2 changed files with 1 additions and 13 deletions

View File

@ -13,18 +13,6 @@ namespace Symfony\Component\Cache\Tests\Adapter;
use Cache\IntegrationTests\CachePoolTest;
if (!class_exists('PHPUnit_Framework_TestCase')) {
abstract class AdapterTestCase
{
public static function setUpBeforeClass()
{
self::markTestSkipped('cache/integration-tests is not yet compatible with namespaced phpunit versions.');
}
}
return;
}
abstract class AdapterTestCase extends CachePoolTest
{
protected function setUp()

View File

@ -16,7 +16,7 @@ class PredisClusterAdapterTest extends AbstractRedisAdapterTest
public static function setupBeforeClass()
{
parent::setupBeforeClass();
self::$redis = new \Predis\Client(array(getenv('REDIS_HOST')));
self::$redis = new \Predis\Client(array(array('host' => getenv('REDIS_HOST'))));
}
public static function tearDownAfterClass()