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
3796bd2b
Unverified
Commit
3796bd2b
authored
Feb 05, 2018
by
Gabriel Caruso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve annotations
parent
76583b49
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
ResultCacheTest.php
tests/Doctrine/Tests/DBAL/Functional/ResultCacheTest.php
+3
-2
ArrayTest.php
tests/Doctrine/Tests/DBAL/Types/ArrayTest.php
+2
-1
DriverMock.php
tests/Doctrine/Tests/Mocks/DriverMock.php
+3
-2
No files found.
tests/Doctrine/Tests/DBAL/Functional/ResultCacheTest.php
View file @
3796bd2b
...
...
@@ -4,6 +4,7 @@ namespace Doctrine\Tests\DBAL\Functional;
use
Doctrine\DBAL\Cache\QueryCacheProfile
;
use
Doctrine\DBAL\FetchMode
;
use
Doctrine\DBAL\Logging\DebugStack
;
/**
* @group DDC-217
...
...
@@ -16,7 +17,7 @@ class ResultCacheTest extends \Doctrine\Tests\DbalFunctionalTestCase
private
$expectedResult
=
array
(
array
(
'test_int'
=>
100
,
'test_string'
=>
'foo'
),
array
(
'test_int'
=>
200
,
'test_string'
=>
'bar'
),
array
(
'test_int'
=>
300
,
'test_string'
=>
'baz'
));
/**
* @var
\Doctrine\DBAL\Logging\
DebugStack
* @var DebugStack
*/
private
$sqlLogger
;
...
...
@@ -37,7 +38,7 @@ class ResultCacheTest extends \Doctrine\Tests\DbalFunctionalTestCase
}
$config
=
$this
->
_conn
->
getConfiguration
();
$config
->
setSQLLogger
(
$this
->
sqlLogger
=
new
\Doctrine\DBAL\Logging\
DebugStack
);
$config
->
setSQLLogger
(
$this
->
sqlLogger
=
new
DebugStack
);
$cache
=
new
\Doctrine\Common\Cache\ArrayCache
;
$config
->
setResultCacheImpl
(
$cache
);
...
...
tests/Doctrine/Tests/DBAL/Types/ArrayTest.php
View file @
3796bd2b
...
...
@@ -2,13 +2,14 @@
namespace
Doctrine\Tests\DBAL\Types
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
use
Doctrine\DBAL\Types\Type
;
use
Doctrine\Tests\DBAL\Mocks\MockPlatform
;
class
ArrayTest
extends
\Doctrine\Tests\DbalTestCase
{
/**
* @var
Mock
Platform
* @var
Abstract
Platform
*/
protected
$_platform
;
...
...
tests/Doctrine/Tests/Mocks/DriverMock.php
View file @
3796bd2b
...
...
@@ -2,6 +2,7 @@
namespace
Doctrine\Tests\Mocks
;
use
Doctrine\DBAL\Schema\AbstractSchemaManager
;
class
DriverMock
implements
\Doctrine\DBAL\Driver
{
...
...
@@ -11,7 +12,7 @@ class DriverMock implements \Doctrine\DBAL\Driver
private
$_platformMock
;
/**
* @var
SchemaManagerMock
* @var
AbstractSchemaManager
*/
private
$_schemaManagerMock
;
...
...
@@ -61,7 +62,7 @@ class DriverMock implements \Doctrine\DBAL\Driver
$this
->
_platformMock
=
$platform
;
}
public
function
setSchemaManager
(
\Doctrine\DBAL\Schema\
AbstractSchemaManager
$sm
)
public
function
setSchemaManager
(
AbstractSchemaManager
$sm
)
{
$this
->
_schemaManagerMock
=
$sm
;
}
...
...
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