Example #1
0
 public function testValidateUrn()
 {
     $server = new Server();
     $this->assertTrue($server->validateUrn('http://framework.zend.com/'));
     $this->assertTrue($server->validateUrn('urn:soapHandler/GetOpt'));
     $this->setExpectedException('Zend\\Soap\\Exception\\InvalidArgumentException', 'Invalid URN');
     $server->validateUrn('bogosity');
 }
Example #2
0
 public function testValidateUrn()
 {
     $server = new 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'));
 }