@@ -496,7 +496,7 @@ Once released, this project will follow [SemVer](https://semver.org/).
496496At the moment, this will install the latest development version:
497497
498498``` bash
499- $ composer require clue/redis-react:^3@dev
499+ composer require clue/redis-react:^3@dev
500500```
501501
502502See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
@@ -510,7 +510,7 @@ smooth upgrade path. You may target multiple versions at the same time to
510510support a wider range of PHP versions like this:
511511
512512``` bash
513- $ composer require " clue/redis-react:^3@dev || ^2"
513+ composer require " clue/redis-react:^3@dev || ^2"
514514```
515515
516516## Tests
@@ -519,13 +519,21 @@ To run the test suite, you first need to clone this repo and then install all
519519dependencies [ through Composer] ( https://getcomposer.org/ ) :
520520
521521``` bash
522- $ composer install
522+ composer install
523523```
524524
525525To run the test suite, go to the project root and run:
526526
527527``` bash
528- $ vendor/bin/phpunit
528+ vendor/bin/phpunit
529+ ```
530+
531+ The test suite is set up to always ensure 100% code coverage across all
532+ supported environments. If you have the Xdebug extension installed, you can also
533+ generate a code coverage report locally like this:
534+
535+ ``` bash
536+ XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text
529537```
530538
531539The test suite contains both unit tests and functional integration tests.
@@ -535,14 +543,14 @@ and will be skipped by default.
535543If you don't have access to a running Redis server, you can also use a temporary ` Redis ` Docker image:
536544
537545``` bash
538- $ docker run --net=host redis
546+ docker run --net=host redis
539547```
540548
541549To now run the functional tests, you need to supply * your* login
542550details in an environment variable like this:
543551
544552``` bash
545- $ REDIS_URI=localhost:6379 vendor/bin/phpunit
553+ REDIS_URI=localhost:6379 vendor/bin/phpunit
546554```
547555
548556## License
0 commit comments