diff --git a/readme.md b/readme.md index 095ca91..b1d2b88 100644 --- a/readme.md +++ b/readme.md @@ -341,7 +341,7 @@ $database->query('INSERT INTO users', [ There are three methods for dealing with transactions: ```php -$database->beginTransaction(); +$database->begin(); $database->commit(); diff --git a/tests/dibi/Sqlsrv.limits.phpt b/tests/dibi/Sqlsrv.limits.phpt index adc1324..3b02034 100644 --- a/tests/dibi/Sqlsrv.limits.phpt +++ b/tests/dibi/Sqlsrv.limits.phpt @@ -82,10 +82,9 @@ $tests = function ($conn) { $conn->translate('SELECT 1 %lmt', -10) ); - Assert::exception( - $conn->translate('SELECT 1 %ofs %lmt', 10, 10), - Dibi\NotSupportedException::class - ); + Assert::exception(function () { + $conn->translate('SELECT 1 %ofs %lmt', 10, 10); + }, Dibi\NotSupportedException::class); } };