mirror of
https://github.com/predis/predis.git
synced 2026-09-12 11:27:05 +00:00
Fix requiring path of bootstrap.php in external processes spawned by tests.
This commit is contained in:
@@ -79,7 +79,7 @@ class RC {
|
||||
$redisUri = sprintf('redis://%s:%d/?database=%d', RC::SERVER_HOST, RC::SERVER_PORT, RC::DEFAULT_DATABASE);
|
||||
$handle = popen('php', 'w');
|
||||
fwrite($handle, "<?php
|
||||
require 'bootstrap.php';
|
||||
require __DIR__.'/test/bootstrap.php';
|
||||
\$redis = new Predis\Client('$redisUri');
|
||||
\$redis->rpush('{$op}1', 'a');
|
||||
\$redis->rpush('{$op}2', 'b');
|
||||
|
||||
Reference in New Issue
Block a user