Beispiel #1
0
 public function testValidateUrn()
 {
     $server = new Server\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'));
 }