Code Duplication    Length = 18-19 lines in 2 locations

tests/Doctrine/Tests/DBAL/Types/DateIntervalTest.php 1 location

@@ 82-100 (lines=19) @@
79
    /**
80
     * @return mixed[][]
81
     */
82
    public function invalidPHPValuesProvider()
83
    {
84
        return [
85
            [0],
86
            [''],
87
            ['foo'],
88
            ['10:11:12'],
89
            ['2015-01-31'],
90
            ['2015-01-31 10:11:12'],
91
            [new \stdClass()],
92
            [$this],
93
            [27],
94
            [-1],
95
            [1.2],
96
            [[]],
97
            [['an array']],
98
            [new \DateTime()],
99
        ];
100
    }
101
}
102

tests/Doctrine/Tests/DBAL/Types/BaseDateTypeTestCase.php 1 location

@@ 105-122 (lines=18) @@
102
    /**
103
     * @return mixed[][]
104
     */
105
    public function invalidPHPValuesProvider()
106
    {
107
        return [
108
            [0],
109
            [''],
110
            ['foo'],
111
            ['10:11:12'],
112
            ['2015-01-31'],
113
            ['2015-01-31 10:11:12'],
114
            [new \stdClass()],
115
            [$this],
116
            [27],
117
            [-1],
118
            [1.2],
119
            [[]],
120
            [['an array']],
121
        ];
122
    }
123
}
124