--- tests/Zend/Soap/AutoDiscoverTest.php (revision 15014)
+++ tests/Zend/Soap/AutoDiscoverTest.php (working copy)
@@ -69,44 +69,51 @@
. 'xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" '
. 'name="Zend_Soap_AutoDiscover_Test" '
. 'targetNamespace="' . $scriptUri . '">'
+ . ''
+ . ''
+ . ''
. ''
. ''
- . ''
- . ''
+ . 'Test Function 1'
+ . ''
+ . ''
. ''
. ''
- . ''
- . ''
+ . 'Test Function 2'
+ . ''
+ . ''
. ''
. ''
- . ''
- . ''
+ . 'Test Function 3'
+ . ''
+ . ''
. ''
- . ''
- . ''
+ . 'Test Function 4'
+ . ''
+ . ''
. ''
. ''
. ''
. ''
. ''
. ''
- . ''
- . ''
+ . ''
+ . ''
. ''
. ''
. ''
- . ''
- . ''
+ . ''
+ . ''
. ''
. ''
. ''
- . ''
- . ''
+ . ''
+ . ''
. ''
. ''
. ''
- . ''
- . ''
+ . ''
+ . ''
. ''
. ''
. ''
@@ -114,14 +121,14 @@
. ''
. ''
. ''
- . ''
- . ''
- . ''
- . ''
- . ''
- . ''
- . ''
- . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
. '';
$dom->save(dirname(__FILE__).'/_files/setclass.wsdl');
@@ -153,21 +160,78 @@
. 'xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" '
. 'name="Zend_Soap_AutoDiscover_Test" '
. 'targetNamespace="' . $scriptUri . '">'
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
. ''
. ''
- . ''
- . ''
+ . 'Test Function 1'
+ . ''
+ . ''
. ''
. ''
- . ''
- . ''
+ . 'Test Function 2'
+ . ''
+ . ''
. ''
. ''
- . ''
- . ''
+ . 'Test Function 3'
+ . ''
+ . ''
. ''
- . ''
- . ''
+ . 'Test Function 4'
+ . ''
+ . ''
. ''
. ''
. ''
@@ -198,14 +262,30 @@
. ''
. ''
. ''
- . ''
- . ''
- . ''
- . ''
- . ''
- . ''
- . ''
- . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
+ . ''
. '';
$dom->save(dirname(__FILE__).'/_files/setclass.wsdl');
@@ -230,10 +310,10 @@
$dom->loadXML(ob_get_clean());
$dom->save(dirname(__FILE__).'/_files/setclass.wsdl');
- $this->assertContains('sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()));
- $this->assertContains('sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()));
- $this->assertContains('sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()));
- $this->assertContains('sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()));
+ $this->assertContains('sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()));
+ $this->assertContains('sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()));
+ $this->assertContains('sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()));
+ $this->assertContains('sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()));
unlink(dirname(__FILE__).'/_files/setclass.wsdl');
}
@@ -257,15 +337,16 @@
$wsdl = ''.
''.
+ ''.
''.
- ''.
+ 'Test Function'.
''.
''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
@@ -273,8 +354,8 @@
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
'';
$this->assertEquals($wsdl, $this->sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()), "Bad WSDL generated");
$this->assertTrue($dom->schemaValidate(dirname(__FILE__) .'/schemas/wsdl.xsd'), "WSDL Did not validate");
@@ -302,8 +383,14 @@
$wsdl = ''.
''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
''.
- ''.
+ 'Test Function'.
''.
''.
''.
@@ -318,8 +405,8 @@
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
'';
$this->assertEquals($wsdl, $this->sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()), "Bad WSDL generated");
$this->assertTrue($dom->schemaValidate(dirname(__FILE__) .'/schemas/wsdl.xsd'), "WSDL Did not validate");
@@ -347,8 +434,8 @@
$name = $parts[0];
$wsdl = $this->sanatizeWsdlXmlOutputForOsCompability($dom->saveXML());
- $this->assertContains('', $wsdl);
- $this->assertNotContains('assertContains('', $wsdl);
+ $this->assertNotContains('assertTrue($dom->schemaValidate(dirname(__FILE__) .'/schemas/wsdl.xsd'), "WSDL Did not validate");
unlink(dirname(__FILE__).'/_files/addfunction.wsdl');
@@ -381,57 +468,58 @@
$wsdl = ''.
''.
+ ''.
''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
+ 'Test Function'.
+ 'Test Function 2'.
+ 'Return false'.
+ 'Return true'.
+ 'Return integer'.
+ 'Return string'.
+ 'Return array'.
+ 'Multiple Args'.
''.
''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
- ''.
- ''.
+ ''.
+ ''.
''.
''.
''.
@@ -439,26 +527,27 @@
''.
''.
''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
- ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
+ ''.
'';
$this->assertEquals($wsdl, $this->sanatizeWsdlXmlOutputForOsCompability($dom->saveXML()), "Bad WSDL generated");
$this->assertTrue($dom->schemaValidate(dirname(__FILE__) .'/schemas/wsdl.xsd'), "WSDL Did not validate");
- unlink(dirname(__FILE__).'/_files/addfunction2.wsdl');
+ //unlink(dirname(__FILE__).'/_files/addfunction2.wsdl');
}
/**
@@ -578,8 +667,8 @@
$wsdlOutput = ob_get_contents();
ob_end_clean();
- $this->assertEquals(1, substr_count($wsdlOutput, ''));
- $this->assertEquals(1, substr_count($wsdlOutput, ''));
+ $this->assertEquals(1, substr_count($wsdlOutput, ''));
+ $this->assertEquals(1, substr_count($wsdlOutput, ''));
}
public function testUnusedFunctionsOfAutoDiscoverThrowException()