Skip to content

Commit 5bc3b6d

Browse files
Merge pull request #15 from bayareawebpro/dev
Laravel 10.x Compatibility
2 parents e1f3e9f + 4345c41 commit 5bc3b6d

File tree

4 files changed

+31
-35
lines changed

4 files changed

+31
-35
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: ci
2+
env:
3+
XDEBUG_MODE: 'coverage'
24
on:
35
push:
46
branches:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/clover.xml
55
/build
66
/vendor
7+
.phpunit.cache/test-results

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
],
1111
"require": {
1212
"php": "^7.2|^8.0",
13-
"illuminate/support": "^6.0|^7.0|^8.0|^9.0"
13+
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0"
1414
},
1515
"require-dev": {
16-
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
17-
"phpunit/phpunit": "^8.0|^9.0",
18-
"nunomaduro/larastan": "^0.6|^1.0"
16+
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0",
17+
"phpunit/phpunit": "^8.0|^9.0|^10.0",
18+
"nunomaduro/larastan": "^0.6|^1.0|^2.0"
1919
},
2020
"autoload": {
2121
"psr-4": {

phpunit.xml

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
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="Unit">
14-
<directory suffix="Test.php">./tests/Unit</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist addUncoveredFilesFromWhitelist="false">
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="junit" target="build/report.junit.xml"/>
24-
<log type="coverage-clover" target="build/clover.xml"/>
25-
</logging>
26-
<php>
27-
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsm1"/>
28-
<env name="APP_ENV" value="testing"/>
29-
<env name="APP_URL" value="http://localhost"/>
30-
<env name="DB_DATABASE" value=":memory:"/>
31-
<env name="DB_CONNECTION" value="sqlite"/>
32-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<coverage includeUncoveredFiles="false">
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
<report>
8+
<clover outputFile="build/clover.xml"/>
9+
</report>
10+
</coverage>
11+
<testsuites>
12+
<testsuite name="Unit">
13+
<directory suffix="Test.php">./tests/Unit</directory>
14+
</testsuite>
15+
</testsuites>
16+
<logging>
17+
<junit outputFile="build/report.junit.xml"/>
18+
</logging>
19+
<php>
20+
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsm1"/>
21+
<env name="APP_ENV" value="testing"/>
22+
<env name="APP_URL" value="http://localhost"/>
23+
<env name="DB_DATABASE" value=":memory:"/>
24+
<env name="DB_CONNECTION" value="sqlite"/>
25+
</php>
3326
</phpunit>

0 commit comments

Comments
 (0)