Refactor try to eliminate PDO/PHPUnit problem in PHP 5.4/5.5.