Skip to content

Commit 2c30386

Browse files
committed
Tweak README
1 parent 91d3d75 commit 2c30386

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,16 @@ docker run -d --net=tarantool-php -p 3301:3301 --name=tarantool \
302302
And then run both unit and integration tests:
303303

304304
```bash
305-
docker run --rm --net=tarantool-php -v `pwd`:/queue -w /queue queue
305+
docker run --rm --net=tarantool-php -v $(pwd):/queue -w /queue queue
306306
```
307307

308-
To run only integration or unit tests, set the `PHPUNIT_OPTS` environment variable
309-
to either `--testsuite integration` or `--testsuite unit` respectively, e.g.:
308+
The library uses [PHPUnit](https://phpunit.de/) under the hood, and if needed,
309+
you can pass additional arguments and options to the `phpunit` command.
310+
For example, to run only unit tests, execute:
310311

311312
```bash
312-
docker run --rm --net=tarantool-php -v `pwd`:/queue -w /queue \
313-
-e PHPUNIT_OPTS='--testsuite unit' queue
313+
docker run --rm --net=tarantool-php -v $(pwd):/queue -w /queue \
314+
vendor/bin/phpunit --testsuite=unit
314315
```
315316

316317

0 commit comments

Comments
 (0)