1 | <?php |
||
12 | abstract class BaseBundleTestCase extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @var AppKernel |
||
16 | */ |
||
17 | private $kernel; |
||
18 | |||
19 | /** |
||
20 | * @return string |
||
21 | */ |
||
22 | abstract protected function getBundleClass(); |
||
23 | |||
24 | /** |
||
25 | * Boots the Kernel for this test. |
||
26 | * |
||
27 | * @param array $options |
||
|
|||
28 | */ |
||
29 | 1 | protected function bootKernel() |
|
39 | |||
40 | /** |
||
41 | * @return \Symfony\Component\DependencyInjection\ContainerInterface |
||
42 | */ |
||
43 | 1 | protected function getContainer() |
|
47 | |||
48 | /** |
||
49 | * Get a kernel which you may configure with your bundle and services. |
||
50 | * |
||
51 | * @return AppKernel |
||
52 | */ |
||
53 | 1 | protected function createKernel() |
|
67 | |||
68 | /** |
||
69 | * Shuts the kernel down if it was used in the test. |
||
70 | */ |
||
71 | 1 | private function ensureKernelShutdown() |
|
81 | |||
82 | /** |
||
83 | * Clean up Kernel usage in this test. |
||
84 | */ |
||
85 | 1 | protected function tearDown() |
|
89 | } |
||
90 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.