/** * @param Hook $hook */ public function removeHook(Hook $hook) { if ($this->hasHook($hook->getId())) { unset($this->hooks[$hook->getId()]); } }
public function testGetters() { $this->assertEquals($this->hook->getId(), '_ID_'); $this->assertEquals($this->hook->getOwner(), '_OWNER_'); $this->assertEquals($this->hook->getRepository(), '_REPOSITORY_'); }