|
|
@@ -739,12 +739,19 @@ class Zend_Soap_AutoDiscoverTest extends PHPUnit_Framework_TestCase
|
|
|
$this->assertNotContains("?wsdl", $uri);
|
|
|
$this->assertEquals("http://localhost/my_script.php", $uri);
|
|
|
|
|
|
- // IIS
|
|
|
+ // IIS with ISAPI_Rewrite
|
|
|
$_SERVER = array('HTTP_X_REWRITE_URL' => '/my_script.php?wsdl', 'SERVER_NAME' => 'localhost');
|
|
|
$server = new Zend_Soap_AutoDiscover();
|
|
|
$uri = $server->getUri()->getUri();
|
|
|
$this->assertNotContains("?wsdl", $uri);
|
|
|
$this->assertEquals("http://localhost/my_script.php", $uri);
|
|
|
+
|
|
|
+ // IIS with Microsoft Rewrite Module
|
|
|
+ $_SERVER = array('HTTP_X_ORIGINAL_URL' => '/my_script.php?wsdl', 'SERVER_NAME' => 'localhost');
|
|
|
+ $server = new Zend_Soap_AutoDiscover();
|
|
|
+ $uri = $server->getUri()->getUri();
|
|
|
+ $this->assertNotContains("?wsdl", $uri);
|
|
|
+ $this->assertEquals("http://localhost/my_script.php", $uri);
|
|
|
}
|
|
|
|
|
|
/**
|