Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
2f5a3450
Unverified
Commit
2f5a3450
authored
Apr 01, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed never-reached code in tests
parent
556c71dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
ConnectionTest.php
tests/Functional/ConnectionTest.php
+0
-7
No files found.
tests/Functional/ConnectionTest.php
View file @
2f5a3450
...
...
@@ -66,8 +66,6 @@ class ConnectionTest extends FunctionalTestCase
self
::
assertEquals
(
2
,
$this
->
connection
->
getTransactionNestingLevel
());
throw
new
Exception
();
$this
->
connection
->
commit
();
// never reached
}
catch
(
Throwable
$e
)
{
$this
->
connection
->
rollBack
();
self
::
assertEquals
(
1
,
$this
->
connection
->
getTransactionNestingLevel
());
...
...
@@ -139,8 +137,6 @@ class ConnectionTest extends FunctionalTestCase
self
::
assertEquals
(
2
,
$this
->
connection
->
getTransactionNestingLevel
());
throw
new
Exception
();
$this
->
connection
->
commit
();
// never reached
}
catch
(
Throwable
$e
)
{
$this
->
connection
->
rollBack
();
self
::
assertEquals
(
1
,
$this
->
connection
->
getTransactionNestingLevel
());
...
...
@@ -158,7 +154,6 @@ class ConnectionTest extends FunctionalTestCase
$this
->
connection
->
commit
();
// should not throw exception
}
catch
(
ConnectionException
$e
)
{
$this
->
fail
(
'Transaction commit after failed nested transaction should not fail when using savepoints.'
);
$this
->
connection
->
rollBack
();
}
}
...
...
@@ -228,8 +223,6 @@ class ConnectionTest extends FunctionalTestCase
self
::
assertEquals
(
1
,
$this
->
connection
->
getTransactionNestingLevel
());
throw
new
Exception
();
$this
->
connection
->
commit
();
// never reached
}
catch
(
Throwable
$e
)
{
self
::
assertEquals
(
1
,
$this
->
connection
->
getTransactionNestingLevel
());
$this
->
connection
->
rollBack
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment