diff --git a/tests/Doctrine/Tests/ORM/Functional/Locking/LockAgentWorker.php b/tests/Doctrine/Tests/ORM/Functional/Locking/LockAgentWorker.php index c3d226aa4..c7b82f7a8 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Locking/LockAgentWorker.php +++ b/tests/Doctrine/Tests/ORM/Functional/Locking/LockAgentWorker.php @@ -16,7 +16,10 @@ class LockAgentWorker $lockAgent = new LockAgentWorker(); $worker = new \GearmanWorker(); - $worker->addServer(); + $worker->addServer( + isset($_SERVER['GEARMAN_HOST']) ? $_SERVER['GEARMAN_HOST'] : null, + isset($_SERVER['GEARMAN_PORT']) ? $_SERVER['GEARMAN_PORT'] : 4730 + ); $worker->addFunction("findWithLock", [$lockAgent, "findWithLock"]); $worker->addFunction("dqlWithLock", [$lockAgent, "dqlWithLock"]); $worker->addFunction('lock', [$lockAgent, 'lock']);