Skip to content

Commit ea68849

Browse files
authored
Upgrade to PHP 7.1+ (#271)
* Upgrade to PHP 7 * Update README.md Co-Authored-By: GabrielAnca <[email protected]>
1 parent 453741a commit ea68849

18 files changed

+52
-35
lines changed

.circleci/config.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2
22
jobs:
3-
build:
3+
test-7.3: &test-template
44
docker:
5-
- image: circleci/php:5.6
5+
- image: circleci/php:7.3
66

77
working_directory: ~/intercom-php
88

@@ -11,3 +11,21 @@ jobs:
1111
- run: composer install --no-interaction
1212
- run: vendor/bin/phpunit
1313
- run: vendor/bin/phpcs --standard=PSR2 src test
14+
15+
test-7.2:
16+
<<: *test-template
17+
docker:
18+
- image: circleci/php:7.2
19+
20+
test-7.1:
21+
<<: *test-template
22+
docker:
23+
- image: circleci/php:7.1
24+
25+
workflows:
26+
version: 2
27+
test_on_supported_php_versions:
28+
jobs:
29+
- test-7.3
30+
- test-7.2
31+
- test-7.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Official PHP bindings to the Intercom API
77

88
## Installation
99

10-
Requires PHP 5.6.
10+
This library supports PHP 7.1 and later
1111

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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
}
2121
},
2222
"require": {
23-
"php": ">= 5.6",
23+
"php": ">= 7.1",
2424
"ext-json": "*",
2525
"guzzlehttp/guzzle": "~6.0"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "4.0.*",
28+
"phpunit/phpunit": "^7.0",
2929
"squizlabs/php_codesniffer": "^3.1"
3030
}
3131
}

phpunit.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
99
processIsolation="false"
10-
stopOnFailure="false"
11-
syntaxCheck="false">
10+
stopOnFailure="false">
1211
<testsuites>
1312
<testsuite name="Intercom Test Suite">
1413
<directory suffix=".php">./test/</directory>

test/IntercomAdminsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Intercom\Test;
44

55
use Intercom\IntercomAdmins;
6-
use PHPUnit_Framework_TestCase;
6+
use PHPUnit\Framework\TestCase;
77

8-
class IntercomAdminsTest extends PHPUnit_Framework_TestCase
8+
class IntercomAdminsTest extends TestCase
99
{
1010
public function testAdminsList()
1111
{

test/IntercomBulkTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Intercom\Test;
44

55
use Intercom\IntercomBulk;
6-
use PHPUnit_Framework_TestCase;
6+
use PHPUnit\Framework\TestCase;
77

8-
class IntercomBulkTest extends PHPUnit_Framework_TestCase
8+
class IntercomBulkTest extends TestCase
99
{
1010
public function testBulkUsers()
1111
{

test/IntercomClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
use GuzzleHttp\Psr7\Response;
1010
use GuzzleHttp\HandlerStack;
1111
use GuzzleHttp\Middleware;
12-
use PHPUnit_Framework_TestCase;
12+
use PHPUnit\Framework\TestCase;
1313
use stdClass;
1414

15-
class IntercomClientTest extends PHPUnit_Framework_TestCase
15+
class IntercomClientTest extends TestCase
1616
{
1717
public function testBasicClient()
1818
{

test/IntercomCompaniesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Intercom\Test;
44

55
use Intercom\IntercomCompanies;
6-
use PHPUnit_Framework_TestCase;
6+
use PHPUnit\Framework\TestCase;
77

8-
class IntercomCompaniesTest extends PHPUnit_Framework_TestCase
8+
class IntercomCompaniesTest extends TestCase
99
{
1010
public function testCompanyCreate()
1111
{

test/IntercomConversationsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Intercom\Test;
44

55
use Intercom\IntercomConversations;
6-
use PHPUnit_Framework_TestCase;
6+
use PHPUnit\Framework\TestCase;
77

8-
class IntercomConversationsTest extends PHPUnit_Framework_TestCase
8+
class IntercomConversationsTest extends TestCase
99
{
1010
public function testConversationsList()
1111
{

test/IntercomCountsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Intercom\Test;
44

55
use Intercom\IntercomCounts;
6-
use PHPUnit_Framework_TestCase;
6+
use PHPUnit\Framework\TestCase;
77

8-
class IntercomCountsTest extends PHPUnit_Framework_TestCase
8+
class IntercomCountsTest extends TestCase
99
{
1010
public function testCountsList()
1111
{

0 commit comments

Comments
 (0)