Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deprecations missing in output #911

Open
uncaught opened this issue Nov 21, 2024 · 0 comments
Open

Deprecations missing in output #911

uncaught opened this issue Nov 21, 2024 · 0 comments
Labels

Comments

@uncaught
Copy link

Q A
ParaTest version 7.6.0
PHPUnit version 11.4.3
PHP version 8.3.13

Summary

When running paratest compared to phpunit the deprecations are not listed in the console output.

Current behavior

The deprecations are simply not shown in the output.

How to reproduce: command, code and error stack trace

Place some deprecation in your code or in vendor code that you call:

@trigger_error('foo', \E_USER_DEPRECATED);

Expected behavior

Deprecations should be shown.


In case this matters - this is how we call with and without paratest depending on processes:

if [[ "$processes" = "1" ]]; then
  exec docker compose run --rm \
    --entrypoint=php \
    php \
    -dpcov.enabled=1 \
    -dpcov.directory=/var/www/html \
    -dpcov.exclude=~vendor~ \
    vendor/bin/phpunit \
    -c phpunit.xml \
    $@
else
  exec docker compose run --rm \
    --entrypoint=php \
    php \
    -dpcov.enabled=1 \
    -dpcov.directory=/var/www/html \
    -dpcov.exclude=~vendor~ \
    vendor/bin/paratest \
    --passthru-php="-dpcov.enabled=1 -dpcov.directory=/var/www/html -dpcov.exclude=~vendor~" \
    --processes=$processes \
    -c phpunit.xml \
    $@
fi

The lower part is missing when running our suite with paratest:

image

@uncaught uncaught added the bug label Nov 21, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Development

No branches or pull requests

1 participant