2
2
3
3
namespace Doctrine \Tests \DBAL \Functional ;
4
4
5
+ use Closure ;
5
6
use Doctrine \DBAL \Driver \Statement ;
6
7
use Doctrine \DBAL \Schema \Table ;
7
8
use Doctrine \DBAL \Types \Type ;
@@ -176,7 +177,7 @@ public function testReuseStatementWithParameterBoundByReference()
176
177
/**
177
178
* @dataProvider emptyFetchProvider
178
179
*/
179
- public function testFetchFromNonExecutedStatement (callable $ fetch , $ expected )
180
+ public function testFetchFromNonExecutedStatement (Closure $ fetch , $ expected )
180
181
{
181
182
$ stmt = $ this ->_conn ->prepare ('SELECT id FROM stmt_test ' );
182
183
@@ -193,7 +194,7 @@ public function testCloseCursorOnNonExecutedStatement()
193
194
/**
194
195
* @dataProvider emptyFetchProvider
195
196
*/
196
- public function testFetchFromNonExecutedStatementWithClosedCursor (callable $ fetch , $ expected )
197
+ public function testFetchFromNonExecutedStatementWithClosedCursor (Closure $ fetch , $ expected )
197
198
{
198
199
$ stmt = $ this ->_conn ->prepare ('SELECT id FROM stmt_test ' );
199
200
$ stmt ->closeCursor ();
@@ -204,7 +205,7 @@ public function testFetchFromNonExecutedStatementWithClosedCursor(callable $fetc
204
205
/**
205
206
* @dataProvider emptyFetchProvider
206
207
*/
207
- public function testFetchFromExecutedStatementWithClosedCursor (callable $ fetch , $ expected )
208
+ public function testFetchFromExecutedStatementWithClosedCursor (Closure $ fetch , $ expected )
208
209
{
209
210
$ this ->_conn ->insert ('stmt_test ' , array ('id ' => 1 ));
210
211
0 commit comments