|
@@ 332-342 (lines=11) @@
|
| 329 |
|
$this->guy->seeInOutput("b: '3'"); |
| 330 |
|
} |
| 331 |
|
|
| 332 |
|
public function testWithConfigurationButNoOptions() |
| 333 |
|
{ |
| 334 |
|
\Robo\Robo::config()->set('command.test.simple-list.options.a', '4'); |
| 335 |
|
\Robo\Robo::config()->set('command.test.simple-list.options.b', '5'); |
| 336 |
|
|
| 337 |
|
$argv = ['placeholder', 'test:simple-list']; |
| 338 |
|
$result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
| 339 |
|
|
| 340 |
|
$this->guy->seeInOutput("a: '4'"); |
| 341 |
|
$this->guy->seeInOutput("b: '5'"); |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
public function testWithConfigurationAndOptionOverride() |
| 345 |
|
{ |
|
@@ 344-354 (lines=11) @@
|
| 341 |
|
$this->guy->seeInOutput("b: '5'"); |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
public function testWithConfigurationAndOptionOverride() |
| 345 |
|
{ |
| 346 |
|
\Robo\Robo::config()->set('command.test.simple-list.options.a', '4'); |
| 347 |
|
\Robo\Robo::config()->set('command.test.simple-list.options.b', '5'); |
| 348 |
|
|
| 349 |
|
$argv = ['placeholder', 'test:simple-list', '--b=6']; |
| 350 |
|
$result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
| 351 |
|
|
| 352 |
|
$this->guy->seeInOutput("a: '4'"); |
| 353 |
|
$this->guy->seeInOutput("b: '6'"); |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
public function testSettingConfigurationFromCommandOptions() |
| 357 |
|
{ |