Re-add PHP 5.5, make use of the most up to date dependencies on higher PHP versions.

parent 488fbc48
......@@ -10,6 +10,7 @@ cache:
- "$HOME/.composer/cache"
php:
- 5.5
- 5.6
- 7.0
- 7.1
......@@ -44,5 +45,4 @@ script:
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ] ; then composer test-cov; else composer test; fi
after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then
wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then composer test-cov-upload; fi
......@@ -18,16 +18,16 @@
}
],
"require": {
"php": ">=5.6",
"php": "^5.5|^7.0",
"ext-pdo": "*",
"ext-curl": "*",
"ext-mbstring": "*",
"monolog/monolog": "^1.19",
"guzzlehttp/guzzle": "~6.0"
"monolog/monolog": "^1.22",
"guzzlehttp/guzzle": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "~2.5"
"phpunit/phpunit": "^4.8|^5.7|^6.1",
"squizlabs/php_codesniffer": "^2.8"
},
"autoload": {
"psr-4": {
......@@ -43,11 +43,14 @@
"check-code": [
"./vendor/bin/phpcs --standard=phpcs.xml -snp --encoding=utf-8 src/ --report-width=150"
],
"test": [
"./vendor/bin/phpunit"
],
"test-cov": [
"./vendor/bin/phpunit --coverage-clover build/logs/clover.xml"
],
"test": [
"./vendor/bin/phpunit"
"test-cov-upload": [
"wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml"
]
}
}
This diff is collapsed.
......@@ -10,7 +10,7 @@
namespace Longman\TelegramBot\Tests\Unit;
class TestCase extends \PHPUnit_Framework_TestCase
class TestCase extends \PHPUnit\Framework\TestCase
{
/**
* @var string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment