@@ 70-79 (lines=10) @@ | ||
67 | * |
|
68 | * @throws \Robo\Exception\TaskException |
|
69 | */ |
|
70 | public function __construct($pathToBower = null) |
|
71 | { |
|
72 | $this->command = $pathToBower; |
|
73 | if (!$this->command) { |
|
74 | $this->command = $this->findExecutable('bower'); |
|
75 | } |
|
76 | if (!$this->command) { |
|
77 | throw new TaskException(__CLASS__, "Bower executable not found."); |
|
78 | } |
|
79 | } |
|
80 | ||
81 | /** |
|
82 | * @return string |
@@ 78-88 (lines=11) @@ | ||
75 | * |
|
76 | * @throws \Robo\Exception\TaskException |
|
77 | */ |
|
78 | public function __construct($task, $pathToGulp = null) |
|
79 | { |
|
80 | $this->task = $task; |
|
81 | $this->command = $pathToGulp; |
|
82 | if (!$this->command) { |
|
83 | $this->command = $this->findExecutable('gulp'); |
|
84 | } |
|
85 | if (!$this->command) { |
|
86 | throw new TaskException(__CLASS__, "Gulp executable not found."); |
|
87 | } |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * @return string |
@@ 42-51 (lines=10) @@ | ||
39 | * |
|
40 | * @throws \Robo\Exception\TaskException |
|
41 | */ |
|
42 | public function __construct($pathToNpm = null) |
|
43 | { |
|
44 | $this->command = $pathToNpm; |
|
45 | if (!$this->command) { |
|
46 | $this->command = $this->findExecutable('npm'); |
|
47 | } |
|
48 | if (!$this->command) { |
|
49 | throw new TaskException(__CLASS__, "Npm executable not found."); |
|
50 | } |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * @return string |
@@ 37-46 (lines=10) @@ | ||
34 | * |
|
35 | * @throws \Robo\Exception\TaskException |
|
36 | */ |
|
37 | public function __construct($pathToAtoum = null) |
|
38 | { |
|
39 | $this->command = $pathToAtoum; |
|
40 | if (!$this->command) { |
|
41 | $this->command = $this->findExecutable('atoum'); |
|
42 | } |
|
43 | if (!$this->command) { |
|
44 | throw new \Robo\Exception\TaskException(__CLASS__, "Neither local atoum nor global composer installation not found"); |
|
45 | } |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * Tag or Tags to filter. |
@@ 47-56 (lines=10) @@ | ||
44 | * |
|
45 | * @throws \Robo\Exception\TaskException |
|
46 | */ |
|
47 | public function __construct($pathToBehat = null) |
|
48 | { |
|
49 | $this->command = $pathToBehat; |
|
50 | if (!$this->command) { |
|
51 | $this->command = $this->findExecutable('behat'); |
|
52 | } |
|
53 | if (!$this->command) { |
|
54 | throw new \Robo\Exception\TaskException(__CLASS__, "Neither composer nor phar installation of Behat found"); |
|
55 | } |
|
56 | } |
|
57 | ||
58 | /** |
|
59 | * @return $this |
@@ 42-52 (lines=11) @@ | ||
39 | * |
|
40 | * @throws \Robo\Exception\TaskException |
|
41 | */ |
|
42 | public function __construct($pathToCodeception = '') |
|
43 | { |
|
44 | $this->command = $pathToCodeception; |
|
45 | if (!$this->command) { |
|
46 | $this->command = $this->findExecutable('codecept'); |
|
47 | } |
|
48 | if (!$this->command) { |
|
49 | throw new TaskException(__CLASS__, "Neither composer nor phar installation of Codeception found."); |
|
50 | } |
|
51 | $this->command .= ' run'; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param string $suite |
@@ 40-50 (lines=11) @@ | ||
37 | */ |
|
38 | protected $verbose_levels = ['v', 'vv', 'vvv']; |
|
39 | ||
40 | public function __construct($pathToPhpspec = null) |
|
41 | { |
|
42 | $this->command = $pathToPhpspec; |
|
43 | if (!$this->command) { |
|
44 | $this->command = $this->findExecutable('phpspec'); |
|
45 | } |
|
46 | if (!$this->command) { |
|
47 | throw new \Robo\Exception\TaskException(__CLASS__, "Neither composer nor phar installation of Phpspec found"); |
|
48 | } |
|
49 | $this->arg('run'); |
|
50 | } |
|
51 | ||
52 | public function stopOnFail() |
|
53 | { |