| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testExtendedClassesAreFQCNs() : void |
||
| 23 | { |
||
| 24 | $desiredFqcn = '\\stdClass'; |
||
| 25 | $classNameInputs = [stdClass::class, '\\stdClass\\']; |
||
| 26 | |||
| 27 | foreach ($classNameInputs as $className) { |
||
| 28 | $classGenerator = new ClassGenerator(); |
||
| 29 | $classGenerator->setExtendedClass($className); |
||
| 30 | |||
| 31 | self::assertEquals($desiredFqcn, $classGenerator->getExtendedClass()); |
||
|
|
|||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 51 |
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.