public function testtoArrayReturnsArrayRepresenationOfXmlObject() { $expected = ['foo' => 'bar']; $parser = new XmlParser('<xml><foo>bar</foo></xml>'); $this->assertEquals($expected, $parser->toArray()); }
public function testtoArrayReturnsArrayRepresenationOfXmlObject() { $expected = ['foo' => 'bar']; $parser = new XmlParser('<xml><foo>bar</foo></xml>'); $this->assertEquals($expected, $parser->toArray()); }