diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/php/install_php_8.sh | 11 | ||||
-rw-r--r-- | test/php/install_php_8_2.sh | 11 | ||||
-rw-r--r-- | test/php/scenarios.json | 18 |
3 files changed, 39 insertions, 1 deletions
diff --git a/test/php/install_php_8.sh b/test/php/install_php_8.sh new file mode 100644 index 0000000..a510525 --- /dev/null +++ b/test/php/install_php_8.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "php-version-8-is-installed" bash -c "php --version | grep '8.'" + +# Report result +reportResults diff --git a/test/php/install_php_8_2.sh b/test/php/install_php_8_2.sh new file mode 100644 index 0000000..9320268 --- /dev/null +++ b/test/php/install_php_8_2.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "php-version-8.2-is-installed" bash -c "php --version | grep '8.2'" + +# Report result +reportResults diff --git a/test/php/scenarios.json b/test/php/scenarios.json index f24753b..dac7998 100644 --- a/test/php/scenarios.json +++ b/test/php/scenarios.json @@ -7,5 +7,21 @@ "additionalVersions": "8.0.17,8.0.3" } } + }, + "install_php_8": { + "image": "ubuntu:focal", + "features": { + "php": { + "version": "8" + } + } + }, + "install_php_8_2": { + "image": "ubuntu:focal", + "features": { + "php": { + "version": "8.2" + } + } } -}
\ No newline at end of file +} |