📦 Docker image to use PHPUnit as CLI.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
4.6.10
4.6.6
4.7.7 Add xdebug support Jul 26, 2015
4.8.16
4.8.3 Add 4.8.x Aug 12, 2015
4.8.4
4.8.5
5.0.0
5.0.1 Add exif extension (old version too) Feb 20, 2017
5.0.10 Add exif extension (old version too) Feb 20, 2017
5.0.2 Add exif extension (old version too) Feb 20, 2017
5.0.3 Add exif extension (old version too) Feb 20, 2017
5.0.4 Add exif extension (old version too) Feb 20, 2017
5.0.5 Add exif extension (old version too) Feb 20, 2017
5.0.6 Add exif extension (old version too) Feb 20, 2017
5.0.7
5.0.8
5.0.9
5.1.0
5.3.0 Add exif extension (old version too) Feb 20, 2017
5.3.1
5.3.2
5.3.3 Add exif extension (old version too) Feb 20, 2017
5.3.4
5.4.0
5.4.1 Add exif extension (old version too) Feb 20, 2017
5.4.2
5.4.3
5.4.4
5.4.5
5.4.6 Fix #56 #64 #63 Jun 5, 2017
5.4.7
5.5.0
5.7.0
5.7.12 Fix #56 #64 #63 Jun 5, 2017
5.7.5
6.0.6
6.5.2
6.5.3
7.4.0
master
scripts
templates Fix #77 May 15, 2018
test
.gitignore
.ruby-version Improve template system and docs Jun 2, 2016
Gemfile Improve template system and docs Jun 2, 2016
LICENSE
Makefile
README.md
Rakefile Update version selector Oct 23, 2015
settings.yml

README.md

PHPUnit Docker Container.

Docker pull Docker pull Github issues License

Docker container to install and run PHPUnit.

Features

Installation / Usage

  1. Install the phpunit/phpunit container:

    $ docker pull phpunit/phpunit
  2. Create a phpunit.xml defining your tests suites.

    ...
  3. Run PHPUnit through the PHPUnit container:

    $ docker run -v $(pwd):/app --rm phpunit/phpunit run

    or in shorthand add

    $ sudo sh -c "printf \"#!/bin/sh
    export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
    docker run -v $(pwd):/app --rm phpunit/phpunit run \\\$@
    \" > /usr/local/bin/phpunit"
    $ sudo chmod +x /usr/local/bin/phpunit

    and then from host machine just

    $ phpunit --version

To run, test and develop the PHPUnit Dockerfile itself, you must use the source directly:

  1. Download the source:

    $ git clone https://github.com/JulienBreux/phpunit-docker.git
  2. Switch to the phpunit-docker directory:

    $ cd phpunit-docker
  3. Build the container:

    $ docker build -t phpunit/phpunit .
  4. Test running the container:

    $ docker run phpunit/phpunit --help

How to generate?

Install associate GEMs

$ gem install bundle
$ bundle

Generate a new version

version=6.5.3 rake version:add

Remove a version

An error in your generation?

version=6.5.3 rake version:remove