Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDO instances'
It means that something with a doctrine/pdo went wrong in one of your tests. Since serialize does not work on pdo-classes, it prints out this message. If you want doctrines/PDOs message, run only the one test with process isolation turned off and you will get the error-message.
I know that setting processIsolation to "false" in phpunit.xml.dist solve this issue.ReplyDelete
But I am setting it to true since, otherway db connections are not closed and too many connection error raises.