Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testJwtEncode() { |
||
16 | $data = [ |
||
17 | "sub" => "1234567890", |
||
18 | "name" => "John Doe", |
||
19 | "admin" => true |
||
20 | ]; |
||
21 | $result = JwtAuth::jwt_encode($data, "secret"); |
||
22 | $this->assertEquals( |
||
|
|||
23 | "eyJ0eXAiOiJKV1QifQ.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.2a2f70f937182a2daa5c1e79ed832899c3ebb14412b214c0cb0484b8199b64a2", |
||
24 | $result |
||
25 | ); |
||
26 | } |
||
27 | |||
37 |
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.