From: Hartmut Holzgraefe Date: Mon, 10 Jul 2006 16:29:50 +0000 (+0000) Subject: (MFH) "transaction" tests should test commit, too, not only rollback X-Git-Tag: php-5.2.0RC1~141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1b67d83cc85202c305cf2899a576066461beabf;p=php (MFH) "transaction" tests should test commit, too, not only rollback --- diff --git a/ext/pdo/tests/pdo_017.phpt b/ext/pdo/tests/pdo_017.phpt index f1bfb97f6c..651ee2860c 100644 --- a/ext/pdo/tests/pdo_017.phpt +++ b/ext/pdo/tests/pdo_017.phpt @@ -56,8 +56,17 @@ $db->rollBack(); echo countRows('rollback'); +$db->beginTransaction(); +$delete->execute(); +echo countRows('delete'); +$db->commit(); + +echo countRows('commit'); + ?> --EXPECT-- Counted 3 rows after insert. Counted 0 rows after delete. Counted 3 rows after rollback. +Counted 0 rows after delete. +Counted 0 rows after commit.