PROJECT IS CLOSED AND ARCHIVED. NO MAINTAINING WILL BE CONTINUED.
4.7.7
,4.7
,4
,latest
4.7.7-php5
,4.7-php5
,4-php5
,php5
4.7.7-alpine
,4.7-alpine
,4-alpine
,alpine
4.7.7-php5-alpine
,4.7-php5-alpine
,4-php5-alpine
,php5-alpine
Kahlan is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward.
Kahlan allows to stub or monkey patch your code directly like in Ruby or JavaScript without any required PECL-extentions.
Just map your working directory to /app
inside container:
docker run --rm -v $(pwd):/app kahlan/kahlan
If you need to specify some options just do so:
docker run --rm -v $(pwd):/app kahlan/kahlan --help
docker run --rm -v $(pwd):/app kahlan/kahlan --config=my/kahlan-config.php
By default Kahlan is not running under Xdebug or phpdbg, so code coverage doesn't work.
If you require it, just use the wrapper you wish:
docker run --rm -v $(pwd):/app --entrypoint /kahlan-phpdbg kahlan/kahlan
docker run --rm -v $(pwd):/app --entrypoint /kahlan-xdebug kahlan/kahlan
Note, that /kahlan-phpdbg
is not available in PHP5 image versions. See why.
This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It's built on top of official PHP7 image.
This is made to run Kahlan under PHP5, rather than the default PHP7. It might be useful if you application still requires PHP5.
Note, that phpdbg
is not available in this type of images. See why.
This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
This Alpine-based image is made to run Kahlan under PHP5.
Note, that phpdbg
is not available in this type of images. See why.
Kahlan is licensed under MIT license.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
The sources for producing kahlan/kahlan
Docker images are licensed under MIT license too.
We can't notice comments in the DockerHub so don't use them for reporting issue or asking question.
If you have any problems with or questions about this image, please contact us through a GitHub issue.