Skip to content

Commit

Permalink
Fix test suite to be run in PHP5, PHP7 an HHVM env
Browse files Browse the repository at this point in the history
  • Loading branch information
kipit authored and willdurand committed May 22, 2017
1 parent 1a71f98 commit 1f47f39
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
language: php
language: php
sudo: required
dist: trusty
group: edge

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1
- hhvm-3.9
- hhvm-3.18

before_script:
- composer install

script: phpunit --coverage-text
script: ./vendor/bin/phpunit --coverage-text
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "willdurand/email-reply-parser",
"type": "library",
"description": "Port of the cool GitHub's EmailReplyParser library in PHP 5.3",
"description": "Port of the cool GitHub's EmailReplyParser library in PHP",
"keywords": ["email", "reply-parser"],
"license": "MIT",
"authors": [
Expand All @@ -11,7 +11,7 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=5.6.0"
},
"autoload": {
"psr-4": { "EmailReplyParser\\": "src/EmailReplyParser" }
Expand All @@ -23,5 +23,8 @@
"branch-alias": {
"dev-master": "2.5-dev"
}
},
"require-dev": {
"phpunit/phpunit": "^4.8.35|^5.7"
}
}
2 changes: 1 addition & 1 deletion tests/EmailReplyParser/Tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace EmailReplyParser\Tests;

class TestCase extends \PHPUnit_Framework_TestCase
abstract class TestCase extends \PHPUnit\Framework\TestCase
{
/**
* @param string $file
Expand Down

0 comments on commit 1f47f39

Please sign in to comment.