Skip to content

Commit 7732e2b

Browse files
committed
bump php, phpunit + fix tests
1 parent 521f9ac commit 7732e2b

25 files changed

+1258
-591
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
data
33
/vendor/
44
public/assets/vendor/
5+
.phpunit.result.cache

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
language: php
22

33
php:
4-
- 5.6
5-
- 7.0
64
- 7.1
75
- 7.2
6+
- 7.3
7+
- 7.4
8+
- nightly
89

910
install:
1011
- composer self-update
@@ -15,8 +16,8 @@ before_script:
1516

1617
script:
1718
- ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
18-
- ./vendor/bin/phpcs --standard=PSR2 ./src/
19-
- ./vendor/bin/phpcs --standard=PSR2 ./test/
19+
- ./vendor/bin/phpcs --standard=PSR12 ./src/
20+
- ./vendor/bin/phpcs --standard=PSR12 ./test/
2021

2122
after_script:
2223
- bash <(curl -s https://codecov.io/bash)

composer.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
}
1010
],
1111
"require" : {
12-
"php" : ">=5.6",
13-
"league/commonmark": "^0.13",
12+
"php" : ">=7.1",
13+
"league/commonmark": "^1.5.6",
1414
"kadet/keylighter": "^0.8.3",
1515
"kevinlebrun/colors.php": "^1.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^5.7",
19-
"squizlabs/php_codesniffer": "~2.0"
18+
"phpunit/phpunit": "^8.0 | ^9.0",
19+
"squizlabs/php_codesniffer": "^3.0"
2020
},
2121
"autoload" : {
2222
"psr-4" : {
@@ -25,5 +25,16 @@
2525
},
2626
"autoload-dev": {
2727
"psr-4": { "AydinHassan\\CliMdRendererTest\\": "test/" }
28+
},
29+
"scripts" : {
30+
"cs" : [
31+
"phpcs src --standard=PSR12 --encoding=UTF-8",
32+
"phpcs test --standard=PSR12 --encoding=UTF-8"
33+
],
34+
"cs-fix" : [
35+
"phpcbf src --standard=PSR12 --encoding=UTF-8",
36+
"phpcbf test --standard=PSR12 --encoding=UTF-8"
37+
],
38+
"static": "phpstan --ansi analyse --level max src"
2839
}
2940
}

0 commit comments

Comments
 (0)