Skip to content

Commit e5ac3f1

Browse files
authored
Merge pull request #202 from seahken/tests-update
phpunit compatibility update
2 parents b04fa5f + eaf60bd commit e5ac3f1

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ext-curl": "*"
88
},
99
"require-dev": {
10-
"phpunit/phpunit": "4.0.*",
10+
"phpunit/phpunit": "6.2.*",
1111
"vlucas/phpdotenv": "^2.0"
1212
},
1313
"autoload": {
@@ -16,7 +16,7 @@
1616
}
1717
},
1818
"homepage": "https://github.com/drewm/mailchimp-api",
19-
"authors": [
19+
"authors": [
2020
{
2121
"name": "Drew McLellan",
2222
"email": "drew.mclellan@gmail.com",

tests/BatchTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

33
use \DrewM\MailChimp\MailChimp;
4+
use PHPUnit\Framework\TestCase;
45

5-
class BatchTest extends PHPUnit_Framework_TestCase
6+
class BatchTest extends TestCase
67
{
78

89
public function setUp()
@@ -29,4 +30,4 @@ public function testNewBatch()
2930
$this->assertInstanceOf('DrewM\MailChimp\Batch', $Batch);
3031
}
3132

32-
}
33+
}

tests/ListsTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

33
use \DrewM\MailChimp\MailChimp;
4+
use PHPUnit\Framework\TestCase;
45

5-
class ListsTest extends PHPUnit_Framework_TestCase
6+
class ListsTest extends TestCase
67
{
78

89
public function setUp()
@@ -29,4 +30,4 @@ public function testGetLists()
2930
$this->assertArrayHasKey('lists', $lists);
3031
}
3132

32-
}
33+
}

tests/MailChimpTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

33
use \DrewM\MailChimp\MailChimp;
4+
use PHPUnit\Framework\TestCase;
45

5-
class MailChimpTest extends PHPUnit_Framework_TestCase
6+
class MailChimpTest extends TestCase
67
{
78

89
public function setUp()
@@ -18,7 +19,7 @@ public function setUp()
1819

1920
public function testInvalidAPIKey()
2021
{
21-
$this->setExpectedException('\Exception');
22+
$this->expectException('\Exception');
2223
$MailChimp = new MailChimp('abc');
2324
}
2425

0 commit comments

Comments
 (0)