Code Duplication    Length = 8-8 lines in 7 locations

tests/phpunit/tests/date/query.php 7 locations

@@ 130-137 (lines=8) @@
127
        $this->assertSame('=', $q->get_compare(array()));
128
    }
129
130
    public function test_get_compare_equals() 
131
    {
132
        $q = new WP_Date_Query(array());
133
134
        $found = $q->get_compare(
135
            array(
136
            'compare' => '=',
137
            ) 
138
        );
139
        $this->assertSame('=', $found);
140
    }
@@ 142-149 (lines=8) @@
139
        $this->assertSame('=', $found);
140
    }
141
142
    public function test_get_compare_not_equals() 
143
    {
144
        $q = new WP_Date_Query(array());
145
146
        $found = $q->get_compare(
147
            array(
148
            'compare' => '!=',
149
            ) 
150
        );
151
        $this->assertSame('!=', $found);
152
    }
@@ 154-161 (lines=8) @@
151
        $this->assertSame('!=', $found);
152
    }
153
154
    public function test_get_compare_greater_than() 
155
    {
156
        $q = new WP_Date_Query(array());
157
158
        $found = $q->get_compare(
159
            array(
160
            'compare' => '>',
161
            ) 
162
        );
163
        $this->assertSame('>', $found);
164
    }
@@ 166-173 (lines=8) @@
163
        $this->assertSame('>', $found);
164
    }
165
166
    public function test_get_compare_greater_than_or_equal_to() 
167
    {
168
        $q = new WP_Date_Query(array());
169
170
        $found = $q->get_compare(
171
            array(
172
            'compare' => '>=',
173
            ) 
174
        );
175
        $this->assertSame('>=', $found);
176
    }
@@ 178-185 (lines=8) @@
175
        $this->assertSame('>=', $found);
176
    }
177
178
    public function test_get_compare_less_than() 
179
    {
180
        $q = new WP_Date_Query(array());
181
182
        $found = $q->get_compare(
183
            array(
184
            'compare' => '<',
185
            ) 
186
        );
187
        $this->assertSame('<', $found);
188
    }
@@ 190-197 (lines=8) @@
187
        $this->assertSame('<', $found);
188
    }
189
190
    public function test_get_compare_less_than_or_equal_to() 
191
    {
192
        $q = new WP_Date_Query(array());
193
194
        $found = $q->get_compare(
195
            array(
196
            'compare' => '<=',
197
            ) 
198
        );
199
        $this->assertSame('<=', $found);
200
    }
@@ 214-221 (lines=8) @@
211
        $this->assertSame('IN', $found);
212
    }
213
214
    public function test_get_compare_not_in() 
215
    {
216
        $q = new WP_Date_Query(array());
217
218
        $found = $q->get_compare(
219
            array(
220
            'compare' => 'NOT IN',
221
            ) 
222
        );
223
        $this->assertSame('NOT IN', $found);
224
    }