From a1f0b93861f496d8f929c6f1efff087e2f5cb4e8 Mon Sep 17 00:00:00 2001 From: "a.cianfarani" Date: Fri, 10 Jan 2014 10:58:14 +0100 Subject: [PATCH] Added executable option for behat plugin --- PHPCI/Plugin/Behat.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PHPCI/Plugin/Behat.php b/PHPCI/Plugin/Behat.php index 704d76cf..e4b72155 100644 --- a/PHPCI/Plugin/Behat.php +++ b/PHPCI/Plugin/Behat.php @@ -28,6 +28,12 @@ class Behat implements \PHPCI\Plugin $this->phpci = $phpci; $this->features = ''; + if (isset($options['executable'])) { + $this->executable = $options['executable']; + } else { + $this->executable = $this->phpci->findBinary('atoum'); + } + if (!empty($options['features'])) { $this->features = $options['features']; } @@ -41,7 +47,7 @@ class Behat implements \PHPCI\Plugin $curdir = getcwd(); chdir($this->phpci->buildPath); - $behat = $this->phpci->findBinary('behat'); + $behat = $this->executable; if (!$behat) { $this->phpci->logFailure('Could not find behat.');