Public | Automated Build

Last pushed: 4 months ago
Short Description
Custom PHPUnit image with more php extensions
Full Description

PHPUnit Docker Container.

Docker container to install and run PHPUnit.

Customizations over oficial docker image

We have just added a bunch of new php extensions.


Installation / Usage

  1. Install the phpunit/phpunit container:

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

  3. Run PHPUnit through the PHPUnit container:

     $ docker run -v $(pwd):/app --rm frandieguez/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 frandieguez/phpunit run \\\$@
     \" > /usr/local/bin/phpunit"
     $ sudo chmod +x /usr/local/bin/phpunit

    and then from host machine just

     $ phpunit --version
Docker Pull Command