ApaiIO\Test\ResponseTransformer\ResponseTransformerTest::testXmlToArray PHP Method

testXmlToArray() public method

public testXmlToArray ( )
    public function testXmlToArray()
    {
        $transformer = new XmlToArray();
        $sampleXML = $this->getSampleXMLResponse();
        $array = $transformer->transform($sampleXML);
        $this->assertInternalType('array', $array);
        $this->assertEquals('Wikipedia Städteverzeichnis', $array['titel']);
        $this->assertEquals('Genf', $array['eintrag']['0']['stichwort']);
    }