Skip to content

Commit d4d33c2

Browse files
[4.x] Replace PHPUnit with Pest
1 parent 5e8fdf2 commit d4d33c2

19 files changed

Lines changed: 302 additions & 368 deletions

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"symfony/console": "^6.0 || ^7.0"
4343
},
4444
"require-dev": {
45-
"phpunit/phpunit": "^11.0 || ^12.0",
45+
"pestphp/pest": "^4.3",
4646
"symfony/var-dumper": "^6.0 || ^7.0"
4747
},
4848
"minimum-stability": "stable",
@@ -62,9 +62,13 @@
6262
"dragon-code/codestyler": true,
6363
"ergebnis/composer-normalize": true,
6464
"friendsofphp/php-cs-fixer": true,
65+
"pestphp/pest-plugin": true,
6566
"symfony/thanks": true
6667
},
6768
"preferred-install": "dist",
6869
"sort-packages": true
70+
},
71+
"scripts": {
72+
"test": "vendor/bin/pest"
6973
}
70-
}
74+
}

phpunit.xml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
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-
bootstrap="vendor/autoload.php"
6-
cacheDirectory=".phpunit.cache"
7-
executionOrder="depends,defects"
8-
colors="true"
9-
failOnRisky="true"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
106
>
117
<testsuites>
12-
<testsuite name="default">
13-
<directory>tests</directory>
8+
<testsuite name="Test Suite">
9+
<directory>./tests</directory>
1410
</testsuite>
1511
</testsuites>
1612
<source>

tests/Benchmark/AsArrayTest.php

Lines changed: 0 additions & 55 deletions
This file was deleted.

tests/Benchmark/AsCallbackTest.php

Lines changed: 0 additions & 55 deletions
This file was deleted.

tests/Benchmark/CoverageTest.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/Benchmark/CreateTest.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/Benchmark/FailureTest.php

Lines changed: 0 additions & 69 deletions
This file was deleted.

tests/Benchmark/HardTest.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)