Skip to content

Commit

Permalink
testTransactionalWithException: if no exception is thrown, fail
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed May 13, 2016
1 parent 43cae90 commit 884d3b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 884d3b0

Please sign in to comment.