Code Duplication    Length = 12-12 lines in 2 locations

Tests/Sniffs/PHP/NewIniDirectivesSniffTest.php 2 locations

@@ 373-384 (lines=12) @@
370
     *
371
     * @return void
372
     */
373
    public function testNewIniDirectives($iniName, $fromVersion, $lines, $warningVersion, $okVersion)
374
    {
375
        $file = $this->sniffFile('sniff-examples/new_ini_directives.php', $warningVersion);
376
        foreach($lines as $line) {
377
            $this->assertWarning($file, $line, "INI directive '{$iniName}' is not available before version $fromVersion");
378
        }
379
380
        $file = $this->sniffFile('sniff-examples/new_ini_directives.php', $okVersion);
381
        foreach( $lines as $line ) {
382
            $this->assertNoViolation($file, $line);
383
        }
384
    }
385
386
    public function dataNewIniDirectives() {
387
        return array(
@@ 488-499 (lines=12) @@
485
     *
486
     * @return void
487
     */
488
    public function testNewIniDirectivesWithAlternative($iniName, $fromVersion, $alternative, $lines, $warningVersion, $okVersion)
489
    {
490
        $file = $this->sniffFile('sniff-examples/new_ini_directives.php', $warningVersion);
491
        foreach($lines as $line) {
492
            $this->assertWarning($file, $line, "INI directive '{$iniName}' is not available before version $fromVersion");
493
        }
494
495
        $file = $this->sniffFile('sniff-examples/new_ini_directives.php', $okVersion);
496
        foreach($lines as $line) {
497
            $this->assertNoViolation($file, $line);
498
        }
499
    }
500
501
    public function dataNewIniDirectivesWithAlternative() {
502
        return array(