Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

PHP INI settings would not be passed to child processes while "processIsolation" is on. #789

Closed
snakevil opened this issue Jan 22, 2013 · 0 comments

Comments

@snakevil
Copy link

I configured PHPUnit default settings as

<?xml version="1.0" encoding="UTF-8"?>
<!-- vi:se ft=xml fenc=utf-8 ff=unix tw=80 ai si sw=2 et ts=2 sts=2: -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://phpunit.de/phpunit.xsd"
         cacheTokens="true"
         processIsolation="true"
         stopOnError="true"
         stopOnFailure="true"
         stopOnSkipped="true"
         strict="true"
>
  <php>
    <ini name="display_errors" value="off"/>
    <ini name="xdebug.collect_includes" value="off"/>
    <ini name="xdebug.collect_params" value="0"/>
    <ini name="xdebug.collect_return" value="off"/>
    <ini name="xdebug.collect_vars" value="off"/>
    <ini name="xdebug.collect_assignments" value="off"/>
    <ini name="xdebug.show_exception_trace" value="off"/>
  </php>
</phpunit>

But when I encounter a test class with lots of @expectedException, it ALWAYS fails with exit code 2.

At last, I removed xdebug.show_exception_trace from php.ini, everything goes well...

edorian added a commit that referenced this issue Jan 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants