src/Task/Composer/Base.php 1 location
|
@@ 55-64 (lines=10) @@
|
52 |
|
* |
53 |
|
* @throws \Robo\Exception\TaskException |
54 |
|
*/ |
55 |
|
public function __construct($pathToComposer = null) |
56 |
|
{ |
57 |
|
$this->command = $pathToComposer; |
58 |
|
if (!$this->command) { |
59 |
|
$this->command = $this->findExecutablePhar('composer'); |
60 |
|
} |
61 |
|
if (!$this->command) { |
62 |
|
throw new TaskException(__CLASS__, "Neither local composer.phar nor global composer installation could be found."); |
63 |
|
} |
64 |
|
} |
65 |
|
|
66 |
|
/** |
67 |
|
* adds `prefer-dist` option to composer |
src/Task/Testing/PHPUnit.php 1 location
|
@@ 46-55 (lines=10) @@
|
43 |
|
* |
44 |
|
* @throws \Robo\Exception\TaskException |
45 |
|
*/ |
46 |
|
public function __construct($pathToPhpUnit = null) |
47 |
|
{ |
48 |
|
$this->command = $pathToPhpUnit; |
49 |
|
if (!$this->command) { |
50 |
|
$this->command = $this->findExecutablePhar('phpunit'); |
51 |
|
} |
52 |
|
if (!$this->command) { |
53 |
|
throw new \Robo\Exception\TaskException(__CLASS__, "Neither local phpunit nor global composer installation not found"); |
54 |
|
} |
55 |
|
} |
56 |
|
|
57 |
|
/** |
58 |
|
* @param string $filter |