diff --git a/.travis.yml b/.travis.yml index bc37a52..b1cc5eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,10 +9,11 @@ php: - 7.1 before_script: - - composer update --dev --quiet + - composer global require satooshi/php-coveralls +# - composer update --dev --quiet script: - phpunit after_script: - - php vendor/bin/coveralls + - coveralls diff --git a/composer.json b/composer.json index c4ba2f5..0f58654 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "ext-tokenizer": "*" }, "require-dev": { - "phpunit/phpunit": "5.*", + "phpunit/phpunit": "<6.0", "satooshi/php-coveralls": "*" }, "autoload": { diff --git a/tests/autoload.php b/tests/autoload.php index d8b47a4..f812588 100644 --- a/tests/autoload.php +++ b/tests/autoload.php @@ -9,4 +9,8 @@ require_once FENOM_RESOURCES . "/actions.php"; require_once __DIR__ . "/TestCase.php"; require_once __DIR__ . "/tools.php"; -ini_set('date.timezone', 'Europe/Moscow'); \ No newline at end of file +ini_set('date.timezone', 'Europe/Moscow'); + +if(!class_exists('PHPUnit_Framework_TestCase') && class_exists('PHPUnit\Framework\TestCase')) { + class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase'); +} \ No newline at end of file