Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit e27d239

Browse files
authored
Merge pull request #35 from tighten/jtb-php-8
Add PHP 8 support
2 parents f4f5b88 + 18af9c0 commit e27d239

File tree

3 files changed

+19
-28
lines changed

3 files changed

+19
-28
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
php: [7.4, 7.3]
15+
php: [8.0, 7.4, 7.3]
1616
laravel: [8.*, 7.*, 6.*]
1717
dependency-version: [prefer-lowest, prefer-stable]
1818
include:

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.1.3",
25+
"php": "^7.1.3|^8.0",
2626
"illuminate/config": "~5.6|~5.7|~5.8|~6.0|~7.0|~8.0",
2727
"illuminate/console": "~5.6|~5.7|~5.8|~6.0|~7.0|~8.0",
2828
"illuminate/log": "~5.6|~5.7|~5.8|~6.0|~7.0|~8.0",
2929
"illuminate/support": "~5.6|~5.7|~5.8|~6.0|~7.0|~8.0"
3030
},
3131
"require-dev": {
32-
"fzaninotto/faker": "^1.8",
32+
"fakerphp/faker": "^1.9.1",
3333
"laravel/legacy-factories": "^1.0.4",
34-
"mockery/mockery": "^1.0.0",
34+
"mockery/mockery": "^1.3.2",
3535
"orchestra/testbench": "~3.0|~4.0|~5.0|~6.0",
36-
"phpunit/phpunit": "~8.0"
36+
"phpunit/phpunit": "~9.3"
3737
},
3838
"autoload": {
3939
"psr-4": {

phpunit.xml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
>
12-
<filter>
13-
<whitelist addUncoveredFilesFromWhitelist="false">
14-
<directory suffix=".php">./src</directory>
15-
<exclude>
16-
<file>./src/QuicksandServiceProvider.php</file>
17-
</exclude>
18-
</whitelist>
19-
</filter>
20-
<testsuites>
21-
<testsuite name="Package Test Suite">
22-
<directory suffix="Test.php">./tests/</directory>
23-
</testsuite>
24-
</testsuites>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage includeUncoveredFiles="false">
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
<exclude>
8+
<file>./src/QuicksandServiceProvider.php</file>
9+
</exclude>
10+
</coverage>
11+
<testsuites>
12+
<testsuite name="Package Test Suite">
13+
<directory suffix="Test.php">./tests/</directory>
14+
</testsuite>
15+
</testsuites>
2516
</phpunit>

0 commit comments

Comments
 (0)