Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | public function testSendMalformedRequest() : void |
||
23 | { |
||
24 | $handler = $this->client->getHandler(); |
||
|
|||
25 | $conn = $handler->getConnection(); |
||
26 | |||
27 | $data = 'malformed'; |
||
28 | $data = PacketLength::pack(strlen($data)).$data; |
||
29 | |||
30 | $conn->open(); |
||
31 | $data = $conn->send($data); |
||
32 | |||
33 | $response = $handler->getPacker()->unpack($data); |
||
34 | |||
35 | self::assertTrue($response->isError()); |
||
36 | self::assertSame('Invalid MsgPack - packet header', $response->getBodyField(Keys::ERROR_24)); |
||
37 | } |
||
39 |
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.