public function __construct(TaxResolver $resolver, Address $companyAddress)
 {
     $this->_resolver = $resolver;
     $this->_companyAddress = $companyAddress;
     // default to generic 'product' tax
     $this->_includedRate = $resolver->getTaxRates('product', $companyAddress);
 }
 /**
  * @expectedException LogicException
  */
 public function testMultipleTaxDeclarationException()
 {
     $this->compiler->add(file_get_contents(__DIR__ . '/../cfg/tax-2.yml'));
     $data = $this->compiler->compile();
     $this->productType->shouldReceive("getName")->once()->andReturn('basic');
     $this->address->countryID = 'CA';
     $resolver = new Resolver($data->rates);
     $rates = $resolver->getTaxRates($this->productType->getName(), $this->address);
 }