Пример #1
0
 /**
  * Get stock country
  *
  * @return mixed
  */
 public function country()
 {
     if ($this->country) {
         return $this->country;
     }
     $this->country = Country::random();
     $this->currency = Currency::get($this->country);
     return $this->country;
 }
Пример #2
0
 /**
  * @test
  * @expectedException InvalidArgumentException
  */
 public function throw_exception_if_wrong_currency_is_submitted()
 {
     $currency = Currency::get('ZZ');
 }