JulienBreux / phpunit-docker

DEPRECATED :package: Docker image to use PHPUnit as CLI.
https://hub.docker.com/r/phpunit/phpunit/
MIT License
47 stars 28 forks source link

Added ctype extension #46

Closed mxkxf closed 7 years ago

mxkxf commented 7 years ago

Hi there,

I'm using the latest phpunit/phpunit image to run some tests for a Laravel app on BitBucket Pipelines, however I get each test fatal error-ing with the following message:

Error: Call to undefined function Illuminate\Support\ctype_lower()

I believe this is due to the ctype extension not being present in these bits of code which is causing the fatal errors I mentioned.

Could this be added to the Dockerfile?

mxkxf commented 7 years ago

I realise this isn't the documented way to create a new version but the commands don't work for me, I get the following:

rake aborted!
phpunit-docker/Rakefile:24: syntax error, unexpected ':', expecting =>
...ckerfile', VERSION, {"version": VERSION})
...

So please free to use this file as the basis for a new version, only difference is this line: https://github.com/JulienBreux/phpunit-docker/pull/46/files#diff-d683e216133650e2fe582614636e93f3R32

LeonB commented 7 years ago

For laravel not only php7-ctype is necessary but also php7-session

JulienBreux commented 7 years ago

Please add that to this two files :