Browse Source

Update php-ext-install test to install both a normal extension and a zend_extension, and verify that they're configured appropriately by docker-php-ext-enable

Tianon Gravi 8 years ago
parent
commit
87bfc05401
1 changed files with 5 additions and 0 deletions
  1. 5 0
      test/tests/php-ext-install/container.sh

+ 5 - 0
test/tests/php-ext-install/container.sh

@@ -3,3 +3,8 @@ set -e
 
 docker-php-ext-install pdo_mysql 2>&1
 php -r 'exit(extension_loaded("pdo_mysql") ? 0 : 1);'
+grep -q '^extension=' /usr/local/etc/php/conf.d/*pdo_mysql*.ini
+
+docker-php-ext-install opcache 2>&1
+php -r 'exit(extension_loaded("Zend OPcache") ? 0 : 1);'
+grep -q '^zend_extension=' /usr/local/etc/php/conf.d/*opcache*.ini