Code Duplication    Length = 7-7 lines in 4 locations

Tests/VersionTest.php 4 locations

@@ 264-270 (lines=7) @@
261
    ////////////////////////////////////////////////////////////////////////////
262
    // greaterThan()
263
    ////////////////////////////////////////////////////////////////////////////
264
    public function testGreaterThan()
265
    {
266
        $current = new Version(1, 0, 0);
267
        $other   = new Version(1, 1, 0);
268
        static::assertEquals(false, $current->greaterThan($other));
269
        static::assertEquals(true, $other->greaterThan($current));
270
    }
271
272
    ////////////////////////////////////////////////////////////////////////////
273
    // greaterThanOrEqual()
@@ 275-281 (lines=7) @@
272
    ////////////////////////////////////////////////////////////////////////////
273
    // greaterThanOrEqual()
274
    ////////////////////////////////////////////////////////////////////////////
275
    public function testGreaterThanOrEqual()
276
    {
277
        $current = new Version(1, 0, 0);
278
        $other   = new Version(1, 1, 0);
279
        static::assertEquals(false, $current->greaterThanOrEqual($other));
280
        static::assertEquals(true, $other->greaterThanOrEqual($current));
281
    }
282
283
    ////////////////////////////////////////////////////////////////////////////
284
    // lessThan()
@@ 286-292 (lines=7) @@
283
    ////////////////////////////////////////////////////////////////////////////
284
    // lessThan()
285
    ////////////////////////////////////////////////////////////////////////////
286
    public function testLessThan()
287
    {
288
        $current = new Version(1, 0, 0);
289
        $other   = new Version(1, 1, 0);
290
        static::assertEquals(true, $current->lessThan($other));
291
        static::assertEquals(false, $other->lessThan($current));
292
    }
293
294
    ////////////////////////////////////////////////////////////////////////////
295
    // lessThanOrEqual()
@@ 297-303 (lines=7) @@
294
    ////////////////////////////////////////////////////////////////////////////
295
    // lessThanOrEqual()
296
    ////////////////////////////////////////////////////////////////////////////
297
    public function testLessThanOrEqual()
298
    {
299
        $current = new Version(1, 0, 0);
300
        $other   = new Version(1, 1, 0);
301
        static::assertEquals(true, $current->lessThanOrEqual($other));
302
        static::assertEquals(false, $other->lessThanOrEqual($current));
303
    }
304
}
305