Fix requiring path of bootstrap.php in external processes spawned by tests.

This commit is contained in:
Daniele Alessandri
2011-02-25 12:37:56 +01:00
parent 9f58d8a663
commit d2b0326087
+1 -1
View File
@@ -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');