Skip to content

Commit 58d8848

Browse files
authored
Merge pull request #12 from Chris53897/main
feat: bump versions: allow pest > 1
2 parents 4896aa2 + 2e192d4 commit 58d8848

File tree

4 files changed

+29
-44
lines changed

4 files changed

+29
-44
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
php-version: ${{ matrix.php }}
2525
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
26-
coverage: none
26+
coverage: pcov
2727

2828
- name: Setup problem matchers
2929
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.php_cs
33
.php_cs.cache
44
.phpunit.result.cache
5+
.phpunit.cache
56
build
67
composer.lock
78
coverage

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
"php": "^8.0"
2222
},
2323
"require-dev": {
24-
"friendsofphp/php-cs-fixer": "^3.0",
25-
"pestphp/pest": "^1.20",
24+
"friendsofphp/php-cs-fixer": "^3.89.2",
25+
"pestphp/pest": "^1.23.1 || ^2.0 || ^3.0 || ^4.0",
2626
"phpstan/extension-installer": "^1.1",
27-
"phpstan/phpstan-deprecation-rules": "^1.0",
28-
"phpstan/phpstan-phpunit": "^1.0",
29-
"spatie/pest-plugin-snapshots": "^1.1",
30-
"spatie/ray": "^1.28"
27+
"phpstan/phpstan-deprecation-rules": "^1.2.1 || ^2.0",
28+
"phpstan/phpstan-phpunit": "^1.4.2 || ^2.0",
29+
"spatie/pest-plugin-snapshots": "^1.1 || ^2.2.1",
30+
"spatie/ray": "^1.43.1"
3131
},
3232
"autoload": {
3333
"psr-4": {

phpunit.xml.dist

Lines changed: 21 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
executionOrder="random"
15-
failOnWarning="true"
16-
failOnRisky="true"
17-
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
20-
>
21-
<testsuites>
22-
<testsuite name="OhDear Test Suite">
23-
<directory>tests</directory>
24-
</testsuite>
25-
</testsuites>
26-
<coverage>
27-
<include>
28-
<directory suffix=".php">./src</directory>
29-
</include>
30-
<report>
31-
<html outputDirectory="build/coverage"/>
32-
<text outputFile="build/coverage.txt"/>
33-
<clover outputFile="build/logs/clover.xml"/>
34-
</report>
35-
</coverage>
36-
<logging>
37-
<junit outputFile="build/report.junit.xml"/>
38-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="OhDear Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<coverage>
9+
<report>
10+
<html outputDirectory="build/coverage"/>
11+
<text outputFile="build/coverage.txt"/>
12+
<clover outputFile="build/logs/clover.xml"/>
13+
</report>
14+
</coverage>
15+
<logging>
16+
<junit outputFile="build/report.junit.xml"/>
17+
</logging>
18+
<source>
19+
<include>
20+
<directory>./src</directory>
21+
</include>
22+
</source>
3923
</phpunit>

0 commit comments

Comments
 (0)