Skip to content

Commit

Permalink
Upgrade to PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Anca Corral committed Jan 7, 2019
1 parent 453741a commit 5f814bf
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 35 deletions.
15 changes: 13 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
jobs:
build:
build: &test-template
docker:
- image: circleci/php:5.6
- image: circleci/php:7.3

working_directory: ~/intercom-php

Expand All @@ -11,3 +11,14 @@ jobs:
- run: composer install --no-interaction
- run: vendor/bin/phpunit
- run: vendor/bin/phpcs --standard=PSR2 src test

test-7.2:
<<: *test-template
docker:
- image: circleci/php:7.2

test-7.1:
<<: *test-template
docker:
- image: circleci/php:7.1

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Official PHP bindings to the Intercom API

## Installation

Requires PHP 5.6.
This library supports PHP 7.3, 7.2 and 7.1.

The recommended way to install intercom-php is through [Composer](https://getcomposer.org):

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
}
},
"require": {
"php": ">= 5.6",
"php": ">= 7.1",
"ext-json": "*",
"guzzlehttp/guzzle": "~6.0"
},
"require-dev": {
"phpunit/phpunit": "4.0.*",
"phpunit/phpunit": "^7.0",
"squizlabs/php_codesniffer": "^3.1"
}
}
3 changes: 1 addition & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
stopOnFailure="false">
<testsuites>
<testsuite name="Intercom Test Suite">
<directory suffix=".php">./test/</directory>
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomAdminsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomAdmins;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomAdminsTest extends PHPUnit_Framework_TestCase
class IntercomAdminsTest extends TestCase
{
public function testAdminsList()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomBulkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomBulk;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomBulkTest extends PHPUnit_Framework_TestCase
class IntercomBulkTest extends TestCase
{
public function testBulkUsers()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
use GuzzleHttp\Psr7\Response;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use stdClass;

class IntercomClientTest extends PHPUnit_Framework_TestCase
class IntercomClientTest extends TestCase
{
public function testBasicClient()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomCompaniesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomCompanies;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomCompaniesTest extends PHPUnit_Framework_TestCase
class IntercomCompaniesTest extends TestCase
{
public function testCompanyCreate()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomConversationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomConversations;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomConversationsTest extends PHPUnit_Framework_TestCase
class IntercomConversationsTest extends TestCase
{
public function testConversationsList()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomCountsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomCounts;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomCountsTest extends PHPUnit_Framework_TestCase
class IntercomCountsTest extends TestCase
{
public function testCountsList()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomEvents;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomEventsTest extends PHPUnit_Framework_TestCase
class IntercomEventsTest extends TestCase
{
public function testEventCreate()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomLeadsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomLeads;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomLeadsTest extends PHPUnit_Framework_TestCase
class IntercomLeadsTest extends TestCase
{
public function testLeadCreate()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomMessagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomMessages;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomMessagesTest extends PHPUnit_Framework_TestCase
class IntercomMessagesTest extends TestCase
{
public function testMessageCreate()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomNotesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomNotes;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomNotesTest extends PHPUnit_Framework_TestCase
class IntercomNotesTest extends TestCase
{
public function testNoteCreate()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomSegmentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomSegments;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomSegmentTest extends PHPUnit_Framework_TestCase
class IntercomSegmentTest extends TestCase
{

public function testSegmentList()
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomTagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomTags;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomTagsTest extends PHPUnit_Framework_TestCase
class IntercomTagsTest extends TestCase
{
public function testTagUsers()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomUsersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomUsers;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomUsersTest extends PHPUnit_Framework_TestCase
class IntercomUsersTest extends TestCase
{
public function testUserCreate()
{
Expand Down
4 changes: 2 additions & 2 deletions test/IntercomVisitorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Intercom\Test;

use Intercom\IntercomVisitors;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class IntercomVisitorsTest extends PHPUnit_Framework_TestCase
class IntercomVisitorsTest extends TestCase
{

public function testVisitorUpdate()
Expand Down

0 comments on commit 5f814bf

Please sign in to comment.