From 9f126c94ffe2a7fdaab5b2e94e54ff60deef2298 Mon Sep 17 00:00:00 2001 From: Witold Wasiczko Date: Fri, 1 Jul 2016 15:31:30 +0200 Subject: [PATCH] Add falling test --- test/ServerTest.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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();