コード例 #1
0
ファイル: ServerTest.php プロジェクト: omusico/logica
 public function testValidateUrn()
 {
     $server = new Zend_Soap_Server();
     try {
         $server->validateUrn('bogosity');
         $this->fail('URNs without schemes should fail');
     } catch (Exception $e) {
         // success
     }
     $this->assertTrue($server->validateUrn('http://framework.zend.com/'));
     $this->assertTrue($server->validateUrn('urn:soapHandler/GetOpt'));
 }
コード例 #2
0
    public function testValidateUrn()
    {
        if (!extension_loaded('soap')) {
           $this->markTestSkipped('SOAP Extension is not loaded');
        }

    	$server = new Zend_Soap_Server();

        try {
            $server->validateUrn('bogosity');
            $this->fail('URNs without schemes should fail');
        } catch (Exception $e) {
            // success
        }

        $this->assertTrue($server->validateUrn('http://framework.zend.com/'));
        $this->assertTrue($server->validateUrn('urn:soapHandler/GetOpt'));
    }