Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
feat: bump PHPUnit to min 6 to have compatible tests with PHP 7.2, too
Browse files Browse the repository at this point in the history
  • Loading branch information
haeber committed Jun 6, 2018
1 parent 4b58b99 commit 6b49541
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm

before_script:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
}
],
"require": {
"php": ">=5.3"
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "^6.0"
},
"autoload": {
"psr-4": { "Jobcloud\\ClosureValidator\\": "src/" }
Expand Down
3 changes: 2 additions & 1 deletion tests/DiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Jobcloud\ClosureValidator\Diff;
use Jobcloud\ClosureValidator\Parameter;
use PHPUnit\Framework\TestCase;

class DiffTest extends \PHPUnit_Framework_TestCase
class DiffTest extends TestCase
{
public function testIdentical()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/ParameterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Jobcloud\Tests\ClosureValidator;

use Jobcloud\ClosureValidator\Parameter;
use PHPUnit\Framework\TestCase;

class ParameterTest extends \PHPUnit_Framework_TestCase
class ParameterTest extends TestCase
{
public function testWithoutType()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/SignatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Jobcloud\ClosureValidator\Parameter;
use Jobcloud\ClosureValidator\Signature;
use PHPUnit\Framework\TestCase;

class SignatureTest extends \PHPUnit_Framework_TestCase
class SignatureTest extends TestCase
{
public function testWithoutParameter()
{
Expand Down
7 changes: 6 additions & 1 deletion tests/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
use Jobcloud\ClosureValidator\Parameter;
use Jobcloud\ClosureValidator\Signature;
use Jobcloud\ClosureValidator\Validator;
use PHPUnit\Framework\TestCase;

class ValidatorTest extends \PHPUnit_Framework_TestCase
class ValidatorTest extends TestCase
{
public function testGetSignatureFromClosure()
{
Expand Down Expand Up @@ -124,6 +125,10 @@ public function testCompareWithAdditionalParameter()
$this->assertCount(2, $diff->getAdditionalParameters());
}

/**
* @return void
* @doesNotPerformAssertions
*/
public function testValidOrException()
{
$useParameter = 'test';
Expand Down

0 comments on commit 6b49541

Please sign in to comment.