Code Duplication    Length = 8-8 lines in 2 locations

Tests/Unit/Symfony2/EntityConstantsTest.php 1 location

@@ 19-26 (lines=8) @@
16
     * @covers MS\PHPMD\Rule\Symfony2\EntityConstants
17
     * @covers MS\PHPMD\Rule\Symfony2\AbstractEntityRule
18
     */
19
    public function testApplyNoEntity()
20
    {
21
        $node = \Mockery::mock('PHPMD\Node\ClassNode');
22
        $node->shouldReceive('getDocComment')->andReturn('');
23
        $node->shouldReceive('isAbstract')->andReturn(false);
24
25
        $this->assertRule($node, 0);
26
    }
27
28
    /**
29
     * @covers MS\PHPMD\Rule\Symfony2\EntityConstants

Tests/Unit/Symfony2/EntitySimpleGetterSetterTest.php 1 location

@@ 135-142 (lines=8) @@
132
     * @covers MS\PHPMD\Rule\Symfony2\EntitySimpleGetterSetter
133
     * @covers MS\PHPMD\Rule\Symfony2\AbstractEntityRule
134
     */
135
    public function testAbstractClass()
136
    {
137
        $node = \Mockery::mock('PHPMD\Node\ClassNode');
138
        $node->shouldReceive('getDocComment')->andReturn('');
139
        $node->shouldReceive('isAbstract')->andReturn(true);
140
141
        $this->assertRule($node, 0);
142
    }
143
144
    /**
145
     * @covers MS\PHPMD\Rule\Symfony2\EntitySimpleGetterSetter