@@ 204-217 (lines=14) @@ | ||
201 | $this->guy->seeInOutput('Class RoboFileFixture was not loaded'); |
|
202 | } |
|
203 | ||
204 | public function testRunnerQuietOutput() |
|
205 | { |
|
206 | $argv = ['placeholder', 'test:verbosity', '--quiet']; |
|
207 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
208 | ||
209 | $this->guy->doNotSeeInOutput('This command will print more information at higher verbosity levels'); |
|
210 | $this->guy->doNotSeeInOutput('This is a verbose message (-v).'); |
|
211 | $this->guy->doNotSeeInOutput('This is a very verbose message (-vv).'); |
|
212 | $this->guy->doNotSeeInOutput('This is a debug message (-vvv).'); |
|
213 | $this->guy->doNotSeeInOutput(' [warning] This is a warning log message.'); |
|
214 | $this->guy->doNotSeeInOutput(' [notice] This is a notice log message.'); |
|
215 | $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.'); |
|
216 | $this->assertEquals(0, $result); |
|
217 | } |
|
218 | ||
219 | public function testRunnerVerboseOutput() |
|
220 | { |
|
@@ 219-232 (lines=14) @@ | ||
216 | $this->assertEquals(0, $result); |
|
217 | } |
|
218 | ||
219 | public function testRunnerVerboseOutput() |
|
220 | { |
|
221 | $argv = ['placeholder', 'test:verbosity', '-v']; |
|
222 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
223 | ||
224 | $this->guy->seeInOutput('This command will print more information at higher verbosity levels'); |
|
225 | $this->guy->seeInOutput('This is a verbose message (-v).'); |
|
226 | $this->guy->doNotSeeInOutput('This is a very verbose message (-vv).'); |
|
227 | $this->guy->doNotSeeInOutput('This is a debug message (-vvv).'); |
|
228 | $this->guy->seeInOutput(' [warning] This is a warning log message.'); |
|
229 | $this->guy->seeInOutput(' [notice] This is a notice log message.'); |
|
230 | $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.'); |
|
231 | $this->assertEquals(0, $result); |
|
232 | } |
|
233 | ||
234 | public function testRunnerVeryVerboseOutput() |
|
235 | { |
|
@@ 234-247 (lines=14) @@ | ||
231 | $this->assertEquals(0, $result); |
|
232 | } |
|
233 | ||
234 | public function testRunnerVeryVerboseOutput() |
|
235 | { |
|
236 | $argv = ['placeholder', 'test:verbosity', '-vv']; |
|
237 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
238 | ||
239 | $this->guy->seeInOutput('This command will print more information at higher verbosity levels'); |
|
240 | $this->guy->seeInOutput('This is a verbose message (-v).'); |
|
241 | $this->guy->seeInOutput('This is a very verbose message (-vv).'); |
|
242 | $this->guy->doNotSeeInOutput('This is a debug message (-vvv).'); |
|
243 | $this->guy->seeInOutput(' [warning] This is a warning log message.'); |
|
244 | $this->guy->seeInOutput(' [notice] This is a notice log message.'); |
|
245 | $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.'); |
|
246 | $this->assertEquals(0, $result); |
|
247 | } |
|
248 | ||
249 | public function testRunnerVerbosityThresholdVerbose() |
|
250 | { |
|
@@ 271-284 (lines=14) @@ | ||
268 | $this->assertEquals(0, $result); |
|
269 | } |
|
270 | ||
271 | public function testRunnerDebugOutput() |
|
272 | { |
|
273 | $argv = ['placeholder', 'test:verbosity', '-vvv']; |
|
274 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
275 | ||
276 | $this->guy->seeInOutput('This command will print more information at higher verbosity levels'); |
|
277 | $this->guy->seeInOutput('This is a verbose message (-v).'); |
|
278 | $this->guy->seeInOutput('This is a very verbose message (-vv).'); |
|
279 | $this->guy->seeInOutput('This is a debug message (-vvv).'); |
|
280 | $this->guy->seeInOutput(' [warning] This is a warning log message.'); |
|
281 | $this->guy->seeInOutput(' [notice] This is a notice log message.'); |
|
282 | $this->guy->seeInOutput(' [debug] This is a debug log message.'); |
|
283 | $this->assertEquals(0, $result); |
|
284 | } |
|
285 | } |
|
286 |