https://github.com/automattic/phpunit-docker
  
  
    Run PHPUnit 7, 8 or 9 tests from a Docker image. 
    https://github.com/automattic/phpunit-docker
  
docker phpunit
        Last synced: 3 months ago 
        JSON representation
    
Run PHPUnit 7, 8 or 9 tests from a Docker image.
- Host: GitHub
- URL: https://github.com/automattic/phpunit-docker
- Owner: Automattic
- License: gpl-2.0
- Created: 2021-06-14T16:02:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-03T17:58:14.000Z (almost 4 years ago)
- Last Synced: 2025-03-23T23:37:19.523Z (7 months ago)
- Topics: docker, phpunit
- Language: Dockerfile
- Homepage:
- Size: 41 KB
- Stars: 3
- Watchers: 5
- Forks: 3
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # PHPUnit image for Docker
This repository contains a Docker image with PHPUnit 7, 8 and 9. They are all based on Alpine 3.12. The three images are build on GitHub Actions and published in GitHub Packages. To use it:
```bash
# PHPUnit 7
docker pull ghcr.io/automattic/phpunit-docker/phpunit:7
# PHPUnit 8
docker pull ghcr.io/automattic/phpunit-docker/phpunit:8
# PHPUnit 9
docker pull ghcr.io/automattic/phpunit-docker/phpunit:9
```
By default (and due to historical reasons), the `latest` version is `7`
```bash
# PHPUnit 7
docker pull ghcr.io/automattic/phpunit-docker/phpunit:latest
```
## Building
The image is automatically built by a GitHub action and published to GitHub Packages. To build it locally, clone this repository and:
```bash
cd phpunit-docker
# PHPUnit 7
docker build . -t phpunit:7 -f 7/Dockerfile
# PHPUnit 8
docker build . -t phpunit:8 -f 8/Dockerfile
# PHPUnit 9
docker build . -t phpunit:9 -f 9/Dockerfile
```