@@ 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 |
@@ 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 |