Skip to content

Commit 3f64881

Browse files
authored
Merge pull request #163 from peter279k/test_enhancement
- Support PHP 7.3 - Update phpunit dependency
2 parents 9b79a54 + 344f980 commit 3f64881

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ language: php
22

33
php:
44
- 7.2
5-
6-
sudo: false
5+
- 7.3
76

87
cache:
98
directories:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"require-dev": {
3333
"friendsofphp/php-cs-fixer": "^2.14",
34-
"phpunit/phpunit": "^5.7",
34+
"phpunit/phpunit": "^8.0",
3535
"phpspec/phpspec": "^5.0",
3636
"symfony/yaml": "^4.2",
3737
"donatj/mock-webserver": "^2.0",

phpunit.xml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
<testsuite>
1515
<directory>tests/</directory>
1616
</testsuite>
17+
18+
<filter>
19+
<whitelist>
20+
<directory suffix=".php">src</directory>
21+
</whitelist>
22+
</filter>
1723
</phpunit>

tests/Api/ApiTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
use donatj\MockWebServer\MockWebServer;
99
use donatj\MockWebServer\Response;
1010
use donatj\MockWebServer\ResponseStack;
11+
use PHPUnit\Framework\TestCase;
1112

1213
/**
1314
* @author Laurent Petard <[email protected]>
1415
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1516
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1617
*/
17-
abstract class ApiTestCase extends \PHPUnit_Framework_TestCase
18+
abstract class ApiTestCase extends TestCase
1819
{
1920
/** @var MockWebServer */
2021
protected $server;

0 commit comments

Comments
 (0)