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');
 }
Example #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();
 }