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
93af1de1
Commit
93af1de1
authored
Mar 15, 2016
by
Adala Khaled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing method name 'rollBack'
parent
61e1f860
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
ConnectionTest.php
tests/Doctrine/Tests/DBAL/ConnectionTest.php
+1
-1
ConnectionTest.php
tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php
+6
-6
TemporaryTableTest.php
tests/Doctrine/Tests/DBAL/Functional/TemporaryTableTest.php
+2
-2
DBAL202Test.php
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL202Test.php
+1
-1
No files found.
tests/Doctrine/Tests/DBAL/ConnectionTest.php
View file @
93af1de1
...
...
@@ -48,7 +48,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalTestCase
public
function
testRollbackWithNoActiveTransaction_ThrowsException
()
{
$this
->
setExpectedException
(
'Doctrine\DBAL\ConnectionException'
);
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
}
public
function
testSetRollbackOnlyNoActiveTransaction_ThrowsException
()
...
...
tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php
View file @
93af1de1
...
...
@@ -45,7 +45,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase
throw
new
\Exception
;
$this
->
_conn
->
commit
();
// never reached
}
catch
(
\Exception
$e
)
{
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
$this
->
assertEquals
(
1
,
$this
->
_conn
->
getTransactionNestingLevel
());
//no rethrow
}
...
...
@@ -55,7 +55,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this
->
fail
(
'Transaction commit after failed nested transaction should fail.'
);
}
catch
(
ConnectionException
$e
)
{
$this
->
assertEquals
(
1
,
$this
->
_conn
->
getTransactionNestingLevel
());
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
$this
->
assertEquals
(
0
,
$this
->
_conn
->
getTransactionNestingLevel
());
}
}
...
...
@@ -81,7 +81,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase
throw
new
\Exception
;
$this
->
_conn
->
commit
();
// never reached
}
catch
(
\Exception
$e
)
{
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
$this
->
assertEquals
(
1
,
$this
->
_conn
->
getTransactionNestingLevel
());
//no rethrow
}
...
...
@@ -95,7 +95,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this
->
_conn
->
commit
();
// should not throw exception
}
catch
(
ConnectionException
$e
)
{
$this
->
fail
(
'Transaction commit after failed nested transaction should not fail when using savepoints.'
);
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
}
}
...
...
@@ -169,7 +169,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this
->
_conn
->
commit
();
// never reached
}
catch
(
\Exception
$e
)
{
$this
->
assertEquals
(
1
,
$this
->
_conn
->
getTransactionNestingLevel
());
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
$this
->
assertEquals
(
0
,
$this
->
_conn
->
getTransactionNestingLevel
());
}
}
...
...
@@ -181,7 +181,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this
->
assertEquals
(
1
,
$this
->
_conn
->
getTransactionNestingLevel
());
$this
->
_conn
->
commit
();
}
catch
(
\Exception
$e
)
{
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
$this
->
assertEquals
(
0
,
$this
->
_conn
->
getTransactionNestingLevel
());
}
...
...
tests/Doctrine/Tests/DBAL/Functional/TemporaryTableTest.php
View file @
93af1de1
...
...
@@ -59,7 +59,7 @@ class TemporaryTableTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this
->
_conn
->
exec
(
$platform
->
getDropTemporaryTableSQL
(
$tempTable
));
$this
->
_conn
->
insert
(
"nontemporary"
,
array
(
"id"
=>
2
));
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
$rows
=
$this
->
_conn
->
fetchAll
(
'SELECT * FROM nontemporary'
);
$this
->
assertEquals
(
array
(),
$rows
,
"In an event of an error this result has one row, because of an implicit commit."
);
...
...
@@ -97,7 +97,7 @@ class TemporaryTableTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this
->
_conn
->
exec
(
$createTempTableSQL
);
$this
->
_conn
->
insert
(
"nontemporary"
,
array
(
"id"
=>
2
));
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
try
{
$this
->
_conn
->
exec
(
$platform
->
getDropTemporaryTableSQL
(
$tempTable
));
...
...
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL202Test.php
View file @
93af1de1
...
...
@@ -31,7 +31,7 @@ class DBAL202Test extends \Doctrine\Tests\DbalFunctionalTestCase
$stmt
=
$this
->
_conn
->
prepare
(
'INSERT INTO DBAL202 VALUES (8)'
);
$this
->
_conn
->
beginTransaction
();
$stmt
->
execute
();
$this
->
_conn
->
roll
b
ack
();
$this
->
_conn
->
roll
B
ack
();
$this
->
assertEquals
(
0
,
$this
->
_conn
->
query
(
'SELECT COUNT(1) FROM DBAL202'
)
->
fetchColumn
());
}
...
...
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