| 1 | <?php |
||
| 12 | class EntityConstantsTest extends AbstractProcessTest |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @covers MS\PHPMD\Rule\Symfony2\EntityConstants |
||
| 16 | * @covers MS\PHPMD\Rule\Symfony2\AbstractEntityRule |
||
| 17 | */ |
||
| 18 | public function testEntityConstantsRule() |
||
| 19 | { |
||
| 20 | $output = $this |
||
| 21 | ->runPhpmd('Entity/Foo.php', 'symfony2.xml') |
||
| 22 | ->getOutput(); |
||
| 23 | |||
| 24 | $this->assertContains('Entity/Foo.php:10 Don\'t contain constants in your entity. Important information are distribute throughout the project. You reduce the reusability.', $output); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @covers MS\PHPMD\Rule\Symfony2\EntityConstants |
||
| 29 | * @covers MS\PHPMD\Rule\Symfony2\AbstractEntityRule |
||
| 30 | */ |
||
| 31 | public function testRuleWithFinalStaticClass() |
||
| 39 | } |
||
| 40 |