@@ 44-54 (lines=11) @@ | ||
41 | $this->guy->seeInOutput("b: '3'"); |
|
42 | } |
|
43 | ||
44 | public function testWithConfigurationButNoOptions() |
|
45 | { |
|
46 | \Robo\Robo::config()->set('command.test.simple-list.options.a', '4'); |
|
47 | \Robo\Robo::config()->set('command.test.simple-list.options.b', '5'); |
|
48 | ||
49 | $argv = ['placeholder', 'test:simple-list']; |
|
50 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
51 | ||
52 | $this->guy->seeInOutput("a: '4'"); |
|
53 | $this->guy->seeInOutput("b: '5'"); |
|
54 | } |
|
55 | ||
56 | public function testWithConfigurationAndOptionOverride() |
|
57 | { |
|
@@ 56-66 (lines=11) @@ | ||
53 | $this->guy->seeInOutput("b: '5'"); |
|
54 | } |
|
55 | ||
56 | public function testWithConfigurationAndOptionOverride() |
|
57 | { |
|
58 | \Robo\Robo::config()->set('command.test.simple-list.options.a', '4'); |
|
59 | \Robo\Robo::config()->set('command.test.simple-list.options.b', '5'); |
|
60 | ||
61 | $argv = ['placeholder', 'test:simple-list', '--b=6']; |
|
62 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
63 | ||
64 | $this->guy->seeInOutput("a: '4'"); |
|
65 | $this->guy->seeInOutput("b: '6'"); |
|
66 | } |
|
67 | ||
68 | public function testSettingConfigurationFromCommandOptions() |
|
69 | { |