Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
30 | public function test_fromArray() |
||
31 | { |
||
32 | $object = Xml::fromArray(['myKey' => ['myAtrr' => 5, 'myAttr2' => 'My Value']]); |
||
33 | self::assertInstanceOf(\SimpleXMLElement::class, $object); |
||
34 | self::assertSame( |
||
35 | '<?xml version="1.0" encoding="UTF-8"?> |
||
36 | <myKey><myAtrr>5</myAtrr><myAttr2>My Value</myAttr2></myKey> |
||
37 | ', |
||
38 | $object->asXML() |
||
|
|||
39 | ); |
||
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.