Skip to content

Commit 850ce1d

Browse files
committed
update dependencies and test config
1 parent 39391e2 commit 850ce1d

File tree

4 files changed

+57
-19
lines changed

4 files changed

+57
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.idea/
12
/vendor/
23
/composer.phar
34
/composer.lock

.travis.yml

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,40 @@ php:
1010
- 7.0
1111
- 7.1
1212
- 7.2
13+
- 7.3
1314
- nightly
1415

15-
matrix:
16-
fast_finish: true
17-
allow_failures:
18-
- php: nightly
19-
include:
20-
- php: 7.0
21-
env: dependencies=lowest
16+
env:
17+
- COMPOSER_FLAGS="--prefer-lowest"
18+
- COMPOSER_FLAGS=""
19+
20+
stages:
21+
- test
22+
- test with coverage
2223

2324
cache:
2425
directories:
2526
- $HOME/.composer/cache
2627

27-
before_script:
28-
- composer install -n
29-
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi;
28+
before_install:
29+
- phpenv config-rm xdebug.ini || echo "xdebug not available"
30+
- composer self-update
31+
32+
install: travis_retry composer install --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction --no-suggest $COMPOSER_FLAGS -vv
33+
34+
script: vendor/bin/phpunit --colors --columns 117 --no-coverage
35+
36+
jobs:
37+
allow_failures:
38+
- php: 7.3
39+
- php: nightly
40+
include:
41+
- php: nightly
42+
env: COMPOSER_FLAGS="--ignore-platform-reqs"
3043

31-
script:
32-
- vendor/bin/phpunit
44+
- stage: test with coverage
45+
os: linux
46+
php: 7.1
47+
env: COMPOSER_FLAGS=""
48+
before_install: composer self-update
49+
script: vendor/bin/phpunit --colors --coverage-text

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
},
1818
"require": {
1919
"php": "~7.0",
20-
"phpunit/phpunit-mock-objects": "~4.0"
20+
"phpunit/phpunit-mock-objects": "~4.0|~5.0|~6.0"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "~6.4"
23+
"phpunit/phpunit": "~6.4|~7.0"
2424
}
2525
}

phpunit.xml.dist

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<phpunit colors="true"
3-
convertErrorsToExceptions="true"
4-
convertNoticesToExceptions="true"
5-
convertWarningsToExceptions="true"
6-
bootstrap="./vendor/autoload.php">
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
backupGlobals="false"
6+
backupStaticAttributes="false"
7+
beStrictAboutChangesToGlobalState="true"
8+
beStrictAboutCoversAnnotation="false"
9+
beStrictAboutOutputDuringTests="true"
10+
beStrictAboutTestsThatDoNotTestAnything="true"
11+
beStrictAboutTodoAnnotatedTests="true"
12+
failOnWarning="true"
13+
failOnRisky="true"
14+
verbose="false"
15+
bootstrap="vendor/autoload.php"
16+
enforceTimeLimit="false"
17+
colors="true"
18+
convertErrorsToExceptions="true"
19+
convertNoticesToExceptions="true"
20+
convertWarningsToExceptions="true"
21+
>
22+
<php>
23+
<ini name="error_reporting" value="-1"/>
24+
<ini name="memory_limit" value="-1"/>
25+
<ini name="date.timezone" value="UTC"/>
26+
</php>
727

828
<testsuites>
929
<testsuite name="Test suite">

0 commit comments

Comments
 (0)