Exemplo n.º 1
0
 /** @test */
 public function should_return_the_currency()
 {
     $this->assertEquals(new Currency('EUR'), $this->jurisdiction->currency());
 }
Exemplo n.º 2
0
 /**
  * Create a new Basket
  *
  * @param Jurisdiction $jurisdiction
  * @return void
  */
 public function __construct(Jurisdiction $jurisdiction)
 {
     $this->rate = $jurisdiction->rate();
     $this->currency = $jurisdiction->currency();
     $this->products = new Collection();
 }