Source: blog.deleu.dev

PHPUnit with Bref 1.0
Last year https://blog.deleu.dev/phpunit-with-bref/. I start with the docker-compose.yaml file which contains the configuration necessary to start a brand new container with my source code. version: '3.7' services: phpunit: build: context: php/build entrypoint: /usr/bin/tail command: ["-f", "/dev/null"] user: root working_dir: /var/task volumes: -.:/var/task -./php/build:/root/build -./tests/bref.ini:/opt/bref/etc/php/conf.d/bref.ini environment: - APP_ENV=testing

The source code has to be mounted on /var/task as it's where AWS place the source code on Lambda.

COPY --from=bref/extra-gmp-php-80:0.8 /opt/bref-extra /opt/bref-extra COPY --from=bref/extra-gmp-php-80:0.8 /opt/bref/ /opt/bref
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners