Use in PHPUnit processIsolation="true" environment
Felio opened this issue · 2 comments
Felio commented
Can I use soft-mocks in PHPUnit processIsolation="true" environment?
...It may need a patch for TestCaseClass.tpl and TestCaseMethod.tpl (and skip to patch for phpunit entrypoint).
YuriyNasretdinov commented
Soft Mocks should be safe to run concurrently. Not sure if process isolation is somehow different?
Felio commented
From my short investigation, PHPUnit runs tests using https://github.com/sebastianbergmann/phpunit/blob/master/src/Util/PHP/Template/TestCaseClass.tpl template in separated process.
So require_once $composerAutoload
is called without SoftMocks::init().