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
|
- 7.1
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- composer update --dev --quiet
|
- composer global require satooshi/php-coveralls
|
||||||
|
# - composer update --dev --quiet
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- phpunit
|
- phpunit
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- php vendor/bin/coveralls
|
- coveralls
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
"ext-tokenizer": "*"
|
"ext-tokenizer": "*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "5.*",
|
"phpunit/phpunit": "<6.0",
|
||||||
"satooshi/php-coveralls": "*"
|
"satooshi/php-coveralls": "*"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -10,3 +10,7 @@ require_once __DIR__ . "/TestCase.php";
|
|||||||
require_once __DIR__ . "/tools.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