Code Duplication    Length = 11-11 lines in 2 locations

tests/DateTime/Utilities/DateTimeZoneUtilTest.php 1 location

@@ 62-72 (lines=11) @@
59
     * @covers ::fromString
60
     * @dataProvider getOutliers
61
     */
62
    public function fromStringOutliers(string $abbreviation, string $expected)
63
    {
64
        if (timezone_name_from_abbr($abbreviation) !== false) {
65
            $this->markTestSkipped(
66
                "The timezone abbreviation '{$abbreviation}' is not considered an outlier on this system"
67
            );
68
            return;
69
        }
70
71
        $this->assertSame($expected, DateTimeZoneUtil::fromString($abbreviation)->getName());
72
    }
73
74
    /**
75
     * Dataprovider for outlier testing

tests/Util/DateTimeZoneTest.php 1 location

@@ 67-77 (lines=11) @@
64
     *
65
     * @return void
66
     */
67
    public function fromStringOutliers($abbreviation, $expected)
68
    {
69
        if (timezone_name_from_abbr($abbreviation) !== false) {
70
            $this->markTestSkipped(
71
                "The timezone abbreviation '{$abbreviation}' is not considered an outlier on this system"
72
            );
73
            return;
74
        }
75
76
        $this->assertSame($expected, DateTimeZone::fromString($abbreviation)->getName());
77
    }
78
79
    /**
80
     * Dataprovider for outlier testing