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
1b1effbd
Commit
1b1effbd
authored
Feb 04, 2017
by
Marco Pivetta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2546 s/callable/Closure to please the ancient PHP version gods
parent
b713ba74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
StatementTest.php
tests/Doctrine/Tests/DBAL/Functional/StatementTest.php
+4
-3
No files found.
tests/Doctrine/Tests/DBAL/Functional/StatementTest.php
View file @
1b1effbd
...
...
@@ -2,6 +2,7 @@
namespace
Doctrine\Tests\DBAL\Functional
;
use
Closure
;
use
Doctrine\DBAL\Driver\Statement
;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\DBAL\Types\Type
;
...
...
@@ -176,7 +177,7 @@ EOF
/**
* @dataProvider emptyFetchProvider
*/
public
function
testFetchFromNonExecutedStatement
(
callabl
e
$fetch
,
$expected
)
public
function
testFetchFromNonExecutedStatement
(
Closur
e
$fetch
,
$expected
)
{
$stmt
=
$this
->
_conn
->
prepare
(
'SELECT id FROM stmt_test'
);
...
...
@@ -193,7 +194,7 @@ EOF
/**
* @dataProvider emptyFetchProvider
*/
public
function
testFetchFromNonExecutedStatementWithClosedCursor
(
callabl
e
$fetch
,
$expected
)
public
function
testFetchFromNonExecutedStatementWithClosedCursor
(
Closur
e
$fetch
,
$expected
)
{
$stmt
=
$this
->
_conn
->
prepare
(
'SELECT id FROM stmt_test'
);
$stmt
->
closeCursor
();
...
...
@@ -204,7 +205,7 @@ EOF
/**
* @dataProvider emptyFetchProvider
*/
public
function
testFetchFromExecutedStatementWithClosedCursor
(
callabl
e
$fetch
,
$expected
)
public
function
testFetchFromExecutedStatementWithClosedCursor
(
Closur
e
$fetch
,
$expected
)
{
$this
->
_conn
->
insert
(
'stmt_test'
,
array
(
'id'
=>
1
));
...
...
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