Code Duplication    Length = 7-7 lines in 2 locations

tests/php/PHPMD/RuleTest.php 2 locations

@@ 32-38 (lines=7) @@
29
     *
30
     * @return void
31
     */
32
    public function testGetIntPropertyReturnsValueOfTypeInteger()
33
    {
34
        $rule = $this->getMockForAbstractClass(\PHPMD\AbstractRule::class);
35
        $rule->addProperty(__FUNCTION__, '42.3');
36
37
        $this->assertSame(42, $rule->getIntProperty(__FUNCTION__));
38
    }
39
40
    /**
41
     * testGetBooleanPropertyReturnsTrueForStringValue1
@@ 133-139 (lines=7) @@
130
     *
131
     * @return void
132
     */
133
    public function testGetStringPropertyReturnsString()
134
    {
135
        $rule = $this->getMockForAbstractClass(\PHPMD\AbstractRule::class);
136
        $rule->addProperty(__FUNCTION__, 'Fourty Two');
137
138
        $this->assertSame('Fourty Two', $rule->getStringProperty(__FUNCTION__));
139
    }
140
}
141