@@ -496,7 +496,7 @@ Once released, this project will follow [SemVer](https://semver.org/).
496
496
At the moment, this will install the latest development version:
497
497
498
498
``` bash
499
- $ composer require clue/redis-react:^3@dev
499
+ composer require clue/redis-react:^3@dev
500
500
```
501
501
502
502
See 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
510
510
support a wider range of PHP versions like this:
511
511
512
512
``` bash
513
- $ composer require " clue/redis-react:^3@dev || ^2"
513
+ composer require " clue/redis-react:^3@dev || ^2"
514
514
```
515
515
516
516
## Tests
@@ -519,13 +519,21 @@ To run the test suite, you first need to clone this repo and then install all
519
519
dependencies [ through Composer] ( https://getcomposer.org/ ) :
520
520
521
521
``` bash
522
- $ composer install
522
+ composer install
523
523
```
524
524
525
525
To run the test suite, go to the project root and run:
526
526
527
527
``` 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
529
537
```
530
538
531
539
The test suite contains both unit tests and functional integration tests.
@@ -535,14 +543,14 @@ and will be skipped by default.
535
543
If you don't have access to a running Redis server, you can also use a temporary ` Redis ` Docker image:
536
544
537
545
``` bash
538
- $ docker run --net=host redis
546
+ docker run --net=host redis
539
547
```
540
548
541
549
To now run the functional tests, you need to supply * your* login
542
550
details in an environment variable like this:
543
551
544
552
``` bash
545
- $ REDIS_URI=localhost:6379 vendor/bin/phpunit
553
+ REDIS_URI=localhost:6379 vendor/bin/phpunit
546
554
```
547
555
548
556
## License
0 commit comments