Skip to content

Commit d2b12ad

Browse files
committed
add phpunit
1 parent db574d5 commit d2b12ad

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.build-sample.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export PHP_EXT_CONFIGURE=
1010
export PHP_EXT_INSTALL=
1111
export COMPOSER=true
1212
export XDEBUG=false
13+
export PHPUNIT=true
1314
export NODE_JS=true
1415
export WP_CLI=false
1516
export RELEASE_VERSION=apache
17+
export CLI_RELEASE_VERSION=cli

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ RUN if [ $WP_CLI = "true" ]; then \
9797
chmod +x wp-cli.phar && \
9898
mv wp-cli.phar /usr/local/bin/wp; fi
9999

100+
# PHPUnit
101+
ARG PHPUNIT=true
102+
ARG PHPUNIT_VERSION="7.5.1"
103+
RUN if [ $PHPUNIT = "true" ]; then \
104+
curl -O https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar \
105+
&& chmod +x phpunit-${PHPUNIT_VERSION}.phar \
106+
&& mv phpunit-${PHPUNIT_VERSION}.phar /usr/local/bin/phpunit; fi
107+
100108
# Apache
101109
ARG WWW_USER=app
102110
ARG WWW_GROUP=app

0 commit comments

Comments
 (0)