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: ...@@ -10,6 +10,7 @@ cache:
- "$HOME/.composer/cache" - "$HOME/.composer/cache"
php: php:
- 5.5
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1 - 7.1
...@@ -44,5 +45,4 @@ script: ...@@ -44,5 +45,4 @@ script:
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ] ; then composer test-cov; else composer test; fi - if [ "$TRAVIS_PHP_VERSION" == "7.1" ] ; then composer test-cov; else composer test; fi
after_script: after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then - if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then composer test-cov-upload; fi
wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
...@@ -18,16 +18,16 @@ ...@@ -18,16 +18,16 @@
} }
], ],
"require": { "require": {
"php": ">=5.6", "php": "^5.5|^7.0",
"ext-pdo": "*", "ext-pdo": "*",
"ext-curl": "*", "ext-curl": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"monolog/monolog": "^1.19", "monolog/monolog": "^1.22",
"guzzlehttp/guzzle": "~6.0" "guzzlehttp/guzzle": "^6.2"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^5.7", "phpunit/phpunit": "^4.8|^5.7|^6.1",
"squizlabs/php_codesniffer": "~2.5" "squizlabs/php_codesniffer": "^2.8"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
...@@ -43,11 +43,14 @@ ...@@ -43,11 +43,14 @@
"check-code": [ "check-code": [
"./vendor/bin/phpcs --standard=phpcs.xml -snp --encoding=utf-8 src/ --report-width=150" "./vendor/bin/phpcs --standard=phpcs.xml -snp --encoding=utf-8 src/ --report-width=150"
], ],
"test": [
"./vendor/bin/phpunit"
],
"test-cov": [ "test-cov": [
"./vendor/bin/phpunit --coverage-clover build/logs/clover.xml" "./vendor/bin/phpunit --coverage-clover build/logs/clover.xml"
], ],
"test": [ "test-cov-upload": [
"./vendor/bin/phpunit" "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 @@ ...@@ -10,7 +10,7 @@
namespace Longman\TelegramBot\Tests\Unit; namespace Longman\TelegramBot\Tests\Unit;
class TestCase extends \PHPUnit_Framework_TestCase class TestCase extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var string * @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