| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function コンテナを取得することができる() |
||
| 13 | { |
||
| 14 | $job = new TestJob(); |
||
| 15 | $job->setKernelOptions(array( |
||
| 16 | 'kernel.root_dir' => __DIR__, |
||
| 17 | 'kernel.debug' => false, |
||
| 18 | 'kernel.environment' => 'test' |
||
| 19 | )); |
||
| 20 | |||
| 21 | $actual = $job->run(); |
||
| 22 | $this->assertInstanceOf('Symfony\Component\DependencyInjection\ContainerInterface', $actual); |
||
| 23 | } |
||
| 24 | |||
| 39 |
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.