Skip to content

Commit

Permalink
[TASK] Use phpunit configuration template for own testing
Browse files Browse the repository at this point in the history
TF provides templates for unit- and functional testing,
with enhanced and hardened configuration options.

For own unit testing it has used the phpunit defaults,
which are not that strict as we want it to be.

Therefore, we use the template files now directly.

Releases: main, 7
  • Loading branch information
sbuerk committed May 11, 2023
1 parent b6a4c0f commit d616c11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
composer.lock
public/
Build/testing-docker/.env
var/
4 changes: 2 additions & 2 deletions Build/testing-docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ services:
php -v | grep '^PHP';
if [ ${PHP_XDEBUG_ON} -eq 0 ]; then
XDEBUG_MODE=\"off\" \
.Build/bin/phpunit Tests/Unit/;
.Build/bin/phpunit -c Resources/Core/Build/UnitTests.xml Tests/Unit/;
else
XDEBUG_MODE=\"debug,develop\" \
XDEBUG_TRIGGER=\"foo\" \
XDEBUG_CONFIG=\"client_host=host.docker.internal\" \
.Build/bin/phpunit Tests/Unit/;
.Build/bin/phpunit -c Resources/Core/Build/UnitTests.xml Tests/Unit/;
fi
"

0 comments on commit d616c11

Please sign in to comment.