diff --git a/.travis.yml b/.travis.yml index a9bf126..4092d67 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,6 @@ before_script: script: - mkdir -p build/logs - vendor/bin/phpunit - - if [ "$dependencies" = "highest" ]; then composer require --dev phpstan/phpstan; fi; - if [ "$dependencies" = "highest" ]; then php vendor/bin/phpstan analyze --level=4 src tests; fi; after_script: diff --git a/composer.json b/composer.json index 63b4bc1..2657d59 100644 --- a/composer.json +++ b/composer.json @@ -20,11 +20,12 @@ "require": { "php": ">=7.1.0", "ext-curl": "*", - "doctrine/inflector": "^1.0" + "doctrine/inflector": "^1.3.0" }, "require-dev": { - "phpunit/phpunit": "^5.7.10", - "php-coveralls/php-coveralls": "^2.0" + "phpunit/phpunit": "^7.3.1", + "php-coveralls/php-coveralls": "^2.0", + "phpstan/phpstan": "^0.10.3" }, "autoload": { "psr-4": { diff --git a/src/LooplineSystems/CloseIoApiWrapper/Library/ObjectHydrateHelperTrait.php b/src/LooplineSystems/CloseIoApiWrapper/Library/ObjectHydrateHelperTrait.php index c0f3f0d..8b61dfb 100644 --- a/src/LooplineSystems/CloseIoApiWrapper/Library/ObjectHydrateHelperTrait.php +++ b/src/LooplineSystems/CloseIoApiWrapper/Library/ObjectHydrateHelperTrait.php @@ -11,7 +11,6 @@ use Doctrine\Common\Inflector\Inflector; use LooplineSystems\CloseIoApiWrapper\Library\Exception\InvalidParamException; -use Zend\Filter\Word\UnderscoreToCamelCase; trait ObjectHydrateHelperTrait { diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Api/ActivityApiTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Api/ActivityApiTest.php index 595e9a0..874d760 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/Api/ActivityApiTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Api/ActivityApiTest.php @@ -16,7 +16,7 @@ use LooplineSystems\CloseIoApiWrapper\Library\Curl\Curl; use LooplineSystems\CloseIoApiWrapper\Model\SmsActivity; -class ActivityApiTest extends \PHPUnit_Framework_TestCase +class ActivityApiTest extends \PHPUnit\Framework\TestCase { /** * @description tests updating a sms activity using mock curl object diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Api/ConfigTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Api/ConfigTest.php index a0de168..02c34d6 100755 --- a/tests/LooplineSystems/CloseIoApiWrapper/Api/ConfigTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Api/ConfigTest.php @@ -12,7 +12,7 @@ use LooplineSystems\CloseIoApiWrapper\CloseIoConfig; use LooplineSystems\CloseIoApiWrapper\Library\Exception\InvalidParamException; -class ConfigTest extends \PHPUnit_Framework_TestCase +class ConfigTest extends \PHPUnit\Framework\TestCase { /** * @param string $url diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Api/CustomFieldApiTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Api/CustomFieldApiTest.php index 8d09328..c0f26ce 100755 --- a/tests/LooplineSystems/CloseIoApiWrapper/Api/CustomFieldApiTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Api/CustomFieldApiTest.php @@ -15,7 +15,7 @@ use LooplineSystems\CloseIoApiWrapper\CloseIoResponse; use LooplineSystems\CloseIoApiWrapper\Model\CustomField; -class CustomFieldApiTest extends \PHPUnit_Framework_TestCase +class CustomFieldApiTest extends \PHPUnit\Framework\TestCase { /** * @dataProvider customFieldArrayProvider diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Api/LeadsApiTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Api/LeadsApiTest.php index 9f9ea4c..bfe6bae 100755 --- a/tests/LooplineSystems/CloseIoApiWrapper/Api/LeadsApiTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Api/LeadsApiTest.php @@ -14,7 +14,7 @@ use LooplineSystems\CloseIoApiWrapper\CloseIoResponse; use LooplineSystems\CloseIoApiWrapper\Model\Lead; -class LeadsApiTest extends \PHPUnit_Framework_TestCase +class LeadsApiTest extends \PHPUnit\Framework\TestCase { /** * @param Lead $lead diff --git a/tests/LooplineSystems/CloseIoApiWrapper/CloseIoApiWrapperTest.php b/tests/LooplineSystems/CloseIoApiWrapper/CloseIoApiWrapperTest.php index 9e2118d..d541bfb 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/CloseIoApiWrapperTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/CloseIoApiWrapperTest.php @@ -21,7 +21,7 @@ use LooplineSystems\CloseIoApiWrapper\CloseIoApiWrapper; use LooplineSystems\CloseIoApiWrapper\CloseIoConfig; -class CloseIoApiWrapperTest extends \PHPUnit_Framework_TestCase +class CloseIoApiWrapperTest extends \PHPUnit\Framework\TestCase { public function testCreateCloseIoWrapper() { diff --git a/tests/LooplineSystems/CloseIoApiWrapper/CloseIoConfigTest.php b/tests/LooplineSystems/CloseIoApiWrapper/CloseIoConfigTest.php index ef9debf..a5d8f36 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/CloseIoConfigTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/CloseIoConfigTest.php @@ -12,7 +12,7 @@ use LooplineSystems\CloseIoApiWrapper\CloseIoConfig; use LooplineSystems\CloseIoApiWrapper\Library\Exception\InvalidParamException; -class CloseIoConfigTest extends \PHPUnit_Framework_TestCase +class CloseIoConfigTest extends \PHPUnit\Framework\TestCase { public function testCreateCloseIoConfigHaveValidUrlByDefault() { diff --git a/tests/LooplineSystems/CloseIoApiWrapper/CloseIoRequestTest.php b/tests/LooplineSystems/CloseIoApiWrapper/CloseIoRequestTest.php index 931dfaf..c304809 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/CloseIoRequestTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/CloseIoRequestTest.php @@ -14,7 +14,7 @@ use LooplineSystems\CloseIoApiWrapper\Library\Api\ApiHandler; use LooplineSystems\CloseIoApiWrapper\Library\Exception\InvalidParamException; -class CloseIoRequestTest extends \PHPUnit_Framework_TestCase +class CloseIoRequestTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/LooplineSystems/CloseIoApiWrapper/CloseIoResponseTest.php b/tests/LooplineSystems/CloseIoApiWrapper/CloseIoResponseTest.php index 4c89796..a177455 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/CloseIoResponseTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/CloseIoResponseTest.php @@ -11,7 +11,7 @@ use LooplineSystems\CloseIoApiWrapper\CloseIoResponse; -class CloseIoResponseTest extends \PHPUnit_Framework_TestCase +class CloseIoResponseTest extends \PHPUnit\Framework\TestCase { /** * @param string $jsonResponse diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Library/Curl/CurlTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Library/Curl/CurlTest.php index 2b7278e..6a65e78 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/Library/Curl/CurlTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Library/Curl/CurlTest.php @@ -15,7 +15,7 @@ use LooplineSystems\CloseIoApiWrapper\Library\Curl\Curl; use LooplineSystems\CloseIoApiWrapper\Library\Exception\BadApiRequestException; -class CurlTest extends \PHPUnit_Framework_TestCase +class CurlTest extends \PHPUnit\Framework\TestCase { public function testGetResponse() { diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Library/Exception/ExceptionsTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Library/Exception/ExceptionsTest.php index ce68e4a..0efc73f 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/Library/Exception/ExceptionsTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Library/Exception/ExceptionsTest.php @@ -11,7 +11,7 @@ use LooplineSystems\CloseIoApiWrapper\Library\Exception\JsonDecodingException; -class ExceptionsTest extends \PHPUnit_Framework_TestCase +class ExceptionsTest extends \PHPUnit\Framework\TestCase { /** * @param string $data diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Library/ObjectHydrateHelperTraitTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Library/ObjectHydrateHelperTraitTest.php index 83cd02d..2558e0c 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/Library/ObjectHydrateHelperTraitTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Library/ObjectHydrateHelperTraitTest.php @@ -11,7 +11,7 @@ use Tests\LooplineSystems\CloseIoApiWrapper\Library\Fake\ObjectHydrateHelperDemo; -class ObjectHydrateHelperTraitTest extends \PHPUnit_Framework_TestCase +class ObjectHydrateHelperTraitTest extends \PHPUnit\Framework\TestCase { /** * @var ObjectHydrateHelperDemo diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Model/EmailTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Model/EmailTest.php index e177722..565fe6c 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/Model/EmailTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Model/EmailTest.php @@ -12,7 +12,7 @@ use LooplineSystems\CloseIoApiWrapper\Library\Exception\InvalidParamException; use LooplineSystems\CloseIoApiWrapper\Model\Email; -class EmailTest extends \PHPUnit_Framework_TestCase +class EmailTest extends \PHPUnit\Framework\TestCase { public function testInstantiateWithoutData() { diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Model/PhoneTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Model/PhoneTest.php index 2eb1f24..77f72b6 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/Model/PhoneTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Model/PhoneTest.php @@ -11,7 +11,7 @@ use LooplineSystems\CloseIoApiWrapper\Model\Phone; -class PhoneTest extends \PHPUnit_Framework_TestCase +class PhoneTest extends \PHPUnit\Framework\TestCase { public function testInstantiateWithoutData() { diff --git a/tests/LooplineSystems/CloseIoApiWrapper/Model/UrlTest.php b/tests/LooplineSystems/CloseIoApiWrapper/Model/UrlTest.php index d5353e6..af124cf 100644 --- a/tests/LooplineSystems/CloseIoApiWrapper/Model/UrlTest.php +++ b/tests/LooplineSystems/CloseIoApiWrapper/Model/UrlTest.php @@ -11,7 +11,7 @@ use LooplineSystems\CloseIoApiWrapper\Model\Url; -class UrlTest extends \PHPUnit_Framework_TestCase +class UrlTest extends \PHPUnit\Framework\TestCase { public function testInstantiateWithoutData() {