Code Duplication    Length = 7-7 lines in 4 locations

Tests/VersionTest.php 4 locations

@@ 235-241 (lines=7) @@
232
    ////////////////////////////////////////////////////////////////////////////
233
    // greaterThan()
234
    ////////////////////////////////////////////////////////////////////////////
235
    public function testGreaterThan()
236
    {
237
        $current = new Version(1, 0, 0);
238
        $other   = new Version(1, 1, 0);
239
        static::assertEquals(false, $current->greaterThan($other));
240
        static::assertEquals(true, $other->greaterThan($current));
241
    }
242
243
    ////////////////////////////////////////////////////////////////////////////
244
    // greaterThanOrEqual()
@@ 246-252 (lines=7) @@
243
    ////////////////////////////////////////////////////////////////////////////
244
    // greaterThanOrEqual()
245
    ////////////////////////////////////////////////////////////////////////////
246
    public function testGreaterThanOrEqual()
247
    {
248
        $current = new Version(1, 0, 0);
249
        $other   = new Version(1, 1, 0);
250
        static::assertEquals(false, $current->greaterThanOrEqual($other));
251
        static::assertEquals(true, $other->greaterThanOrEqual($current));
252
    }
253
254
    ////////////////////////////////////////////////////////////////////////////
255
    // lessThan()
@@ 257-263 (lines=7) @@
254
    ////////////////////////////////////////////////////////////////////////////
255
    // lessThan()
256
    ////////////////////////////////////////////////////////////////////////////
257
    public function testLessThan()
258
    {
259
        $current = new Version(1, 0, 0);
260
        $other   = new Version(1, 1, 0);
261
        static::assertEquals(true, $current->lessThan($other));
262
        static::assertEquals(false, $other->lessThan($current));
263
    }
264
265
    ////////////////////////////////////////////////////////////////////////////
266
    // lessThanOrEqual()
@@ 268-274 (lines=7) @@
265
    ////////////////////////////////////////////////////////////////////////////
266
    // lessThanOrEqual()
267
    ////////////////////////////////////////////////////////////////////////////
268
    public function testLessThanOrEqual()
269
    {
270
        $current = new Version(1, 0, 0);
271
        $other   = new Version(1, 1, 0);
272
        static::assertEquals(true, $current->lessThanOrEqual($other));
273
        static::assertEquals(false, $other->lessThanOrEqual($current));
274
    }
275
}
276