| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function testBlockService() |
||
| 27 | { |
||
| 28 | $blockService = new BreadcrumbMenuBlockService_Test( |
||
| 29 | 'context', |
||
| 30 | 'name', |
||
| 31 | $this->getMock('Symfony\Bundle\FrameworkBundle\Templating\EngineInterface'), |
||
| 32 | $this->getMock('Knp\Menu\Provider\MenuProviderInterface'), |
||
| 33 | $this->getMock('Knp\Menu\FactoryInterface') |
||
| 34 | ); |
||
| 35 | |||
| 36 | $this->assertTrue($blockService->handleContext('context')); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider.