PDO can't be serialized. You must extends PDO and use this class to use mock see here : 
https://github.com/alchemy-fr/Phraseanet/pull/846/files#diff-b548cbf2240436f5aa3665cde6613f38R433