Code Duplication    Length = 18-19 lines in 2 locations

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

@@ 76-93 (lines=18) @@
73
    /**
74
     * @return mixed[][]
75
     */
76
    public function invalidPHPValuesProvider()
77
    {
78
        return [
79
            [0],
80
            [''],
81
            ['foo'],
82
            ['10:11:12'],
83
            ['2015-01-31'],
84
            ['2015-01-31 10:11:12'],
85
            [new \stdClass()],
86
            [$this],
87
            [27],
88
            [-1],
89
            [1.2],
90
            [[]],
91
            [['an array']],
92
        ];
93
    }
94
}
95

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

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