Ejemplo n.º 1
0
 /**
  * When called will return the value stored
  */
 public function testWhenCalledWillReturnTheValueStored()
 {
     $labelValue = 'testing';
     $label = new Label($labelValue);
     static::assertSame($labelValue, $label->getValue());
 }
Ejemplo n.º 2
0
 /**
  * @param Label $label
  * @return bool
  */
 public function equals(Label $label)
 {
     return $this->value === $label->getValue();
 }