As usual for WorkServerAdapter
implementations,
our test class
extends from
WQ's AbstractWorkServerAdapterTest
,
which performs a series of standardized tests
on our implementation.
Those tests run on an actual Redis instance. To keep things isolated from your system, they are run inside a custom Docker container based on the php:7.1-cli image.
To run all tests,
run
$ make test
.
This will automatically build the mle86/php-wq-redis-test
image
(run $ make test-image
to do so manually)
and delete the container afterwards.
If you want to remove the Docker image afterwards,
run
$ make clean
.