From 109ac5f8271c0c175729da96960b88b3581d71a6 Mon Sep 17 00:00:00 2001 From: Waleed Gadelkareem Date: Fri, 13 Jan 2017 18:11:10 +0100 Subject: [PATCH] Allow gearman env vars --- .../Tests/ORM/Functional/Locking/GearmanLockTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php b/tests/Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php index 43a3cbf5b..9c8d4b7ea 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php @@ -26,7 +26,10 @@ class GearmanLockTest extends OrmFunctionalTestCase $this->tasks = []; $this->gearman = new \GearmanClient(); - $this->gearman->addServer(); + $this->gearman->addServer( + isset($_SERVER['GEARMAN_HOST']) ? $_SERVER['GEARMAN_HOST'] : null, + isset($_SERVER['GEARMAN_PORT']) ? $_SERVER['GEARMAN_PORT'] : 4730 + ); $this->gearman->setCompleteCallback([$this, "gearmanTaskCompleted"]); $article = new CmsArticle();