コード例 #1
0
ファイル: AutoDiscover.php プロジェクト: alab1001101/zf2
 /**
  * Returns an XSD Type for the given PHP type
  *
  * @param string $type PHP Type to get the XSD type for
  * @return string
  */
 public function getType($type)
 {
     if (!$this->_wsdl instanceof WSDL\WSDL) {
         /** @todo Exception throwing may be more correct */
         // WSDL is not defined yet, so we can't recognize type in context of current service
         return '';
     } else {
         return $this->_wsdl->getType($type);
     }
 }
コード例 #2
0
ファイル: WsdlTest.php プロジェクト: bradley-holt/zf2
 /**
  * @group ZF-5736
  */
 public function testHtmlAmpersandInUrlInSetUriIsEncodedCorrectly()
 {
     $wsdl = new WSDL\WSDL("MyService", "http://example.com");
     $wsdl->setUri(self::URI_WITH_EXPANDED_AMP);
     $this->assertContains(self::URI_WITH_EXPANDED_AMP, $wsdl->toXML());
 }