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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -