Blame tests/p_php_7.2/10_php_api.sh

ecf875
#!/bin/bash
ecf875
ecf875
t_Log "Running $0 - verify PHP API in phpinfo()"
ecf875
t_SkipReleaseLessThan 8 'no modularity'
ecf875
ecf875
t_EnableModuleStream php:7.2
ecf875
t_InstallPackage php-cli
ecf875
ecf875
t_Log "Executing phpinfo()"
ecf875
output=$(php -d 'date.timezone=UTC' -r 'phpinfo();')
ecf875
t_CheckExitStatus $?
ecf875
ecf875
API='20170718'
ecf875
ecf875
t_Log "Verifying PHP API matches $API"
ecf875
grep -q "PHP API => $API" <<< $output
ecf875
t_CheckExitStatus $?
ecf875
ecf875
t_RemovePackage php-cli
ecf875
t_ResetModule php httpd nginx