项目作者: lsv

项目描述 :
Alpine + PHP 7.1 + Composer + PHPUnit + Xdebug + hirak/prestissimo
高级语言:
项目地址: git://github.com/lsv/phpunit-image.git
创建时间: 2017-02-04T15:07:56Z
项目社区:https://github.com/lsv/phpunit-image

开源协议:

下载


Docker image with built on Alpine linux including PHP 7.1, composer, PHPUnit 5.7 + xdebug and hirak/prestissimo for faster composer downloads

Usage

In your own Dockerfile

  1. FROM lsv20/phpunit-image
  2. COPY . /app
  3. WORKDIR /app
  4. RUN composer.phar --no-scripts install && \
  5. phpunit

Test your application directly from the commandline

  1. docker build -t lsv20/phpunit-image .

bins

  • composer is in /usr/local/bin/composer.phar, can be called as composer.phar
  • phpunit is installed as global, which are in PATH, can be called as phpunit
Why not PHPUnit 6

The reason why this is not using PHPUnit 6 yet, is because as I use this for symfony 3 projects