Skip to content

Commit 4c6b8e1

Browse files
carusogabrieltonicospinelli
authored andcommitted
Updated to PHPUnit 6 (#34)
For a future release of this package, I've already updated the PHPUnit for ^6.4. Dropped support to PHP 5.6 and HHVM, as PHPUnit 6.0 requires PHP 7.0.
1 parent f2ca728 commit 4c6b8e1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ language: php
22
dist: trusty
33

44
php:
5-
- 5.6
65
- 7.0
7-
- hhvm
86

97
before_script:
108
- "composer self-update"

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"description": "Provides Brazilian Documents",
44
"type": "library",
55
"require": {
6-
"php": "^5.6 || ^7.0"
6+
"php": "^7.0"
77
},
88
"require-dev": {
9-
"phpunit/phpunit": "^5.5",
9+
"phpunit/phpunit": "^6.4",
1010
"codacy/coverage": "^1.0"
1111
},
1212
"license": "MIT",

tests/DigitCalculatorTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
namespace Brazanation\Documents\Tests;
44

55
use Brazanation\Documents\DigitCalculator;
6+
use PHPUnit\Framework\TestCase;
67

7-
class DigitCalculatorTest extends \PHPUnit_Framework_TestCase
8+
class DigitCalculatorTest extends TestCase
89
{
910
/**
1011
* @param string $number

tests/DocumentTestCase.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use Brazanation\Documents\AbstractDocument;
66
use Brazanation\Documents\Exception\InvalidDocument;
7+
use PHPUnit\Framework\TestCase;
78

8-
abstract class DocumentTestCase extends \PHPUnit_Framework_TestCase
9+
abstract class DocumentTestCase extends TestCase
910
{
1011
/**
1112
* @param string $number

0 commit comments

Comments
 (0)