Skip to content

Commit 4c4ab58

Browse files
committed
Grammar and version compatibility for example
1 parent a88b3d4 commit 4c4ab58

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,20 @@ $ PHPUNIT_SPEEDTRAP=enabled ./vendor/bin/phpunit
186186

187187
symfony/phpunit-bridge allows environment variable `SYMFONY_PHPUNIT_REQUIRE` to define additional dependencies while installing phpunit.
188188

189-
easiest way to set environment variables for the script simple-phpunit is via phpunit.xml.dist:
189+
The easiest way to set environment variables for the script `simple-phpunit` is via phpunit.xml.dist:
190190

191191
phpunit.xml.dist
192192
```xml
193-
<env name="SYMFONY_PHPUNIT_REQUIRE" value="johnkary/phpunit-speedtrap:4"/>
194-
<env name="SYMFONY_PHPUNIT_VERSION" value="8"/>
193+
<phpunit bootstrap="vendor/autoload.php">
194+
<php>
195+
<env name="SYMFONY_PHPUNIT_REQUIRE" value="johnkary/phpunit-speedtrap:^4"/>
196+
<env name="SYMFONY_PHPUNIT_VERSION" value="9"/>
197+
</php>
198+
</phpunit>
195199
```
196200
(add the listener as described above)
197201

198-
if you run `vendor/bin/simple-phpunit` symfony will install phpunit (8) and require phpunit speedtrap (4.x.x)
202+
Using the above example, running `vendor/bin/simple-phpunit` will now install the latest PHPUnit 9 and require the latest phpunit-speedtrap v4.
199203

200204
## Development
201205

0 commit comments

Comments
 (0)