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