Code Duplication    Length = 14-14 lines in 4 locations

tests/integration/RunnerTest.php 4 locations

@@ 214-227 (lines=14) @@
211
        $this->assertOutputContains('Class RoboFileFixture was not loaded');
212
    }
213
214
    public function testRunnerQuietOutput()
215
    {
216
        $argv = ['placeholder', 'test:verbosity', '--quiet'];
217
        $result = $this->runner->execute($argv, null, null, $this->capturedOutputStream());
218
219
        $this->assertOutputNotContains('This command will print more information at higher verbosity levels');
220
        $this->assertOutputNotContains('This is a verbose message (-v).');
221
        $this->assertOutputNotContains('This is a very verbose message (-vv).');
222
        $this->assertOutputNotContains('This is a debug message (-vvv).');
223
        $this->assertOutputNotContains(' [warning] This is a warning log message.');
224
        $this->assertOutputNotContains(' [notice] This is a notice log message.');
225
        $this->assertOutputNotContains(' [debug] This is a debug log message.');
226
        $this->assertEquals(0, $result);
227
    }
228
229
    public function testRunnerVerboseOutput()
230
    {
@@ 229-242 (lines=14) @@
226
        $this->assertEquals(0, $result);
227
    }
228
229
    public function testRunnerVerboseOutput()
230
    {
231
        $argv = ['placeholder', 'test:verbosity', '-v'];
232
        $result = $this->runner->execute($argv, null, null, $this->capturedOutputStream());
233
234
        $this->assertOutputContains('This command will print more information at higher verbosity levels');
235
        $this->assertOutputContains('This is a verbose message (-v).');
236
        $this->assertOutputNotContains('This is a very verbose message (-vv).');
237
        $this->assertOutputNotContains('This is a debug message (-vvv).');
238
        $this->assertOutputContains(' [warning] This is a warning log message.');
239
        $this->assertOutputContains(' [notice] This is a notice log message.');
240
        $this->assertOutputNotContains(' [debug] This is a debug log message.');
241
        $this->assertEquals(0, $result);
242
    }
243
244
    public function testRunnerVeryVerboseOutput()
245
    {
@@ 244-257 (lines=14) @@
241
        $this->assertEquals(0, $result);
242
    }
243
244
    public function testRunnerVeryVerboseOutput()
245
    {
246
        $argv = ['placeholder', 'test:verbosity', '-vv'];
247
        $result = $this->runner->execute($argv, null, null, $this->capturedOutputStream());
248
249
        $this->assertOutputContains('This command will print more information at higher verbosity levels');
250
        $this->assertOutputContains('This is a verbose message (-v).');
251
        $this->assertOutputContains('This is a very verbose message (-vv).');
252
        $this->assertOutputNotContains('This is a debug message (-vvv).');
253
        $this->assertOutputContains(' [warning] This is a warning log message.');
254
        $this->assertOutputContains(' [notice] This is a notice log message.');
255
        $this->assertOutputNotContains(' [debug] This is a debug log message.');
256
        $this->assertEquals(0, $result);
257
    }
258
259
    public function testRunnerVerbosityThresholdVerbose()
260
    {
@@ 281-294 (lines=14) @@
278
        $this->assertEquals(0, $result);
279
    }
280
281
    public function testRunnerDebugOutput()
282
    {
283
        $argv = ['placeholder', 'test:verbosity', '-vvv'];
284
        $result = $this->runner->execute($argv, null, null, $this->capturedOutputStream());
285
286
        $this->assertOutputContains('This command will print more information at higher verbosity levels');
287
        $this->assertOutputContains('This is a verbose message (-v).');
288
        $this->assertOutputContains('This is a very verbose message (-vv).');
289
        $this->assertOutputContains('This is a debug message (-vvv).');
290
        $this->assertOutputContains(' [warning] This is a warning log message.');
291
        $this->assertOutputContains(' [notice] This is a notice log message.');
292
        $this->assertOutputContains(' [debug] This is a debug log message.');
293
        $this->assertEquals(0, $result);
294
    }
295
}
296