phpunit - Error when using @runInSeparateProcess with markTestSkipped() -
/** * tests response->redirect * @runinseparateprocess */ public function testredirect() { $this->marktestskipped(); } error message:
there 1 error: 1) responsetest::testredirect phpunit_framework_exception: php fatal error: uncaught exception 'pdoexception' message 'you cannot serialize or unserialize pdo instances' in -:44 stack trace: 0 [internal function]: pdo->__sleep() 1 -(44): serialize(array) 2 -(332): __phpunit_run_isolated_test() 3 {main} thrown in - on line 44 fatal error: uncaught exception 'pdoexception' message 'you cannot serialize or unserialize pdo instances' in -:44 stack trace: 0 [internal function]: pdo->__sleep() 1 -(44): serialize(array) 2 -(332): __phpunit_run_isolated_test() 3 {main} thrown in - on line 44
when phpunit goes run test in process serialize bunch of different data give new process. assume have database connection hanging around in variable phpunit trying serialize.
Comments
Post a Comment