diff --git a/test/ServerTest.php b/test/ServerTest.php index 277ea7f0..2ae61d03 100644 --- a/test/ServerTest.php +++ b/test/ServerTest.php @@ -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 = ' +
+ + + + +'; + $response = $server->handle($request); + + $this->assertContains('Invalid XML', $response->getMessage()); + } + public function testDebugMode() { $server = new Server();