Code Duplication    Length = 10-10 lines in 3 locations

Tests/Unit/Test/MethodNameUnderstandableTest.php 3 locations

@@ 18-27 (lines=10) @@
15
     * @covers MS\PHPMD\Rule\Test\MethodNameUnderstandable
16
     * @covers MS\PHPMD\Rule\Test\AbstractTestRule
17
     */
18
    public function testIgnoreMethodsWithoutTestPrefix()
19
    {
20
        $methodNode = $this->getMethodNode(self::CLASS_NAME, 'getEntityManager');
21
22
        $node = \Mockery::mock('PHPMD\Node\ClassNode');
23
        $node->shouldReceive('getImage')->andReturn(self::CLASS_NAME);
24
        $node->shouldReceive('getMethods')->andReturn([$methodNode]);
25
26
        $this->assertRule($node, 0);
27
    }
28
29
    /**
30
     * @covers MS\PHPMD\Rule\Test\MethodNameUnderstandable
@@ 33-42 (lines=10) @@
30
     * @covers MS\PHPMD\Rule\Test\MethodNameUnderstandable
31
     * @covers MS\PHPMD\Rule\Test\AbstractTestRule
32
     */
33
    public function testMoreWordsInMethod()
34
    {
35
        $methodNode = $this->getMethodNode(self::CLASS_NAME, 'testCanAddTwoNumbers');
36
37
        $node = \Mockery::mock('PHPMD\Node\ClassNode');
38
        $node->shouldReceive('getImage')->andReturn(self::CLASS_NAME);
39
        $node->shouldReceive('getMethods')->andReturn([$methodNode]);
40
41
        $this->assertRule($node, 0);
42
    }
43
44
    /**
45
     * @covers MS\PHPMD\Rule\Test\MethodNameUnderstandable
@@ 48-57 (lines=10) @@
45
     * @covers MS\PHPMD\Rule\Test\MethodNameUnderstandable
46
     * @covers MS\PHPMD\Rule\Test\AbstractTestRule
47
     */
48
    public function testLessWordsInMethod()
49
    {
50
        $methodNode = $this->getMethodNode(self::CLASS_NAME, 'testAdd');
51
52
        $node = \Mockery::mock('PHPMD\Node\ClassNode');
53
        $node->shouldReceive('getImage')->andReturn(self::CLASS_NAME);
54
        $node->shouldReceive('getMethods')->andReturn([$methodNode]);
55
56
        $this->assertRule($node, 1);
57
    }
58
59
    /**
60
     * @return MethodNameUnderstandable