From 0f4b27a2d0fb4079d54b900b353ba893c3f27453 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Fri, 26 Sep 2014 02:27:45 +0200 Subject: [PATCH] Added the possibility to configure the node modules path in tests --- phpunit.xml.dist | 1 + tests/ZombieConfig.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index cb0dde3..cd5862f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -12,6 +12,7 @@ + diff --git a/tests/ZombieConfig.php b/tests/ZombieConfig.php index 35ba56c..fad98e4 100644 --- a/tests/ZombieConfig.php +++ b/tests/ZombieConfig.php @@ -19,6 +19,10 @@ public function createDriver() { $server = new ZombieServer('127.0.0.1', 8124, 'node'); + if (isset($_SERVER['NODE_MODULES_PATH'])) { + $server->setNodeModulesPath($_SERVER['NODE_MODULES_PATH']); + } + return new ZombieDriver($server); }