Пример #1
0
 /**
  * @param AmountPence $amount
  * @return bool
  */
 public function equals(AmountPence $amount) : bool
 {
     return $this->getValue() === $amount->getValue();
 }
Пример #2
0
 /**
  * @dataProvider provideFromHumanReadableString
  * @param string $string
  * @param int $pence
  */
 public function testFromHumanReadableString(string $string, int $pence)
 {
     self::assertSame($pence, AmountPence::fromHumanReadableString($string)->getValue());
 }