Code Duplication    Length = 7-7 lines in 3 locations

vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php 3 locations

@@ 3274-3280 (lines=7) @@
3271
    /**
3272
     * @covers PHPUnit_Framework_Constraint_Count
3273
     */
3274
    public function testConstraintCountWithAnArray()
3275
    {
3276
        $constraint = new PHPUnit_Framework_Constraint_Count(5);
3277
3278
        $this->assertTrue($constraint->evaluate(array(1, 2, 3, 4, 5), '', true));
3279
        $this->assertFalse($constraint->evaluate(array(1, 2, 3, 4), '', true));
3280
    }
3281
3282
    /**
3283
     * @covers PHPUnit_Framework_Constraint_Count
@@ 3285-3291 (lines=7) @@
3282
    /**
3283
     * @covers PHPUnit_Framework_Constraint_Count
3284
     */
3285
    public function testConstraintCountWithAnIteratorWhichDoesNotImplementCountable()
3286
    {
3287
        $constraint = new PHPUnit_Framework_Constraint_Count(5);
3288
3289
        $this->assertTrue($constraint->evaluate(new TestIterator(array(1, 2, 3, 4, 5)), '', true));
3290
        $this->assertFalse($constraint->evaluate(new TestIterator(array(1, 2, 3, 4)), '', true));
3291
    }
3292
3293
    /**
3294
     * @covers PHPUnit_Framework_Constraint_Count
@@ 3296-3302 (lines=7) @@
3293
    /**
3294
     * @covers PHPUnit_Framework_Constraint_Count
3295
     */
3296
    public function testConstraintCountWithAnObjectImplementingCountable()
3297
    {
3298
        $constraint = new PHPUnit_Framework_Constraint_Count(5);
3299
3300
        $this->assertTrue($constraint->evaluate(new ArrayObject(array(1, 2, 3, 4, 5)), '', true));
3301
        $this->assertFalse($constraint->evaluate(new ArrayObject(array(1, 2, 3, 4)), '', true));
3302
    }
3303
3304
    /**
3305
     * @covers PHPUnit_Framework_Constraint_Count