/** * @dataProvider xmlInputProvider */ public function testXmlToArray($xmlFile, $phpFile) { $xmlInput = file_get_contents($xmlFile); $expectedPhpOutput = (require $phpFile); $this->assertEquals($expectedPhpOutput, EngineBlock_Corto_XmlToArray::xml2array($xmlInput)); }
/** * @param EngineBlock_Saml2_ResponseAnnotationDecorator $response * @return array */ public function fromNewFormat(EngineBlock_Saml2_ResponseAnnotationDecorator $response) { $legacyResponse = EngineBlock_Corto_XmlToArray::xml2array($response->getSspMessage()->toUnsignedXML()->ownerDocument->saveXML()); return $this->addPrivateVarsToLegacy($legacyResponse, $response); }