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
ef21cc89
Unverified
Commit
ef21cc89
authored
May 02, 2020
by
Grégoire Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use camel case
parent
d6f232e4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
MysqliConnectionTest.php
...octrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php
+3
-3
ResultCacheTest.php
tests/Doctrine/Tests/DBAL/Functional/ResultCacheTest.php
+3
-3
QueryBuilderTest.php
tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php
+4
-4
No files found.
tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php
View file @
ef21cc89
...
...
@@ -47,7 +47,7 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
$handler
=
static
function
()
:
bool
{
self
::
fail
(
'Never expected this to be called'
);
};
$default
_h
andler
=
set_error_handler
(
$handler
);
$default
H
andler
=
set_error_handler
(
$handler
);
try
{
new
MysqliConnection
([
'host'
=>
'255.255.255.255'
],
'user'
,
'pass'
);
...
...
@@ -56,7 +56,7 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
self
::
assertSame
(
'Network is unreachable'
,
$e
->
getMessage
());
}
self
::
assertSame
(
$handler
,
set_error_handler
(
$default
_h
andler
),
'Restoring error handler failed.'
);
self
::
assertSame
(
$handler
,
set_error_handler
(
$default
H
andler
),
'Restoring error handler failed.'
);
restore_error_handler
();
restore_error_handler
();
}
...
...
tests/Doctrine/Tests/DBAL/Functional/ResultCacheTest.php
View file @
ef21cc89
...
...
@@ -128,9 +128,9 @@ class ResultCacheTest extends DbalFunctionalTestCase
$data
=
$this
->
hydrateStmt
(
$stmt
,
$fetchMode
);
$stmt
=
$this
->
connection
->
executeQuery
(
'SELECT * FROM caching ORDER BY test_int ASC'
,
[],
[],
new
QueryCacheProfile
(
10
,
'testcachekey'
));
$data
_i
terator
=
$this
->
hydrateStmtIterator
(
$stmt
,
$fetchMode
);
$data
I
terator
=
$this
->
hydrateStmtIterator
(
$stmt
,
$fetchMode
);
self
::
assertEquals
(
$data
,
$data
_i
terator
);
self
::
assertEquals
(
$data
,
$data
I
terator
);
}
public
function
testDontCloseNoCache
()
:
void
...
...
tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php
View file @
ef21cc89
...
...
@@ -792,14 +792,14 @@ class QueryBuilderTest extends DbalTestCase
$qb
->
setParameter
(
':test'
,
(
object
)
1
);
$qb
_c
lone
=
clone
$qb
;
$qb
C
lone
=
clone
$qb
;
self
::
assertEquals
((
string
)
$qb
,
(
string
)
$qb
_c
lone
);
self
::
assertEquals
((
string
)
$qb
,
(
string
)
$qb
C
lone
);
$qb
->
andWhere
(
'u.id = 1'
);
self
::
assertNotSame
(
$qb
->
getQueryParts
(),
$qb
_c
lone
->
getQueryParts
());
self
::
assertNotSame
(
$qb
->
getParameters
(),
$qb
_c
lone
->
getParameters
());
self
::
assertNotSame
(
$qb
->
getQueryParts
(),
$qb
C
lone
->
getQueryParts
());
self
::
assertNotSame
(
$qb
->
getParameters
(),
$qb
C
lone
->
getParameters
());
}
public
function
testSimpleSelectWithoutTableAlias
()
:
void
...
...
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