phpunit-docker icon indicating copy to clipboard operation
phpunit-docker copied to clipboard

Latest breaks since the release of PHPUnit 8

Open yourpropertyexpert opened this issue 6 years ago • 2 comments

I'm pretty sure it's because PHPUnit 8 requires PHP 7.2 or later???

yourpropertyexpert avatar Apr 11 '19 14:04 yourpropertyexpert

+1

jbouzekri avatar Apr 13 '19 11:04 jbouzekri

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 :-)

yourpropertyexpert avatar Apr 15 '19 10:04 yourpropertyexpert