/**
  * @test
  */
 public function sets_currency_and_checks_if_it_matches()
 {
     $config = new Config($this->config);
     $provider = m::mock('SSD\\Currency\\Providers\\CookieProvider', [$config, Request::capture()]);
     $provider->shouldReceive('set')->with('usd');
     $provider->shouldReceive('is')->andReturn(true);
     $currency = new Currency($provider);
     $currency->set('usd');
     $this->assertTrue($currency->is('usd'));
 }
 /**
  * @test
  */
 public function pulls_value_with_prefix_and_postfix_with_two_decimals()
 {
     $result = $this->currency->withPrefixAndPostfix(['gbp' => 20, 'eur' => 23, 'usd' => 35], 'usd', 2);
     $this->assertEquals('$35.00 USD', $result);
 }