Skip to content

Commit e83733d

Browse files
Updated to PHPUnit 10.1
1 parent 0b6e70e commit e83733d

File tree

6 files changed

+108
-134
lines changed

6 files changed

+108
-134
lines changed

README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -74,33 +74,31 @@ Navigate to your `phpunit.xml.dist` file and add following config to set default
7474
Just run your testsuite like you normally would, but be sure to add `--no-output`* as an argument.
7575

7676
```bash
77-
vendor/bin/phpunit --no-ouput
77+
vendor/bin/phpunit
7878
```
7979

80-
*<sub>We'll need this until https://github.com/sebastianbergmann/phpunit/issues/5168 lands and gets released.</sub>
81-
8280
Prettify the method names
8381

8482
```bash
85-
vendor/bin/phpunit --no-output -d --prettify-method-names
83+
vendor/bin/phpunit -d --prettify-method-names
8684
```
8785

8886
Use compact mode
8987

9088
```bash
91-
vendor/bin/phpunit --no-output -d --compact
89+
vendor/bin/phpunit -d --compact
9290
```
9391

9492
Display Chuck Norris quote
9593

9694
```bash
97-
vendor/bin/phpunit --no-output -d --display-quote
95+
vendor/bin/phpunit -d --display-quote
9896
```
9997

10098
Combine multiple options
10199

102100
```bash
103-
vendor/bin/phpunit --configuration=tests/phpunit.test.xml --no-output -d --compact -d --display-quote
101+
vendor/bin/phpunit --configuration=tests/phpunit.test.xml -d --compact -d --display-quote
104102
```
105103

106104
<p align="center">

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
],
1717
"require": {
1818
"php": "^8.1 || ^8.2",
19-
"phpunit/phpunit": "^10",
20-
"nunomaduro/termwind": "^1.15"
19+
"nunomaduro/termwind": "^1.15",
20+
"phpunit/phpunit": "^10.1"
2121
},
2222
"autoload": {
2323
"psr-4": {
@@ -41,4 +41,4 @@
4141
"lint:fix": " ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php",
4242
"phpunit:test": "vendor/bin/phpunit --configuration=tests/phpunit.test.xml --no-output"
4343
}
44-
}
44+
}

0 commit comments

Comments
 (0)