Пример #1
0
 function it_is_get_currency_code_correct(Currency $currency, Amount $amount)
 {
     $currency->getCode()->willReturn('PLN');
     $this->beConstructedWith($currency->getWrappedObject(), $amount->getWrappedObject());
     $this->getCurrencyCode()->shouldReturn('PLN');
 }
Пример #2
0
 public function __construct(NumberAccount $numberAccount, Currency $currency)
 {
     $this->_id_account_number = Uuid::uuid4()->toString();
     $this->_number = $numberAccount->getNumber();
     $this->_currency_code = $currency->getCode();
 }