/**
  * Sets up this unittest
  */
 public function setUp()
 {
     try {
         $this->remote = Remote::forName('xp://' . self::$bindAddress[0] . ':' . self::$bindAddress[1]);
     } catch (\remote\RemoteException $e) {
         throw new \unittest\PrerequisitesNotMetError('Cannot setup client/server communication', $e);
     }
 }
 /**
  * Constructor
  *
  * @param   util.cmd.ParamString args
  */
 public function __construct(\util\cmd\ParamString $args)
 {
     $url = new \peer\URL($args->value(0));
     // If protocol string does not contain port number, set default.
     if (self::ESDL_PORT === $url->getPort(self::ESDL_PORT)) {
         $url->setPort(self::ESDL_PORT);
     }
     // Check given URL to inform user if invalid port used.
     if (self::ESDL_PORT !== $url->getPort()) {
         \util\cmd\Console::$err->writeLine('Notice: using non-standard port ' . $url->getPort() . ', ESDL services are usually available at port 6449.');
     }
     $this->remote = Remote::forName($url->getURL());
     $this->jndi = $args->value(1);
     $this->processor = new DomXSLProcessor();
     $this->processor->setXSLBuf($this->getClass()->getPackage()->getResource($args->value('lang', 'l', 'xp5') . '.xsl'));
 }
 public function lookupNonExistantName()
 {
     Remote::forName(REMOTE_SPEC_ONE)->lookup('does/not/Exist');
 }