Skip to content

Commit 81d1f7a

Browse files
authored
Merge pull request #15 from php-casbin/develop
upgrade to PHP 8.0 and PHP-Casbin 4.0
2 parents 6ec2bd6 + 3db7f98 commit 81d1f7a

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: true
2525
matrix:
26-
php: [7.3, 7.4, 8.0, 8.1, 8.2]
26+
php: [8.1, 8.2, 8.3, 8.4]
2727
stability: [prefer-stable]
2828

2929
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
],
1111
"license": "Apache-2.0",
1212
"require": {
13-
"php": ">=7.2.0",
14-
"cakephp/cakephp": "~4.0|~5.0",
15-
"casbin/casbin": "~3.1"
13+
"php": ">=8.1",
14+
"cakephp/cakephp": "~5.0",
15+
"casbin/casbin": "~4.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "~8.5.0 || ^9.3"
18+
"phpunit/phpunit": "^10.1"
1919
},
2020
"autoload": {
2121
"psr-4": {

phpunit.xml.dist

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
colors="true"
4-
processIsolation="false"
5-
stopOnFailure="false"
6-
bootstrap="vendor/autoload.php"
7-
>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
processIsolation="false"
7+
stopOnFailure="false"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
89

910
<!-- Add any additional test suites you want to run here -->
1011
<testsuites>
@@ -13,15 +14,21 @@
1314
</testsuite>
1415
</testsuites>
1516

17+
<coverage includeUncoveredFiles="true"
18+
pathCoverage="false"
19+
ignoreDeprecatedCodeUnits="true"
20+
disableCodeCoverageIgnore="true">
21+
<report>
22+
<clover outputFile="build/logs/clover.xml"/>
23+
<html outputDirectory="build/html" lowUpperBound="50" highLowerBound="90"/>
24+
</report>
25+
</coverage>
26+
1627
<!-- Ignore vendor tests in code coverage reports -->
17-
<filter>
18-
<whitelist processUncoveredFilesFromWhitelist="true">
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
<log type="coverage-html" target="build/html"/>
26-
</logging>
28+
<source>
29+
<include>
30+
<directory>./src</directory>
31+
</include>
32+
</source>
33+
2734
</phpunit>

0 commit comments

Comments
 (0)