| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testInvoke() : void |
||
| 14 | { |
||
| 15 | $path = (new CreateTemporaryPsalmXmlFile())->__invoke(__DIR__ . '/example'); |
||
| 16 | |||
| 17 | self::assertTrue(file_exists($path)); |
||
| 18 | |||
| 19 | $xml = file_get_contents($path); |
||
| 20 | |||
| 21 | self::assertStringContainsString('<directory name="src" />', $xml); |
||
|
|
|||
| 22 | self::assertStringContainsString('<directory name="vendor" />', $xml); |
||
| 23 | } |
||
| 25 |
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.