Exemplo n.º 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;
 }
Exemplo n.º 2
0
 /**
  * @test
  * @expectedException InvalidArgumentException
  */
 public function throw_exception_if_wrong_country_code_is_submitted()
 {
     $countryCode = Country::get('ZZ');
 }