Skip to content

Commit 1ed90d0

Browse files
committed
Add tests for brefphp/bref#1455
1 parent fd84a08 commit 1ed90d0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ test: test-80 test-81 test-82
55
# This rule matches with a wildcard, for example `test-80`.
66
# The `$*` variable will contained the matched part, in this case `80`.
77
test-%: vendor
8-
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$* \
9-
test_1_binary.php $*
8+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$* test_1_binary.php $*
9+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$*-fpm test_1_binary.php $*
10+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$*-fpm-dev test_1_binary.php $*
1011

11-
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$* \
12-
test_2_extensions.php
12+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$* test_2_extensions.php
13+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$*-fpm test_2_extensions.php
14+
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php bref/${CPU_PREFIX}php-$*-fpm-dev test_2_extensions.php
1315

1416
docker run --platform=${DOCKER_PLATFORM} --rm -v=$(PWD):/var/task:ro --entrypoint=php \
1517
-e PHP_INI_SCAN_DIR="/opt/bref/etc/php/conf.d/:/var/task/" bref/${CPU_PREFIX}php-$* \

tests/test_2_extensions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
'iconv' => function_exists('iconv_strlen'),
9999
'mbstring' => function_exists('mb_strlen'),
100100
'mysqli' => function_exists('mysqli_connect'),
101-
'opcache' => ini_get('opcache.enable') == 1 && ini_get('opcache.enable_cli') == 1,
101+
'opcache' => ini_get('opcache.enable') == 1,
102102
'pdo' => class_exists(\PDO::class),
103103
'pdo_mysql' => extension_loaded('pdo_mysql'),
104104
'pdo_sqlite' => extension_loaded('pdo_sqlite'),

0 commit comments

Comments
 (0)