Codeception / Codeception/module-soap
Issue in XML parser in SOAP function
- Lingua principale
- PHP
- Stelle
- 0
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
If I do:
``` php
$xml = new \Codeception\Util\XmlBuilder();
$xml->name->val('test')->parent()
->catid->val(4);
$I->sendSoapRequest('create', $xml);
```
The soap request works:
```
[Request] test4
```
However if I do:
```
$I->sendSoapRequest('create', 'test4');
```
It says:
```
[PHPUnit_Framework_Exception] DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 1
```
The problem I think is here: https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Xml.php#L27-L57
The parser seems able to parse a xml string wrapped in an outer tag ():
`$I->sendSoapRequest('create', 'test4');`
but not like:
`$I->sendSoapRequest('create', 'test4');`
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.