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
30d79671
Unverified
Commit
30d79671
authored
Jun 05, 2019
by
Jonathan H. Wage
Committed by
Sergei Morozov
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to fix DBAL630Test for pgsql.
parent
39f5461c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
DBAL630Test.php
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL630Test.php
+17
-15
No files found.
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL630Test.php
View file @
30d79671
...
...
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace
Doctrine\Tests\DBAL\Functional\Ticket
;
use
Doctrine\DBAL\DBALException
;
use
Doctrine\DBAL\Driver\PDOConnection
;
use
Doctrine\DBAL\ParameterType
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
PDO
;
...
...
@@ -40,10 +41,9 @@ class DBAL630Test extends DbalFunctionalTestCase
protected
function
tearDown
()
:
void
{
if
(
$this
->
running
)
{
$wrappedConnection
=
$this
->
connection
->
getWrappedConnection
();
assert
(
$wrappedConnection
instanceof
PDO
);
$pdo
=
$this
->
getPDO
();
$
wrappedConnection
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
false
);
$
pdo
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
false
);
}
parent
::
tearDown
();
...
...
@@ -77,10 +77,8 @@ class DBAL630Test extends DbalFunctionalTestCase
public
function
testBooleanConversionBoolParamEmulatedPrepares
()
:
void
{
$wrappedConnection
=
$this
->
connection
->
getWrappedConnection
();
assert
(
$wrappedConnection
instanceof
PDO
);
$wrappedConnection
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
$pdo
=
$this
->
getPDO
();
$pdo
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
$platform
=
$this
->
connection
->
getDatabasePlatform
();
...
...
@@ -104,10 +102,8 @@ class DBAL630Test extends DbalFunctionalTestCase
?
bool
$statementValue
,
?
bool
$databaseConvertedValue
)
:
void
{
$wrappedConnection
=
$this
->
connection
->
getWrappedConnection
();
assert
(
$wrappedConnection
instanceof
PDO
);
$wrappedConnection
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
$pdo
=
$this
->
getPDO
();
$pdo
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
$platform
=
$this
->
connection
->
getDatabasePlatform
();
...
...
@@ -131,10 +127,8 @@ class DBAL630Test extends DbalFunctionalTestCase
?
bool
$statementValue
,
bool
$databaseConvertedValue
)
:
void
{
$wrappedConnection
=
$this
->
connection
->
getWrappedConnection
();
assert
(
$wrappedConnection
instanceof
PDO
);
$wrappedConnection
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
$pdo
=
$this
->
getPDO
();
$pdo
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
$platform
=
$this
->
connection
->
getDatabasePlatform
();
...
...
@@ -184,4 +178,12 @@ class DBAL630Test extends DbalFunctionalTestCase
[
null
,
null
],
];
}
private
function
getPDO
()
:
PDO
{
$wrappedConnection
=
$this
->
connection
->
getWrappedConnection
();
assert
(
$wrappedConnection
instanceof
PDOConnection
);
return
$wrappedConnection
->
getWrappedConnection
();
}
}
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