Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a43f458

Browse files
yatsukhnenkomichael-grunder
authored andcommitted
TravisCI: fix tests
1 parent 4fde817 commit a43f458

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ before_script:
5555
- redis-server --port 0 --daemonize yes --aclfile tests/users.acl --unixsocket /tmp/redis.sock
5656
- for PORT in $(seq 6379 6382) $(seq 32767 32769); do redis-server --port $PORT --daemonize yes --aclfile tests/users.acl; done
5757
- for PORT in $(seq 7000 7011); do redis-server --port $PORT --cluster-enabled yes --cluster-config-file $PORT.conf --daemonize yes --aclfile tests/users.acl; echo 127.0.0.1:$PORT >> tests/nodes/nodemap; done
58-
- for PORT in $(seq 26379 26380); do wget raw.githubusercontent.com/redis/redis/6.0/sentinel.conf -O $PORT.conf; sed -i '/^sentinel/d' $PORT.conf; redis-server $PORT.conf --port $PORT --daemonize yes --sentinel monitor mymaster 127.0.0.1 6379 1 --sentinel sentinel auth-pass mymaster phpredis; done
58+
- for PORT in $(seq 26379 26380); do wget raw.githubusercontent.com/redis/redis/6.0/sentinel.conf -O $PORT.conf; sed -i '/^sentinel/d' $PORT.conf; redis-server $PORT.conf --port $PORT --daemonize yes --sentinel monitor mymaster 127.0.0.1 6379 1 --sentinel auth-pass mymaster phpredis; done
5959
- echo yes | redis-cli --cluster create $(seq -f 127.0.0.1:%g 7000 7011) --cluster-replicas 3 --user phpredis -a phpredis
6060
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
6161
- openssl req -x509 -newkey rsa:1024 -nodes -keyout stunnel.key -out stunnel.pem -days 1 -subj '/CN=localhost'

tests/RedisTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6168,7 +6168,6 @@ public function testInvalidAuthArgs() {
61686168
$obj_new = $this->newInstance();
61696169

61706170
$arr_args = [
6171-
NULL,
61726171
[],
61736172
[NULL, NULL],
61746173
['foo', 'bar', 'baz'],
@@ -6184,8 +6183,6 @@ public function testInvalidAuthArgs() {
61846183
try {
61856184
if (is_array($arr_arg)) {
61866185
@call_user_func_array([$obj_new, 'auth'], $arr_arg);
6187-
} else {
6188-
@call_user_func([$obj_new, 'auth']);
61896186
}
61906187
} catch (Exception $ex) {
61916188
unset($ex); /* Suppress intellisense warning */

0 commit comments

Comments
 (0)