Code Duplication    Length = 11-11 lines in 4 locations

vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php 4 locations

@@ 427-437 (lines=11) @@
424
        $this->assertFalse($result->wasSuccessful());
425
    }
426
427
    public function testSkipsIfRequiresHigherVersionOfPHPUnit()
428
    {
429
        $test   = new RequirementsTest('testAlwaysSkip');
430
        $result = $test->run();
431
432
        $this->assertEquals(1, $result->skippedCount());
433
        $this->assertEquals(
434
            'PHPUnit 1111111 (or later) is required.',
435
            $test->getStatusMessage()
436
        );
437
    }
438
439
    public function testSkipsIfRequiresHigherVersionOfPHP()
440
    {
@@ 439-449 (lines=11) @@
436
        );
437
    }
438
439
    public function testSkipsIfRequiresHigherVersionOfPHP()
440
    {
441
        $test   = new RequirementsTest('testAlwaysSkip2');
442
        $result = $test->run();
443
444
        $this->assertEquals(1, $result->skippedCount());
445
        $this->assertEquals(
446
            'PHP 9999999 (or later) is required.',
447
            $test->getStatusMessage()
448
        );
449
    }
450
451
    public function testSkipsIfRequiresNonExistingOs()
452
    {
@@ 451-461 (lines=11) @@
448
        );
449
    }
450
451
    public function testSkipsIfRequiresNonExistingOs()
452
    {
453
        $test   = new RequirementsTest('testAlwaysSkip3');
454
        $result = $test->run();
455
456
        $this->assertEquals(1, $result->skippedCount());
457
        $this->assertEquals(
458
            'Operating system matching /DOESNOTEXIST/i is required.',
459
            $test->getStatusMessage()
460
        );
461
    }
462
463
    public function testSkipsIfRequiresNonExistingFunction()
464
    {
@@ 463-473 (lines=11) @@
460
        );
461
    }
462
463
    public function testSkipsIfRequiresNonExistingFunction()
464
    {
465
        $test   = new RequirementsTest('testNine');
466
        $result = $test->run();
467
468
        $this->assertEquals(1, $result->skippedCount());
469
        $this->assertEquals(
470
            'Function testFunc is required.',
471
            $test->getStatusMessage()
472
        );
473
    }
474
475
    public function testSkipsIfRequiresNonExistingExtension()
476
    {