Codeception / Codeception/module-soap
Issue in XML parser in SOAP function
- 主要语言
- PHP
- 星标
- 0
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
描述
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');`
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。