Exemplo n.º 1
0
 /**
  * Applies the change to the fingerprint
  *
  * @param Fingerprint $fingerprint
  */
 private function updateFingerprint(Fingerprint $fingerprint)
 {
     if ($this->label === null) {
         $fingerprint->removeLabel($this->languageCode);
     } else {
         $fingerprint->getLabels()->setTextForLanguage($this->languageCode, $this->label);
     }
 }
Exemplo n.º 2
0
 /**
  * @expectedException OutOfBoundsException
  */
 public function testRemoveLabelMakesGetterThrowException()
 {
     $this->fingerprint->removeLabel('en');
     $this->fingerprint->getLabel('en');
 }