Make the PHP test runner conifigurable

PHPUnit, Pest or Paratest.
This commit is contained in:
Oliver Davies 2024-02-18 16:35:37 +00:00
parent e1dc284a61
commit 5f62b02d14
3 changed files with 9 additions and 2 deletions

View file

@ -111,9 +111,9 @@ function stop {
docker compose down
}
{% if not php.phpunit is same as false %}
{% if not php.phpunit is same as false and not php.test_runner is same as false %}
function test {
_exec php phpunit --colors=always "${@}"
_exec php {{ php.test_runner }} --colors=always "${@}"
}
{% endif %}