Example #1
0
 /**
  * @covers Href::setAnchor
  */
 public function testSetAnchor()
 {
     $this->assertEquals('vmms/vineyard', $this->href->__toString());
     $this->href->setAnchor("useful");
     $this->assertEquals('vmms/vineyard#useful', $this->href->__toString());
 }
Example #2
0
 /**
  * Set the fragment identifier (i.e: the value following a '#' at the end of the URL).
  *
  * @param String $anchor
  */
 public function setAnchor($anchor)
 {
     $this->href->setAnchor($anchor);
     return $this;
 }