Skip to content

Commit ff1568a

Browse files
committed
add unit test method
1 parent 60417c0 commit ff1568a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/DomDocumentHandlerTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,19 @@ public function testGetElementByNameAndAttributes()
140140
));
141141
$this->assertInstanceOf('\WsdlToPhp\DomHandler\ElementHandler', $part);
142142
}
143+
/**
144+
*
145+
*/
146+
public function testGetElementByNameAndAttributesContainingString()
147+
{
148+
$instance = self::bingInstance();
149+
150+
$part = $instance->getElementByNameAndAttributes('part', array(
151+
'name' => 'parameters',
152+
'element' => '*:SearchRequest',
153+
));
154+
$this->assertInstanceOf('\WsdlToPhp\DomHandler\ElementHandler', $part);
155+
}
143156
/**
144157
* @expectedException InvalidArgumentException
145158
*/

0 commit comments

Comments
 (0)