Skip to content

Commit

Permalink
Updated to PHPUnit 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robiningelbrecht committed Apr 24, 2023
1 parent 0b6e70e commit e83733d
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 134 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,33 +74,31 @@ Navigate to your `phpunit.xml.dist` file and add following config to set default
Just run your testsuite like you normally would, but be sure to add `--no-output`* as an argument.

```bash
vendor/bin/phpunit --no-ouput
vendor/bin/phpunit
```

*<sub>We'll need this until https://github.com/sebastianbergmann/phpunit/issues/5168 lands and gets released.</sub>

Prettify the method names

```bash
vendor/bin/phpunit --no-output -d --prettify-method-names
vendor/bin/phpunit -d --prettify-method-names
```

Use compact mode

```bash
vendor/bin/phpunit --no-output -d --compact
vendor/bin/phpunit -d --compact
```

Display Chuck Norris quote

```bash
vendor/bin/phpunit --no-output -d --display-quote
vendor/bin/phpunit -d --display-quote
```

Combine multiple options

```bash
vendor/bin/phpunit --configuration=tests/phpunit.test.xml --no-output -d --compact -d --display-quote
vendor/bin/phpunit --configuration=tests/phpunit.test.xml -d --compact -d --display-quote
```

<p align="center">
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
],
"require": {
"php": "^8.1 || ^8.2",
"phpunit/phpunit": "^10",
"nunomaduro/termwind": "^1.15"
"nunomaduro/termwind": "^1.15",
"phpunit/phpunit": "^10.1"
},
"autoload": {
"psr-4": {
Expand All @@ -41,4 +41,4 @@
"lint:fix": " ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php",
"phpunit:test": "vendor/bin/phpunit --configuration=tests/phpunit.test.xml --no-output"
}
}
}
Loading

0 comments on commit e83733d

Please sign in to comment.