Skip to content

Commit 5d154e0

Browse files
Allow PHPUnit 7 (#149)
1 parent 4b9314e commit 5d154e0

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"symfony/process": "^3.4|^4.0"
3737
},
3838
"require-dev": {
39-
"phpunit/phpunit": "^5.7|^6.5",
39+
"phpunit/phpunit": "^5.7|^6.5|^7.0",
4040
"psr/log": "^1.0"
4141
},
4242
"suggest": {

phpunit.xml.dist

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit
4-
backupGlobals = "false"
5-
backupStaticAttributes = "false"
6-
colors = "true"
7-
convertErrorsToExceptions = "true"
8-
convertNoticesToExceptions = "true"
9-
convertWarningsToExceptions = "true"
10-
processIsolation = "false"
11-
stopOnFailure = "false"
12-
syntaxCheck = "false"
13-
bootstrap = "tests/bootstrap.php" >
14-
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
beStrictAboutTestsThatDoNotTestAnything="true"
5+
beStrictAboutOutputDuringTests="true"
6+
bootstrap="tests/bootstrap.php"
7+
colors="true"
8+
convertErrorsToExceptions="true"
9+
convertNoticesToExceptions="true"
10+
convertWarningsToExceptions="true"
11+
failOnRisky="true"
12+
failOnWarning="true"
13+
processIsolation="false"
14+
stopOnError="false"
15+
stopOnFailure="false"
16+
verbose="true"
17+
>
1518
<testsuites>
1619
<testsuite name="Test Suite">
17-
<directory suffix="Test.php">tests/Gitonomy/Git/Tests</directory>
20+
<directory suffix="Test.php">./tests/Gitonomy/Git/Tests</directory>
1821
</testsuite>
1922
</testsuites>
20-
23+
<filter>
24+
<whitelist processUncoveredFilesFromWhitelist="true">
25+
<directory suffix=".php">./src/Gitonomy/Git</directory>
26+
</whitelist>
27+
</filter>
2128
</phpunit>

0 commit comments

Comments
 (0)