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

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