tests/src/WSDL/XML/XMLStyle/XMLDocumentStyleTest.php 1 location
|
@@ 58-67 (lines=10) @@
|
| 55 |
|
/** |
| 56 |
|
* @test |
| 57 |
|
*/ |
| 58 |
|
public function shouldGenerateDOMElementForBinding() |
| 59 |
|
{ |
| 60 |
|
//when |
| 61 |
|
$DOMElement = $this->XMLDocumentStyle->generateBinding($this->DOMDocument, 'soap'); |
| 62 |
|
|
| 63 |
|
//then |
| 64 |
|
$this->assertEquals('soap:binding', $DOMElement->tagName); |
| 65 |
|
$this->assertEquals('document', $DOMElement->getAttribute('style')); |
| 66 |
|
$this->assertEquals('http://schemas.xmlsoap.org/soap/http', $DOMElement->getAttribute('transport')); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
/** |
| 70 |
|
* @test |
tests/src/WSDL/XML/XMLStyle/XMLRpcStyleTest.php 1 location
|
@@ 59-68 (lines=10) @@
|
| 56 |
|
/** |
| 57 |
|
* @test |
| 58 |
|
*/ |
| 59 |
|
public function shouldGenerateDOMElementForBinding() |
| 60 |
|
{ |
| 61 |
|
//when |
| 62 |
|
$DOMElement = $this->XMLRpcStyle->generateBinding($this->DOMDocument, 'soap'); |
| 63 |
|
|
| 64 |
|
//then |
| 65 |
|
$this->assertEquals('soap:binding', $DOMElement->tagName); |
| 66 |
|
$this->assertEquals('rpc', $DOMElement->getAttribute('style')); |
| 67 |
|
$this->assertEquals('http://schemas.xmlsoap.org/soap/http', $DOMElement->getAttribute('transport')); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
/** |
| 71 |
|
* @test |