I'm running PHPUnit tests inside the Pipeline and one of the tests is using the iconv ext. to convert for example a german "ä" into "ae". Inside the Pipeline (based on PHP 7.2) this test return always a empty string.
My last try:
image: php:7.2-cli
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get clean
- apt-get update -y
- apt-get install -y locales unzip zlib1g-dev libicu-dev
- printf 'en_US.UTF-8 UTF-8\n' >> /etc/locale.gen
- locale-gen
- dpkg-reconfigure --frontend noninteractive locales
- docker-php-ext-install bcmath
- docker-php-ext-enable bcmath
- docker-php-ext-install intl
- docker-php-ext-enable intl
- docker-php-ext-install mbstring
- docker-php-ext-enable mbstring
- docker-php-ext-install iconv
- docker-php-ext-enable iconv
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- vendor/bin/phpunit
The test script:
echo iconv('UTF-8', 'ASCII//TRANSLIT', 'ÄäÖöÜü');Expected: 'AaOoUu'
Actual: ''