/** * @covers Href::set */ public function testSetSecondId() { $newHref = $this->href->set("id", 11, true); $newHref = $newHref->set("id", 121, true); $this->assertArrayHasKey("id", $newHref->getAttributes()); $this->assertContains(array(11, 121), $newHref->getAttributes()); }
public function setAction($action) { $this->href->set("_ac", $action); return $this; }