@@ 182-195 (lines=14) @@ | ||
179 | $this->guy->seeInOutput('Class RoboFileFixture was not loaded'); |
|
180 | } |
|
181 | ||
182 | public function testRunnerQuietOutput() |
|
183 | { |
|
184 | $argv = ['placeholder', 'test:verbosity', '--quiet']; |
|
185 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
186 | ||
187 | $this->guy->doNotSeeInOutput('This command will print more information at higher verbosity levels'); |
|
188 | $this->guy->doNotSeeInOutput('This is a verbose message (-v).'); |
|
189 | $this->guy->doNotSeeInOutput('This is a very verbose message (-vv).'); |
|
190 | $this->guy->doNotSeeInOutput('This is a debug message (-vvv).'); |
|
191 | $this->guy->doNotSeeInOutput(' [warning] This is a warning log message.'); |
|
192 | $this->guy->doNotSeeInOutput(' [notice] This is a notice log message.'); |
|
193 | $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.'); |
|
194 | $this->assertEquals(0, $result); |
|
195 | } |
|
196 | ||
197 | public function testRunnerVerboseOutput() |
|
198 | { |
|
@@ 197-210 (lines=14) @@ | ||
194 | $this->assertEquals(0, $result); |
|
195 | } |
|
196 | ||
197 | public function testRunnerVerboseOutput() |
|
198 | { |
|
199 | $argv = ['placeholder', 'test:verbosity', '-v']; |
|
200 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
201 | ||
202 | $this->guy->seeInOutput('This command will print more information at higher verbosity levels'); |
|
203 | $this->guy->seeInOutput('This is a verbose message (-v).'); |
|
204 | $this->guy->doNotSeeInOutput('This is a very verbose message (-vv).'); |
|
205 | $this->guy->doNotSeeInOutput('This is a debug message (-vvv).'); |
|
206 | $this->guy->seeInOutput(' [warning] This is a warning log message.'); |
|
207 | $this->guy->seeInOutput(' [notice] This is a notice log message.'); |
|
208 | $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.'); |
|
209 | $this->assertEquals(0, $result); |
|
210 | } |
|
211 | ||
212 | public function testRunnerVeryVerboseOutput() |
|
213 | { |
|
@@ 212-225 (lines=14) @@ | ||
209 | $this->assertEquals(0, $result); |
|
210 | } |
|
211 | ||
212 | public function testRunnerVeryVerboseOutput() |
|
213 | { |
|
214 | $argv = ['placeholder', 'test:verbosity', '-vv']; |
|
215 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
216 | ||
217 | $this->guy->seeInOutput('This command will print more information at higher verbosity levels'); |
|
218 | $this->guy->seeInOutput('This is a verbose message (-v).'); |
|
219 | $this->guy->seeInOutput('This is a very verbose message (-vv).'); |
|
220 | $this->guy->doNotSeeInOutput('This is a debug message (-vvv).'); |
|
221 | $this->guy->seeInOutput(' [warning] This is a warning log message.'); |
|
222 | $this->guy->seeInOutput(' [notice] This is a notice log message.'); |
|
223 | $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.'); |
|
224 | $this->assertEquals(0, $result); |
|
225 | } |
|
226 | ||
227 | public function testRunnerVerbosityThresholdVerbose() |
|
228 | { |
|
@@ 249-262 (lines=14) @@ | ||
246 | $this->assertEquals(0, $result); |
|
247 | } |
|
248 | ||
249 | public function testRunnerDebugOutput() |
|
250 | { |
|
251 | $argv = ['placeholder', 'test:verbosity', '-vvv']; |
|
252 | $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); |
|
253 | ||
254 | $this->guy->seeInOutput('This command will print more information at higher verbosity levels'); |
|
255 | $this->guy->seeInOutput('This is a verbose message (-v).'); |
|
256 | $this->guy->seeInOutput('This is a very verbose message (-vv).'); |
|
257 | $this->guy->seeInOutput('This is a debug message (-vvv).'); |
|
258 | $this->guy->seeInOutput(' [warning] This is a warning log message.'); |
|
259 | $this->guy->seeInOutput(' [notice] This is a notice log message.'); |
|
260 | $this->guy->seeInOutput(' [debug] This is a debug log message.'); |
|
261 | $this->assertEquals(0, $result); |
|
262 | } |
|
263 | } |
|
264 |