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')); }
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')); }