@@ -42,6 +42,7 @@ setup() {
4242 export INSTALL_REDIS=false
4343 export FRANKENPHP_WORKER=false
4444 export TEST_DDEV_XDEBUG=false
45+ export FRANKENPHP_PHP_VERSION=" 8.3"
4546}
4647
4748health_checks () {
@@ -57,7 +58,7 @@ health_checks() {
5758 assert_success
5859 assert_output --partial " HTTP/1.1 200"
5960 assert_output --partial " Server: Caddy"
60- assert_output --partial " X-Powered-By: PHP/8.3 "
61+ assert_output --partial " X-Powered-By: PHP/${FRANKENPHP_PHP_VERSION} "
6162
6263 if [[ " ${FRANKENPHP_WORKER} " == " true" ]]; then
6364 assert_output --partial " X-Request-Count"
@@ -71,7 +72,7 @@ health_checks() {
7172 assert_success
7273 assert_output --partial " HTTP/1.1 200"
7374 assert_output --partial " Server: Caddy"
74- assert_output --partial " X-Powered-By: PHP/8.3 "
75+ assert_output --partial " X-Powered-By: PHP/${FRANKENPHP_PHP_VERSION} "
7576
7677 if [[ " ${FRANKENPHP_WORKER} " == " true" ]]; then
7778 assert_output --partial " X-Request-Count"
@@ -85,7 +86,7 @@ health_checks() {
8586 assert_success
8687 assert_output --partial " HTTP/2 200"
8788 assert_output --partial " server: Caddy"
88- assert_output --partial " x-powered-by: PHP/8.3 "
89+ assert_output --partial " x-powered-by: PHP/${FRANKENPHP_PHP_VERSION} "
8990
9091 if [[ " ${FRANKENPHP_WORKER} " == " true" ]]; then
9192 assert_output --partial " x-request-count"
@@ -138,7 +139,7 @@ health_checks() {
138139
139140 run ddev php -v
140141 assert_success
141- assert_output --partial " PHP 8.3 "
142+ assert_output --partial " PHP ${FRANKENPHP_PHP_VERSION} "
142143
143144 run ddev php --ini
144145 assert_success
@@ -194,6 +195,26 @@ teardown() {
194195 health_checks
195196}
196197
198+ @test " install from directory php8.4" {
199+ set -eu -o pipefail
200+
201+ export FRANKENPHP_PHP_VERSION=" 8.4"
202+
203+ cp " ${DIR} " /tests/testdata/index-no-worker.php index.php
204+ assert_file_exist index.php
205+
206+ run ddev dotenv set .ddev/.env.frankenphp --frankenphp-docker-image=" dunglas/frankenphp:php${FRANKENPHP_PHP_VERSION} "
207+ assert_success
208+ assert_file_exist .ddev/.env.frankenphp
209+
210+ echo " # ddev add-on get ${DIR} with project ${PROJNAME} in $( pwd) " >&3
211+ run ddev add-on get " ${DIR} "
212+ assert_success
213+ run ddev restart -y
214+ assert_success
215+ health_checks
216+ }
217+
197218@test " worker" {
198219 set -eu -o pipefail
199220
0 commit comments