Exemple #1
0
 public function test_token_exception()
 {
     try {
         $this->client = TaxJar\Client::withApiKey(null);
     } catch (Exception $e) {
         $this->assertEquals($e->getMessage(), 'Please provide an API key.');
     }
 }
Exemple #2
0
 public function setUp()
 {
     $this->setUpHttpMock();
     $this->client = TaxJar\Client::withApiKey('test');
     $this->client->setApiConfig('base_uri', 'http://localhost:8082');
 }