Code Duplication    Length = 7-7 lines in 2 locations

tests/Doctrine/Tests/DBAL/Types/DateIntervalTest.php 2 locations

@@ 43-49 (lines=7) @@
40
        self::assertEquals($expected, $actual);
41
    }
42
43
    public function testDateIntervalConvertsToPHPValue() : void
44
    {
45
        $interval = $this->type->convertToPHPValue('+P02Y00M01DT01H02M03S', $this->platform);
46
47
        self::assertInstanceOf(\DateInterval::class, $interval);
48
        self::assertEquals('+P02Y00M01DT01H02M03S', $interval->format(DateIntervalType::FORMAT));
49
    }
50
51
    public function testNegativeDateIntervalConvertsToDatabaseValue() : void
52
    {
@@ 61-67 (lines=7) @@
58
        self::assertEquals('-P02Y00M01DT01H02M03S', $actual);
59
    }
60
61
    public function testNegativeDateIntervalConvertsToPHPValue() : void
62
    {
63
        $interval = $this->type->convertToPHPValue('-P02Y00M01DT01H02M03S', $this->platform);
64
65
        self::assertInstanceOf(\DateInterval::class, $interval);
66
        self::assertEquals('-P02Y00M01DT01H02M03S', $interval->format(DateIntervalType::FORMAT));
67
    }
68
69
    public function testInvalidDateIntervalFormatConversion() : void
70
    {