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