diff --git a/.gitignore b/.gitignore index db78b71..71621fb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ composer.lock vendor phpunit.xml .phpunit-watcher.yml +.phpunit.result.cache diff --git a/README.md b/README.md index 271371c..2dd713e 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ composer require kapersoft/sharefile-api ## Usage The first thing you need to do is get an OAuth2 key. Go to the [Get an API key](https://api.sharefile.com/rest/oauth2-request.aspx) section on the [ShareFile API site](https://api.sharefile.com/) to get this key. -With an OAuth2 key you can instantiate a `Kapersoft\Sharefile\Client`: +With an OAuth2 key you can instantiate a `Kapersoft\ShareFile\Client`: ```php $client = new Client('hostname', 'client_id', 'secret', 'username', 'password'); ``` @@ -52,8 +52,8 @@ Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recen ## Testing In the `/tests`-folder are two tests defined: -- `TestClient.php` tests the `Kapersoft\Sharefile\Client`-class using mock Guzzle objects; -- `TestShareFileApi.php` tests the `Kapersoft\Sharefile\Client`-class using the live ShareFile API. To use this test fill in your ShareFile credentials under section `` of the `phpunit.xml.dist`-file in the project root folder. Some tests need additional parameters to run. These parameters can be found in the first lines of the test. +- `TestClient.php` tests the `Kapersoft\ShareFile\Client`-class using mock Guzzle objects; +- `TestShareFileApi.php` tests the `Kapersoft\ShareFile\Client`-class using the live ShareFile API. To use this test fill in your ShareFile credentials under section `` of the `phpunit.xml.dist`-file in the project root folder. Some tests need additional parameters to run. These parameters can be found in the first lines of the test. ## Security If you discover any security related issues, please email kapersoft@gmail.com instead of using the issue tracker. diff --git a/composer.json b/composer.json index 334efb9..5f58928 100644 --- a/composer.json +++ b/composer.json @@ -19,22 +19,22 @@ } ], "require": { - "php": "^7.0", + "php": ">=7.0", "guzzlehttp/guzzle": "^6.2" }, "require-dev": { "larapack/dd": "1.*", - "mikey179/vfsStream": "^1.6", - "phpunit/phpunit": "6.4.x-dev" + "mikey179/vfsstream": "^1.6", + "phpunit/phpunit": ">=6.4" }, "autoload": { "psr-4": { - "Kapersoft\\Sharefile\\": "src" + "Kapersoft\\ShareFile\\": "src" } }, "autoload-dev": { "psr-4": { - "Kapersoft\\Sharefile\\Test\\": "tests" + "Kapersoft\\ShareFile\\Test\\": "tests" } }, "scripts": { diff --git a/src/Client.php b/src/Client.php index 1ce9188..f163eb0 100644 --- a/src/Client.php +++ b/src/Client.php @@ -8,7 +8,7 @@ use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\ClientException; -use Kapersoft\Sharefile\Exceptions\BadRequest; +use Kapersoft\ShareFile\Exceptions\BadRequest; /** * Class Client. diff --git a/src/Exceptions/BadRequest.php b/src/Exceptions/BadRequest.php index 2bf67d8..7147b92 100644 --- a/src/Exceptions/BadRequest.php +++ b/src/Exceptions/BadRequest.php @@ -1,6 +1,6 @@ vfsRoot = vfsStream::setup('home'); } diff --git a/tests/TestShareFileApi.php b/tests/TestShareFileApi.php index 1cad5d9..d72b50d 100644 --- a/tests/TestShareFileApi.php +++ b/tests/TestShareFileApi.php @@ -1,14 +1,14 @@ vfsRoot = vfsStream::setup('home'); }