@@ 101-111 (lines=11) @@ | ||
98 | $this->guy->seeInOutput("b: '7'"); |
|
99 | } |
|
100 | ||
101 | public function testSettingConfigurationFromCommandOptions() |
|
102 | { |
|
103 | $argv = ['placeholder', 'test:simple-list', '-D', 'config.key=value']; |
|
104 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
105 | ||
106 | $this->guy->seeInOutput("a: '1'"); |
|
107 | $this->guy->seeInOutput("b: '2'"); |
|
108 | ||
109 | $actual = \Robo\Robo::config()->get('config.key'); |
|
110 | $this->assertEquals('value', $actual); |
|
111 | } |
|
112 | ||
113 | public function testWithConfigLoader() |
|
114 | { |
@@ 227-236 (lines=10) @@ | ||
224 | $this->assertEquals(0, $result); |
|
225 | } |
|
226 | ||
227 | public function testRunnerVerbosityThresholdVerbose() |
|
228 | { |
|
229 | $argv = ['placeholder', 'test:verbosity-threshold', '-v']; |
|
230 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
231 | ||
232 | $this->guy->seeInOutput('This command will print more information at higher verbosity levels'); |
|
233 | $this->guy->seeInOutput("Running echo verbose or higher\nverbose or higher"); |
|
234 | $this->guy->doNotSeeInOutput('very verbose or higher'); |
|
235 | $this->assertEquals(0, $result); |
|
236 | } |
|
237 | ||
238 | public function testRunnerVerbosityThresholdVeryVerbose() |
|
239 | { |
|
@@ 238-247 (lines=10) @@ | ||
235 | $this->assertEquals(0, $result); |
|
236 | } |
|
237 | ||
238 | public function testRunnerVerbosityThresholdVeryVerbose() |
|
239 | { |
|
240 | $argv = ['placeholder', 'test:verbosity-threshold', '-vv']; |
|
241 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
242 | ||
243 | $this->guy->seeInOutput('This command will print more information at higher verbosity levels'); |
|
244 | $this->guy->seeInOutput("Running echo verbose or higher\nverbose or higher"); |
|
245 | $this->guy->seeInOutput("Running echo very verbose or higher\nvery verbose or higher"); |
|
246 | $this->assertEquals(0, $result); |
|
247 | } |
|
248 | ||
249 | public function testRunnerDebugOutput() |
|
250 | { |