title: ZF + Doctrine2 phpUnit error: PDOExeption: You cannot serialize or unserialize PDO instances
body: <p>I'm using DynamicGuys doctrine2 integration into zend framework(https://github.com/dynamicguy/zf1doctrine2).
  It works, but if i want to make tests with phpUnit i get this error:
      PDOExeption: You cannot serialize or unserialize PDO instances</p>
  
  <p>I've searched a bit, and i found out that if i comment out line 44 in this file:
  <a href="https://github.com/dynamicguy/zf1doctrine2/blob/master/library/ZendX/Doctrine2/Application/Resource/Entitymanagerfactory.php" rel="nofollow">https://github.com/dynamicguy/zf1doctrine2/blob/master/library/ZendX/Doctrine2/Application/Resource/Entitymanagerfactory.php</a> phpUnit works, but of course the rest of the application wont work, as the entity manager wont be returned</p>
  
  <p>Any ideas on where the error comes from?</p>