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
9d730848
Unverified
Commit
9d730848
authored
May 01, 2020
by
Grégoire Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address warning from PHPUnit
This hack is temporary and should be removed on 3.0.x
parent
7fc2268f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
ConnectionTest.php
tests/Doctrine/Tests/DBAL/ConnectionTest.php
+2
-3
FutureVersionAwarePlatformDriver.php
.../Doctrine/Tests/DBAL/FutureVersionAwarePlatformDriver.php
+15
-0
No files found.
tests/Doctrine/Tests/DBAL/ConnectionTest.php
View file @
9d730848
...
...
@@ -22,7 +22,6 @@ use Doctrine\DBAL\Logging\DebugStack;
use
Doctrine\DBAL\Logging\EchoSQLLogger
;
use
Doctrine\DBAL\ParameterType
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
use
Doctrine\DBAL\VersionAwarePlatformDriver
;
use
Doctrine\Tests\DbalTestCase
;
use
Exception
;
use
PHPUnit\Framework\MockObject\MockObject
;
...
...
@@ -762,7 +761,7 @@ class ConnectionTest extends DbalTestCase
*/
public
function
testPlatformDetectionIsTriggerOnlyOnceOnRetrievingPlatform
()
:
void
{
$driverMock
=
$this
->
createMock
(
[
Driver
::
class
,
VersionAwarePlatformDriver
::
class
]
);
$driverMock
=
$this
->
createMock
(
FutureVersionAwarePlatformDriver
::
class
);
$driverConnectionMock
=
$this
->
createMock
(
ServerInfoAwareConnection
::
class
);
...
...
@@ -883,7 +882,7 @@ class ConnectionTest extends DbalTestCase
*/
public
function
testRethrowsOriginalExceptionOnDeterminingPlatformWhenConnectingToNonExistentDatabase
()
:
void
{
$driverMock
=
$this
->
createMock
(
[
Driver
::
class
,
VersionAwarePlatformDriver
::
class
]
);
$driverMock
=
$this
->
createMock
(
FutureVersionAwarePlatformDriver
::
class
);
$connection
=
new
Connection
([
'dbname'
=>
'foo'
],
$driverMock
);
$originalException
=
new
Exception
(
'Original exception'
);
...
...
tests/Doctrine/Tests/DBAL/FutureVersionAwarePlatformDriver.php
0 → 100644
View file @
9d730848
<?php
declare
(
strict_types
=
1
);
namespace
Doctrine\Tests\DBAL
;
use
Doctrine\DBAL\Driver
;
use
Doctrine\DBAL\VersionAwarePlatformDriver
;
/**
* Remove me in 3.0.x
*/
interface
FutureVersionAwarePlatformDriver
extends
VersionAwarePlatformDriver
,
Driver
{
}
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