Skip to content

Commit 0796a6b

Browse files
committed
:octocat: +Psr7\get_xml() $assoc test
1 parent 88c9a1a commit 0796a6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Psr7/MessageHelpersTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ public function testGetXML(){
112112
->withBody(Psr17\create_stream('<?xml version="1.0" encoding="UTF-8"?><root><foo>bar</foo></root>'));
113113

114114
$this->assertSame('bar', Psr7\get_xml($r)->foo->__toString());
115+
116+
$r->getBody()->rewind();
117+
118+
$this->assertSame('bar', Psr7\get_xml($r, true)['foo']);
115119
}
116120

117121
public function messageDataProvider(){

0 commit comments

Comments
 (0)