Skip to content

Commit 8bbe338

Browse files
committed
compatibility with PHPUnit 6
1 parent 17235ed commit 8bbe338

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ matrix:
2828
before_install:
2929
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$xdebug" != "yes" ]]; then phpenv config-rm xdebug.ini; fi
3030
- composer self-update
31+
- composer require 'phpunit/phpunit:^4.8.35|^5.4.3|^6.0' --dev --no-update
3132

3233
install:
3334
- if [ "$PACKAGES" != "" ]; then composer require --no-update $PACKAGES; fi
3435
- composer update $COMPOSER_OPTIONS
3536

3637
script:
3738
- vendor/bin/phpspec run
38-
- if [[ "$xdebug" = "yes" ]]; then phpunit --coverage-clover=coverage.clover; else phpunit; fi
39+
- if [[ "$xdebug" = "yes" ]]; then vendor/bin/phpunit --coverage-clover=coverage.clover; else vendor/bin/phpunit; fi
3940
- if [[ "$xdebug" = "yes" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
4041
- if [[ "$xdebug" = "yes" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

tests/Api/ApiClientTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Xabbuh\XApi\Client\Tests\Api;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Serializer\SerializerInterface;
1516
use Xabbuh\XApi\Client\Request\HandlerInterface;
1617
use Xabbuh\XApi\Common\Exception\NotFoundException;
@@ -23,7 +24,7 @@
2324
/**
2425
* @author Christian Flothmann <[email protected]>
2526
*/
26-
abstract class ApiClientTest extends \PHPUnit_Framework_TestCase
27+
abstract class ApiClientTest extends TestCase
2728
{
2829
/**
2930
* @var HandlerInterface|\PHPUnit_Framework_MockObject_MockObject

0 commit comments

Comments
 (0)