This pull request resolves a small regression with DBUnit where the base level Exception class was no longer being caught during the execute() step of a PDOStatement. This is due to namespace conflicts with the PHPUnit\DbUnit\Operation\Exception class.
The fix will allow DBUnit to print out more useful exception messages when running into a PDO issue.
I've added a test for the RowBased operation only, but I'm open to adding a test for the Replace operation as well.
This pull request resolves a small regression with DBUnit where the base level
Exception
class was no longer being caught during theexecute()
step of aPDOStatement
. This is due to namespace conflicts with thePHPUnit\DbUnit\Operation\Exception
class.The fix will allow DBUnit to print out more useful exception messages when running into a
PDO
issue.I've added a test for the
RowBased
operation only, but I'm open to adding a test for theReplace
operation as well.