Skip to content

Commit

Permalink
phpunit 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Zogg committed Oct 26, 2017
1 parent dc7b05a commit eee6ac6
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -3,6 +3,7 @@ language: php
php:
- 7.0
- 7.1
- 7.2

matrix:
include:
Expand All @@ -14,6 +15,10 @@ matrix:
env: dependencies=lowest
- php: 7.1
env: dependencies=highest
- php: 7.2
env: dependencies=lowest
- php: 7.2
env: dependencies=highest

before_script:
- composer self-update -q
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -17,7 +17,7 @@
"psr/http-message": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~5.5",
"phpunit/phpunit": "~6.0",
"pimple/pimple": "~3.0"
},
"autoload": {
Expand Down
3 changes: 2 additions & 1 deletion tests/Error/ErrorTest.php
Expand Up @@ -3,11 +3,12 @@
namespace Chubbyphp\Tests\ApiHttp\Error;

use Chubbyphp\ApiHttp\Error\Error;
use PHPUnit\Framework\TestCase;

/**
* @covers \Chubbyphp\ApiHttp\Error\Error
*/
final class ErrorTest extends \PHPUnit_Framework_TestCase
final class ErrorTest extends TestCase
{
public function testScopeAndKey()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Manager/RequestManagerTest.php
Expand Up @@ -10,12 +10,13 @@
use Chubbyphp\Negotiation\AcceptNegotiatorInterface;
use Chubbyphp\Negotiation\ContentTypeNegotiatorInterface;
use Chubbyphp\Negotiation\NegotiatedValue;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ServerRequestInterface as Request;

/**
* @covers \Chubbyphp\ApiHttp\Manager\RequestManager
*/
final class RequestManagerTest extends \PHPUnit_Framework_TestCase
final class RequestManagerTest extends TestCase
{
public function testGetAccept()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Manager/ResponseManagerTest.php
Expand Up @@ -9,14 +9,15 @@
use Chubbyphp\ApiHttp\Manager\ResponseManager;
use Chubbyphp\Serialization\SerializerInterface;
use Chubbyphp\Serialization\TransformerInterface;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\StreamInterface;

/**
* @covers \Chubbyphp\ApiHttp\Manager\ResponseManager
*/
final class ResponseManagerTest extends \PHPUnit_Framework_TestCase
final class ResponseManagerTest extends TestCase
{
public function testCreateResponse()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Provider/ApiHttpProviderTest.php
Expand Up @@ -11,12 +11,13 @@
use Chubbyphp\Negotiation\AcceptNegotiator;
use Chubbyphp\Negotiation\ContentTypeNegotiator;
use Chubbyphp\Serialization\Provider\SerializationProvider;
use PHPUnit\Framework\TestCase;
use Pimple\Container;

/**
* @covers \Chubbyphp\ApiHttp\Provider\ApiHttpProvider
*/
final class ApiHttpProviderTest extends \PHPUnit_Framework_TestCase
final class ApiHttpProviderTest extends TestCase
{
public function testRegister()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Serialization/ErrorMappingTest.php
Expand Up @@ -5,11 +5,12 @@
use Chubbyphp\ApiHttp\Error\Error;
use Chubbyphp\ApiHttp\Serialization\ErrorMapping;
use Chubbyphp\Serialization\Mapping\FieldMapping;
use PHPUnit\Framework\TestCase;

/**
* @covers \Chubbyphp\ApiHttp\Serialization\ErrorMapping
*/
final class ErrorMappingTest extends \PHPUnit_Framework_TestCase
final class ErrorMappingTest extends TestCase
{
public function testGetClass()
{
Expand Down

0 comments on commit eee6ac6

Please sign in to comment.