1 | <?php |
||
11 | class MyBuilderCronosExtensionTest extends TestCase |
||
12 | { |
||
13 | /** @var MyBuilderCronosExtension */ |
||
14 | private $loader; |
||
15 | |||
16 | /** @var ContainerBuilder */ |
||
17 | private $container; |
||
18 | |||
19 | protected function setUp(): void |
||
24 | |||
25 | /** |
||
26 | * @dataProvider providerTestConfig |
||
27 | */ |
||
28 | public function test_config(array $expected, string $file): void |
||
29 | { |
||
30 | $this->loader->load($this->getConfig($file), $this->container); |
||
31 | |||
32 | static::assertEquals($expected, $this->container->getParameter('mybuilder.cronos_bundle.exporter_config')); |
||
|
|||
33 | } |
||
34 | |||
35 | public function providerTestConfig(): array |
||
58 | |||
59 | /** |
||
60 | * Load the specified yaml config file. |
||
61 | */ |
||
62 | private function getConfig(string $fileName): array |
||
75 | } |
||
76 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.