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 12, 2016
1 parent 5477265 commit db06fce
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 db06fce

Please sign in to comment.