From db06fceb26805db59c9d8551baaf18d55ee53c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Proch=C3=A1zka?= Date: Thu, 12 May 2016 15:35:26 +0200 Subject: [PATCH] testTransactionalWithException: if no exception is thrown, fail --- tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php b/tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php index 0dd4a78239d..3f91e61d3e7 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php +++ b/tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php @@ -196,6 +196,7 @@ public function testTransactionalWithException() $conn->executeQuery($conn->getDatabasePlatform()->getDummySelectSQL()); throw new \RuntimeException("Ooops!"); }); + $this->fail('Expected exception'); } catch (\RuntimeException $expected) { $this->assertEquals(0, $this->_conn->getTransactionNestingLevel()); }