You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPUnit creates configuration global variable, which is object of DOMDocument class. When running tests on HHVM and globals are backed up in the process this ends up in following error:
Attempted to serialize unserializable builtin class DOMDocument
The only place I can find where PHPUnit creates a global variable named $configuration is in the template that is used for executing a test in a separate process. That variable is now unset after it has been used, see a093bd8.
Are the tests you mention executed in process isolation? If so, does a093bd8 solve the issue for you?
Yes, it does. Thank you. Can you please backport this to PHPUnit 4.x release as well, because on Travis CI for HHVM the PHPUnit 4.x version only is installed.
PHPUnit creates
configuration
global variable, which is object ofDOMDocument
class. When running tests on HHVM and globals are backed up in the process this ends up in following error:See https://travis-ci.org/minkphp/phpunit-mink/jobs/114842726
Proposing to exclude global variable
configuration
, that PHPUnit creates for internal needs from serialization done inSnapshot
class.Not sure if it matters, but tests, that trigger such behavior are also marked with
@runInSeparateProcess
annotation.The text was updated successfully, but these errors were encountered: