Skip to content

Commit ffef3bb

Browse files
committed
add unit test method
1 parent 5697fc6 commit ffef3bb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/NameSpaceHandlerTest.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
class NameSpaceHandlerTest extends TestCase
99
{
1010
/**
11-
* @see \WsdlToPhp\DomHandler\AbstractNodeHandler::getParent()
12-
* @return AbstractNodeHandler
11+
*
1312
*/
1413
public function testGetParent()
1514
{
@@ -20,12 +19,21 @@ public function testGetParent()
2019
$this->assertNull($nameSpaceHandler->getParent());
2120
}
2221
/**
23-
* @return null|string
22+
*
2423
*/
2524
public function testGetValueNamespace()
2625
{
2726
$domDocument = DomDocumentHandlerTest::bingInstance();
2827

2928
$this->assertNull($domDocument->getRootElement()->getAttribute('xmlns:xsi')->getValueNamespace());
3029
}
30+
/**
31+
*
32+
*/
33+
public function testGetValue()
34+
{
35+
$domDocument = DomDocumentHandlerTest::bingInstance();
36+
37+
$this->assertSame('http://www.w3.org/2001/XMLSchema-instance', $domDocument->getRootElement()->getAttribute('xmlns:xsi')->getValue());
38+
}
3139
}

0 commit comments

Comments
 (0)