$this->
fail($e->
getMessage());
} } /**
* Tests the compatibility of transactions with DDL statements.
*/
public function testTransactionWithDdlStatement() { // First, test that a commit works normally, even with DDL statements.
$transaction =
$this->connection->
startTransaction();
$this->
insertRow('row'
);
$this->
executeDDLStatement();
unset($transaction);
$this->
assertRowPresent('row'
);
// Even in different order.
$this->
cleanUp();
$transaction =
$this->connection->
startTransaction();
$this->
executeDDLStatement();
$this->
insertRow('row'
);
unset($transaction);
$this->
assertRowPresent('row'
);