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

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