Skip to content

Commit bcb6d70

Browse files
committed
Laravel 8 support
1 parent e581647 commit bcb6d70

File tree

4 files changed

+29
-35
lines changed

4 files changed

+29
-35
lines changed

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ matrix:
1818

1919
- php: 7.3
2020
env: LARAVEL_VERSION=~6.0 TESTBENCH_VERSION=~4.0 PHPUNIT_VERSION=~8.0
21+
- php: 7.3
22+
env: LARAVEL_VERSION=~7.0 TESTBENCH_VERSION=~5.0 PHPUNIT_VERSION=~8.0
2123
- php: 7.3
2224
env: LARAVEL_VERSION=~7.0 TESTBENCH_VERSION=~5.0 PHPUNIT_VERSION=~9.0
25+
- php: 7.3
26+
env: LARAVEL_VERSION=~8.0 TESTBENCH_VERSION=~6.0 PHPUNIT_VERSION=~9.0
2327

2428
- php: 7.4
2529
env: LARAVEL_VERSION=~6.0 TESTBENCH_VERSION=~4.0 PHPUNIT_VERSION=~8.0
2630
- php: 7.4
2731
env: LARAVEL_VERSION=~7.0 TESTBENCH_VERSION=~5.0 PHPUNIT_VERSION=~9.0
32+
- php: 7.4
33+
env: LARAVEL_VERSION=~8.0 TESTBENCH_VERSION=~6.0 PHPUNIT_VERSION=~9.0
2834

2935
before_install:
3036
- travis_retry composer self-update
@@ -34,7 +40,6 @@ before_install:
3440
- composer global require hirak/prestissimo --update-no-dev
3541

3642
install:
37-
- composer require "illuminate/http:${LARAVEL_VERSION}" --no-update --no-interaction --prefer-dist
3843
- composer require "illuminate/contracts:${LARAVEL_VERSION}" --no-update --no-interaction --prefer-dist
3944
- composer require "illuminate/support:${LARAVEL_VERSION}" --no-update --no-interaction --prefer-dist
4045
- composer require "orchestra/testbench:${TESTBENCH_VERSION}" --no-update --no-interaction --prefer-dist

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ Custom Laravel validation rule for checking ZIP file content.
1616

1717
## Requirements
1818

19-
- Laravel **^6.0** or **^7.0**
19+
- Laravel **6** or higher
2020
- PHP **7.2** or higher with `zip` extension enabled
2121

22-
Use version `1.5.0` for Laravel 5.8 support.
23-
2422
## Installation
2523

2624
You can install the package via composer:

composer.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@
2121
"require": {
2222
"php": "^7.2",
2323
"ext-zip": "*",
24-
"illuminate/contracts": "^6.0|^7.0",
25-
"illuminate/http": "^6.0|^7.0",
26-
"illuminate/support": "^6.0|^7.0"
24+
"illuminate/contracts": "^6.0|^7.0|^8.0",
25+
"illuminate/support": "^6.0|^7.0|^8.0"
2726
},
2827
"require-dev": {
29-
"orchestra/testbench": "^4.0|^5.0",
28+
"orchestra/testbench": "^4.0|^5.0|^6.0",
3029
"phpunit/phpunit": "^8.0|^9.0"
3130
},
3231
"autoload": {

phpunit.xml.dist

+19-27
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Test Suite">
14-
<directory>tests</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage"/>
26-
<log type="coverage-text" target="build/coverage.txt"/>
27-
<log type="coverage-clover" target="build/logs/clover.xml"/>
28-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
<report>
8+
<clover outputFile="build/logs/clover.xml"/>
9+
<html outputDirectory="build/coverage"/>
10+
<text outputFile="build/coverage.txt"/>
11+
</report>
12+
</coverage>
13+
<testsuites>
14+
<testsuite name="Test Suite">
15+
<directory>tests</directory>
16+
</testsuite>
17+
</testsuites>
18+
<logging>
19+
<junit outputFile="build/report.junit.xml"/>
20+
</logging>
2921
</phpunit>

0 commit comments

Comments
 (0)