Skip to content

Commit

Permalink
spatie#84 Require php7.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed May 2, 2020
1 parent 7486d85 commit c983995
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: php

php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly

env:
matrix:
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
}
],
"require": {
"php": "^7.0"
"php": "^7.2 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"spatie/phpunit-snapshot-assertions": "^1.0"
"phpunit/phpunit": "^8.5 || 9.0",
"spatie/phpunit-snapshot-assertions": "^2.1"
},
"autoload": {
"psr-4": {
Expand All @@ -33,7 +33,8 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit"
"test": "vendor/bin/phpunit",
"snapshots:update": "vendor/bin/phpunit -d --update-snapshots"
},
"config": {
"sort-packages": true
Expand Down
22 changes: 8 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
convertWarningsToExceptions="true">
<testsuites>
<testsuite name="Spatie Test Suite">
<testsuite name="unit">
<directory>tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">src/</directory>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>

0 comments on commit c983995

Please sign in to comment.