Skip to content

Commit 6655fd1

Browse files
Merge branch '5.0'
* 5.0: (26 commits) [Filesystem] Handle paths on different drives [WebProfiler] Do not add src-elem CSP directives if they do not exist [Yaml] fix parse error when unindented collections contain a comment Execute docker dependent tests with github actions Update exception.html.php [3.4][Inflector] Improve testSingularize() argument name [Inflector] Fix testPluralize() arguments names [PhpUnitBridge] fix PHP 5.3 compat again Skip validation when email is an empty object fix sr_Latn translation [Validator] fix lazy property usage. Fix annotation [Debug][ErrorHandler] cleanup phpunit.xml.dist files [Translation] Fix for translation:update command updating ICU messages [PhpUnitBridge] fix compat with PHP 5.3 bumped Symfony version to 5.0.9 updated VERSION for 5.0.8 updated CHANGELOG for 5.0.8 bumped Symfony version to 4.4.9 updated VERSION for 4.4.8 ...
2 parents 3172788 + bf4bd4e commit 6655fd1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Tests/Caster/RedisCasterTest.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/**
1818
* @author Nicolas Grekas <[email protected]>
1919
* @requires extension redis
20+
* @group integration
2021
*/
2122
class RedisCasterTest extends TestCase
2223
{
@@ -37,16 +38,18 @@ public function testNotConnected()
3738

3839
public function testConnected()
3940
{
41+
$redisHost = getenv('REDIS_HOST');
4042
$redis = new \Redis();
41-
if (!@$redis->connect('127.0.0.1')) {
42-
$e = error_get_last();
43-
self::markTestSkipped($e['message']);
43+
try {
44+
$redis->connect($redisHost);
45+
} catch (\Exception $e) {
46+
self::markTestSkipped($e->getMessage());
4447
}
4548

46-
$xCast = <<<'EODUMP'
49+
$xCast = <<<EODUMP
4750
Redis {%A
4851
isConnected: true
49-
host: "127.0.0.1"
52+
host: "$redisHost"
5053
port: 6379
5154
auth: null
5255
mode: ATOMIC

0 commit comments

Comments
 (0)