Class __PHP_Incomplete_Class has no unserializer

Infinity picture Infinity · Jun 4, 2013 · Viewed 17.6k times · Source

I am trying to run the tests in PHPUnit and getting this error.

Fatal error: Uncaught exception 'ErrorException' with message 'Class __PHP_Incomplete_Class has no unserializer' in /opt/lampp/lib/php/PHPUnit/Util/PHP.php:237

PHP - 5.4.7
PHPUnit - 3.7.21

PHPUnit setting :

processIsolation = "true"

Thanks in advance.

Answer

greg picture greg · Jul 10, 2013

Try clearing the cache for the test environment. php app/console cache:clear --env=test