Exemple #1
0
 /**
  * When called will return the value stored
  */
 public function testWhenCalledWillReturnTheValueStored()
 {
     $typeValue = 'testing';
     $type = new Type($typeValue);
     static::assertSame($typeValue, $type->getValue());
 }
Exemple #2
0
 /**
  * @param Type $type
  * @return bool
  */
 public function equals(Type $type)
 {
     return $this->value === $type->getValue();
 }