AbstractClassTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 4
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testClassIsNoTest() 0 7 1
1
<?php
2
3
namespace MS\PHPMD\Tests\Unit\Test;
4
5
use MS\PHPMD\Tests\Unit\AbstractApplyTest;
6
7
/**
8
 * Class AbstractClassTest
9
 *
10
 * @package MS\PHPMD\Tests\Unit\Test
11
 */
12
abstract class AbstractClassTest extends AbstractApplyTest
13
{
14
    const CLASS_NAME = 'FooControllerTest';
15
16
    /**
17
     * @covers MS\PHPMD\Rule\Test\AbstractMethodNumberOf
18
     * @covers MS\PHPMD\Rule\Test\MethodNameUnderstandable
19
     * @covers MS\PHPMD\Rule\Test\AbstractTestRule
20
     */
21
    public function testClassIsNoTest()
22
    {
23
        $node = \Mockery::mock('PHPMD\Node\ClassNode');
24
        $node->shouldReceive('getImage')->andReturn('FooController');
25
26
        $this->assertRule($node, 0);
27
    }
28
}
29