phpunit-docker
phpunit-docker copied to clipboard
Latest breaks since the release of PHPUnit 8
I'm pretty sure it's because PHPUnit 8 requires PHP 7.2 or later???
+1
As a temporary workaround, I've created docker image at yourpropertyexpert/myphpunit:first
Dockerfile
FROM thecodingmachine/php:7.2-v2-apache-node8
COPY . /var/www/html/ RUN ls RUN composer install
Composer.json { "name": "werarewe/fullsuite", "description": "Use this composer for the full repo for drone testing", "type": "project", "authors": [ { "name": "Mark Harrison", "email": "[email protected]" } ], "require": {}, "require-dev": { "phpunit/phpunit": "^8" } }
It's not great for several reasons:
- to run PHPUnit from within a CI, I have to call it explicitly from /var/www/html/vendor/bin/phpunit
- it builds from a MUCH fuller PHP instance than I'd like, and which I've not reviewed in any detail... but was the first that I could that actually supported PHP7.2
However, it works :-)