Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function testGetIndex() |
||
20 | { |
||
21 | $method = 'GET'; |
||
22 | $url = '/'; |
||
23 | |||
24 | $this->tester->bootstrapApplication(dirname(__DIR__, 2)); |
||
|
|||
25 | $response = $this->tester->doRequest($method, $url); |
||
26 | |||
27 | $this->assertEquals( |
||
28 | [ |
||
29 | 'status' => 'success', |
||
30 | 'error_message' => '', |
||
31 | 'error_code' => null, |
||
32 | 'data' => ['version' => '3.0', 'author' => 'yiisoft'], |
||
33 | ], |
||
34 | $response->getContentAsJson() |
||
35 | ); |
||
38 |
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.