Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Not defined namespace prefix #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions test/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,29 @@ public function testShouldThrowExceptionIfHandledRequestContainsDoctype()
$this->assertContains('Invalid XML', $response->getMessage());
}

/**
* @runInSeparateProcess
*/
public function testNotDefinedNamespacePrefix()
{
$server = new Server();
$server->setOptions(['location'=>'test://', 'uri'=>'http://framework.zend.com']);
$server->setReturnResponse(true);

$server->setClass('\ZendTest\Soap\TestAsset\ServerTestClass');

$request = '<Envelope>
<Header/>
<Body>
<elementWithNoneExistingPrefixNamespace xsi:type="off:test">
</elementWithNoneExistingPrefixNamespace>
</Body>
</Envelope>';
$response = $server->handle($request);

$this->assertContains('Invalid XML', $response->getMessage());
}

public function testDebugMode()
{
$server = new Server();
Expand Down