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

Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' #1155

Closed
kunjalpopat opened this issue Feb 24, 2014 · 1 comment

Comments

@kunjalpopat
Copy link

Hello,
when i run bin/phpunit -c app/
i got the following error, i have try to solving many ways but not getting any solutions for that.

PHPUnit_Framework_Exception: Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' in C:\Users\net\AppData\Local\Temp\PHP5B9B.tmp o
n line 49

Exception: Serialization of 'Closure' is not allowed in C:\Users\net\AppData\Local\Temp\PHP5B9B.tmp on line 49

Call Stack:
0.0002 120944 1. {main}() -:0
0.0023 224280 2. require_once('C:\Users\net\AppData\Local\Temp\PHP5B9B.tmp') -:1
0.0559 2375424 3. __phpunit_run_isolated_test() C:\Users\net\AppData\Local\Temp\PHP5B9B.tmp:162
2.6678 16121272 4. serialize() C:\Users\net\AppData\Local\Temp\PHP5B9B.tmp:49

←[37;41m←[2KFAILURES!
←[0m←[37;41m←[2KTests: 14, Assertions: 49, Errors: 1.
←[0m←[2K

@whatthejeff
Copy link
Contributor

Thanks for the bug report @kunjalpopat. We actually already have an issue open for this (see #451).

As for how to fix this: you either need to disable process isolation or make sure that no unserializable objects are used during process isolation.

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