Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
refs #48 #49: include phpstan as dev dependency and increase version …
Browse files Browse the repository at this point in the history
…of other deps
  • Loading branch information
mavimo committed Aug 16, 2018
1 parent 7be4f0b commit 0e140a7
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 19 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use Doctrine\Common\Inflector\Inflector;
use LooplineSystems\CloseIoApiWrapper\Library\Exception\InvalidParamException;
use Zend\Filter\Word\UnderscoreToCamelCase;

trait ObjectHydrateHelperTrait
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/LooplineSystems/CloseIoApiWrapper/Api/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use LooplineSystems\CloseIoApiWrapper\CloseIoResponse;

class CloseIoResponseTest extends \PHPUnit_Framework_TestCase
class CloseIoResponseTest extends \PHPUnit\Framework\TestCase
{
/**
* @param string $jsonResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use LooplineSystems\CloseIoApiWrapper\Model\Phone;

class PhoneTest extends \PHPUnit_Framework_TestCase
class PhoneTest extends \PHPUnit\Framework\TestCase
{
public function testInstantiateWithoutData()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/LooplineSystems/CloseIoApiWrapper/Model/UrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use LooplineSystems\CloseIoApiWrapper\Model\Url;

class UrlTest extends \PHPUnit_Framework_TestCase
class UrlTest extends \PHPUnit\Framework\TestCase
{
public function testInstantiateWithoutData()
{
Expand Down

0 comments on commit 0e140a7

Please sign in to comment.