Exemple #1
0
 public function testGetProposedRedirect_None()
 {
     $obj = new PWEURL('/', $this->struct);
     $node1 =& $obj->getNode();
     $node1['!a']['test'] = 1;
     $node2 =& $obj->getNode();
     $this->assertEquals(1, $node2['!a']['test']);
 }
Exemple #2
0
 /**
  *
  * @return array
  * @throws HTTP5xxException
  */
 public function &getNode()
 {
     if ($this->URL == null) {
         throw new HTTP5xxException("No URL set to get node");
     }
     return $this->URL->getNode();
 }