Code Duplication    Length = 7-15 lines in 3 locations

tests/php/PHPMD/TextUI/CommandLineOptionsTest.php 3 locations

@@ 289-295 (lines=7) @@
286
    /**
287
     * @return void
288
     */
289
    public function testCliOptionsAcceptsMinimumpriorityArgument()
290
    {
291
        $args = array(__FILE__, '--minimumpriority', 42, __FILE__, 'text', 'codesize');
292
        $opts = new CommandLineOptions($args);
293
294
        $this->assertEquals(42, $opts->getMinimumPriority());
295
    }
296
297
    /**
298
     * @return void
@@ 300-306 (lines=7) @@
297
    /**
298
     * @return void
299
     */
300
    public function testCliOptionsAcceptsMaximumpriorityArgument()
301
    {
302
        $args = array(__FILE__, '--maximumpriority', 42, __FILE__, 'text', 'codesize');
303
        $opts = new CommandLineOptions($args);
304
305
        $this->assertEquals(42, $opts->getMaximumPriority());
306
    }
307
308
    /**
309
     * @return void
@@ 333-347 (lines=15) @@
330
    /**
331
     * @return void
332
     */
333
    public function testGetCoverageReportWithCliOption()
334
    {
335
        $opts = new CommandLineOptions(
336
            array(
337
                __FILE__,
338
                __FILE__,
339
                'text',
340
                'codesize',
341
                '--coverage',
342
                __METHOD__
343
            )
344
        );
345
346
        $this->assertEquals(__METHOD__, $opts->getCoverageReport());
347
    }
348
349
    /**
350
     * @param string $reportFormat