Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 8 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
21 | public function testGettersAndSetters() |
||
22 | { |
||
23 | $entity = new ArticleOverViewPage(); |
||
24 | $this->assertEquals('KunstmaanArticleBundle:AbstractArticleOverviewPage:service', $entity->getControllerAction()); |
||
25 | $this->assertEquals('KunstmaanArticleBundle:AbstractArticleOverviewPage:view.html.twig', $entity->getDefaultView()); |
||
26 | $this->assertInternalType('array', $entity->getPossibleChildTypes()); |
||
27 | $this->assertInternalType('array', $entity->getPagePartAdminConfigurations()); |
||
28 | } |
||
29 | } |
||
30 |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.