File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -186,16 +186,20 @@ $ PHPUNIT_SPEEDTRAP=enabled ./vendor/bin/phpunit
186
186
187
187
symfony/phpunit-bridge allows environment variable `SYMFONY_PHPUNIT_REQUIRE` to define additional dependencies while installing phpunit.
188
188
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 :
190
190
191
191
phpunit.xml.dist
192
192
` ` ` 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>
195
199
` ` `
196
200
(add the listener as described above)
197
201
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.
199
203
200
204
# # Development
201
205
You can’t perform that action at this time.
0 commit comments