Code Duplication    Length = 7-7 lines in 2 locations

Tests/Unit/Symfony2/EntitySimpleGetterSetterTest.php 2 locations

@@ 56-62 (lines=7) @@
53
     * @covers MS\PHPMD\Rule\Symfony2\EntitySimpleGetterSetter
54
     * @covers MS\PHPMD\Rule\Symfony2\AbstractEntityRule
55
     */
56
    public function testValidEntityWithWhitelist()
57
    {
58
        $methodNode = $this->getMethodNode(self::CLASS_NAME, '__construct');
59
        $classNode = $this->getClassNode([$methodNode]);
60
61
        $this->assertRule($classNode, 0);
62
    }
63
64
    /**
65
     * @covers MS\PHPMD\Rule\Symfony2\EntitySimpleGetterSetter
@@ 68-74 (lines=7) @@
65
     * @covers MS\PHPMD\Rule\Symfony2\EntitySimpleGetterSetter
66
     * @covers MS\PHPMD\Rule\Symfony2\AbstractEntityRule
67
     */
68
    public function testWrongMethodPrefix()
69
    {
70
        $methodNode = $this->getMethodNode(self::CLASS_NAME, 'doSomething');
71
        $classNode = $this->getClassNode([$methodNode]);
72
73
        $this->assertRule($classNode, 1);
74
    }
75
76
    /**
77
     * @covers MS\PHPMD\Rule\Symfony2\EntitySimpleGetterSetter