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
d165e529
Commit
d165e529
authored
Feb 13, 2014
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert PDO exception wrapping tests
parent
cd68d488
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
PDOConnectionTest.php
...ctrine/Tests/DBAL/Functional/Driver/PDOConnectionTest.php
+0
-42
No files found.
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOConnectionTest.php
View file @
d165e529
...
...
@@ -3,7 +3,6 @@
namespace
Doctrine\Tests\DBAL\Functional\Driver
;
use
Doctrine\DBAL\Driver\PDOConnection
;
use
Doctrine\DBAL\Driver\PDOException
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
class
PDOConnectionTest
extends
DbalFunctionalTestCase
...
...
@@ -34,45 +33,4 @@ class PDOConnectionTest extends DbalFunctionalTestCase
{
$this
->
assertFalse
(
$this
->
driverConnection
->
requiresQueryForServerVersion
());
}
/**
* @expectedException \Doctrine\DBAL\Driver\PDOException
*/
public
function
testWrapsPDOExceptionsDuringPrepare
()
{
$this
->
driverConnection
->
prepare
(
'foo'
);
}
public
function
testWrapsPDOExceptionsDuringQuery
()
{
$failMessage
=
'Failed asserting that exception of type "\Doctrine\DBAL\Driver\PDOException" is thrown.'
;
try
{
$this
->
driverConnection
->
query
(
'foo'
);
$this
->
fail
(
$failMessage
);
}
catch
(
PDOException
$e
)
{
}
try
{
$this
->
driverConnection
->
query
(
'foo'
,
'bar'
);
$this
->
fail
(
$failMessage
);
}
catch
(
PDOException
$e
)
{
}
try
{
$this
->
driverConnection
->
query
(
'foo'
,
'bar'
,
'baz'
);
$this
->
fail
(
$failMessage
);
}
catch
(
PDOException
$e
)
{
}
try
{
$this
->
driverConnection
->
query
(
'foo'
,
'bar'
,
'baz'
,
'bloo'
);
$this
->
fail
(
$failMessage
);
}
catch
(
PDOException
$e
)
{
}
}
}
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