Skip to content

Commit e44ea02

Browse files
committed
Adding failing test for SMTP option (uppercase)
1 parent 3da8053 commit e44ea02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build-and-test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ RESULT=`docker run --rm -e PHP_INI_ERROR_REPORTING="E_ERROR | E_WARNING" thecodi
130130
RESULT=`docker run --rm -e PHP_INI_SESSION__SAVE_PATH="tcp://localhost?auth=yourverycomplex\"passwordhere" thecodingmachine/php:${PHP_VERSION}-${BRANCH}-slim-${BRANCH_VARIANT} php -i | grep "session.save_path"`
131131
[[ "$RESULT" = "session.save_path => tcp://localhost?auth=yourverycomplex\"passwordhere => tcp://localhost?auth=yourverycomplex\"passwordhere" ]]
132132

133+
# Tests that the SMTP parameter is set in uppercase
134+
RESULT=`docker run --rm -e PHP_INI_SMTP="192.168.0.1" thecodingmachine/php:${PHP_VERSION}-${BRANCH}-slim-${BRANCH_VARIANT} php -i | grep "SMTP"`
135+
[[ "$RESULT" = "SMTP => 192.168.0.1 => 192.168.0.1" ]]
136+
133137
# Tests that environment variables are passed to startup scripts when UID is set
134138
RESULT=`docker run --rm -e FOO="bar" -e STARTUP_COMMAND_1="env" -e UID=0 thecodingmachine/php:${PHP_VERSION}-${BRANCH}-slim-${BRANCH_VARIANT} sleep 1 | grep "FOO"`
135139
[[ "$RESULT" = "FOO=bar" ]]

0 commit comments

Comments
 (0)