| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 11 | public static function assertIsValidLinksObject($links, $allowedMembers) |
|
| 19 | { |
||
| 20 | 11 | PHPUnit::assertIsArray( |
|
| 21 | 11 | $links, |
|
| 22 | 11 | Messages::LINKS_OBJECT_NOT_ARRAY |
|
| 23 | ); |
||
| 24 | |||
| 25 | 10 | static::assertContainsOnlyAllowedMembers( |
|
| 26 | 10 | $allowedMembers, |
|
| 27 | 10 | $links |
|
| 28 | ); |
||
| 29 | |||
| 30 | 7 | foreach ($links as $key => $link) { |
|
| 31 | 7 | static::assertIsValidLinkObject($link); |
|
| 32 | } |
||
| 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.