| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | abstract class AbstractRequestTest extends AbstractTest |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $class |
||
| 19 | * @param array $data |
||
| 20 | * @return AbstractRequest |
||
| 21 | */ |
||
| 22 | protected function newRequestWithInitTest($class, $data) |
||
| 23 | { |
||
| 24 | $request = $this->newRequest($class); |
||
| 25 | self::assertInstanceOf($class, $request); |
||
| 26 | $request->initialize($data); |
||
| 27 | return $request; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $class |
||
| 32 | * @return AbstractRequest |
||
| 33 | */ |
||
| 34 | protected function newRequest($class) |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
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.