Code Duplication    Length = 7-15 lines in 3 locations

src/test/php/PHPMD/TextUI/CommandLineOptionsTest.php 3 locations

@@ 325-331 (lines=7) @@
322
    /**
323
     * @return void
324
     */
325
    public function testCliOptionsAcceptsMinimumpriorityArgument()
326
    {
327
        $args = array(__FILE__, '--minimumpriority', 42, __FILE__, 'text', 'codesize');
328
        $opts = new CommandLineOptions($args);
329
330
        $this->assertEquals(42, $opts->getMinimumPriority());
331
    }
332
333
    /**
334
     * @return void
@@ 336-342 (lines=7) @@
333
    /**
334
     * @return void
335
     */
336
    public function testCliOptionsAcceptsMaximumpriorityArgument()
337
    {
338
        $args = array(__FILE__, '--maximumpriority', 42, __FILE__, 'text', 'codesize');
339
        $opts = new CommandLineOptions($args);
340
341
        $this->assertEquals(42, $opts->getMaximumPriority());
342
    }
343
344
    /**
345
     * @return void
@@ 369-383 (lines=15) @@
366
    /**
367
     * @return void
368
     */
369
    public function testGetCoverageReportWithCliOption()
370
    {
371
        $opts = new CommandLineOptions(
372
            array(
373
                __FILE__,
374
                __FILE__,
375
                'text',
376
                'codesize',
377
                '--coverage',
378
                __METHOD__,
379
            )
380
        );
381
382
        $this->assertEquals(__METHOD__, $opts->getCoverageReport());
383
    }
384
385
    /**
386
     * @param string $reportFormat