diff --git a/README.md b/README.md index f4e90b5..c12bb6e 100644 --- a/README.md +++ b/README.md @@ -77,3 +77,9 @@ echo('
' . json_encode($t, JSON_PRETTY_PRINT) . '
'); ?> ``` + +# Running the Tests + +Update the `tests/phpunit.xml` set the `SANDBOX_USERNAME` and the `SANDBOX_PASSWORD` to your username and password. + +You can then run the tests using phpunit with the following command: `phpunit -c tests/phpunit.xml` diff --git a/composer.json b/composer.json index 2ffc646..64484cd 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ "type": "library", "require": { "php": ">=5.5.9", - "guzzlehttp/guzzle": "~6" + "guzzlehttp/guzzle": "~7" }, "require-dev": { "phpunit/phpunit": "5.7" diff --git a/tests/basicWorkflowTest.php b/tests/basicWorkflowTest.php index 63391fb..84314d4 100644 --- a/tests/basicWorkflowTest.php +++ b/tests/basicWorkflowTest.php @@ -12,6 +12,8 @@ final class AvaTaxClientTest extends TestCase */ public function testConstructorThrowsExceptionForMissingRequirements() { + $this->expectException('Exception'); + new Avalara\AvaTaxClient('', '', '', ''); } diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 1b42d14..a441d21 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -2,4 +2,8 @@ ./ - \ No newline at end of file + + + + +