mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Phpunit things
This commit is contained in:
parent
66d9201a61
commit
4666fdced5
@ -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
|
||||
|
@ -15,7 +15,7 @@
|
||||
"ext-tokenizer": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "5.*",
|
||||
"phpunit/phpunit": "<6.0",
|
||||
"satooshi/php-coveralls": "*"
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -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');
|
||||
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');
|
||||
}
|
Loading…
Reference in New Issue
Block a user