Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test suite to be run in PHP5 and PHP7 env #58

Merged
merged 1 commit into from
May 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this actually requires 4.8.35+, not any 4.8.

{
/**
* @param string $file
Expand Down