Add test for php-cli image
@@ -79,6 +79,7 @@ declare -A imageTests=(
'
[php]='
php-ext-install
+ php-hello-world
[php:fpm]='
php-fpm-hello-web
@@ -0,0 +1 @@
+Hello World!
+<?php echo "Hello World!"; ?>
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+image="$1"
+dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
+dirContainer='/var/www/html/hello-world'
+docker run -it --rm -v "$dirTest":"$dirContainer" -w "$dirContainer" "$image" php index.php