Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
add php7.2 and phpuniz 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Apr 22, 2018
1 parent af1b793 commit 2c7f8e6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"psr/log": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~5.5",
"phpunit/phpunit": "~6.0",
"pimple/pimple": "~3.0"
},
"suggest": {
Expand Down
3 changes: 2 additions & 1 deletion tests/CsrfErrorResponseMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
use Chubbyphp\Csrf\CsrfTokenGeneratorInterface;
use Chubbyphp\Csrf\CsrfErrorResponseMiddleware;
use Chubbyphp\Session\SessionInterface;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Log\LoggerInterface;

/**
* @covers \Chubbyphp\Csrf\CsrfErrorResponseMiddleware
*/
final class CsrfErrorResponseMiddlewareTest extends \PHPUnit_Framework_TestCase
final class CsrfErrorResponseMiddlewareTest extends TestCase
{
public function testInvokeWithGetRequestWithoutNext()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/CsrfMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
use Chubbyphp\Csrf\CsrfMiddleware;
use Chubbyphp\ErrorHandler\HttpException;
use Chubbyphp\Session\SessionInterface;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Log\LoggerInterface;

/**
* @covers \Chubbyphp\Csrf\CsrfMiddleware
*/
final class CsrfMiddlewareTest extends \PHPUnit_Framework_TestCase
final class CsrfMiddlewareTest extends TestCase
{
public function testInvokeWithGetRequestWithoutNext()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/CsrfProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
use Chubbyphp\Csrf\CsrfTokenGeneratorInterface;
use Chubbyphp\ErrorHandler\HttpException;
use Chubbyphp\Session\SessionInterface;
use PHPUnit\Framework\TestCase;
use Pimple\Container;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;

/**
* @covers \Chubbyphp\Csrf\CsrfProvider
*/
final class CsrfProviderTest extends \PHPUnit_Framework_TestCase
final class CsrfProviderTest extends TestCase
{
public function testRegister()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/CsrfTokenGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Chubbyphp\Tests\Csrf;

use Chubbyphp\Csrf\CsrfTokenGenerator;
use PHPUnit\Framework\TestCase;

/**
* @covers \Chubbyphp\Csrf\CsrfTokenGenerator
*/
final class CsrfTokenGeneratorTest extends \PHPUnit_Framework_TestCase
final class CsrfTokenGeneratorTest extends TestCase
{
public function testGenerate()
{
Expand Down

0 comments on commit 2c7f8e6

Please sign in to comment.