Commit 1b1effbd authored by Marco Pivetta's avatar Marco Pivetta

#2546 s/callable/Closure to please the ancient PHP version gods

parent b713ba74
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace Doctrine\Tests\DBAL\Functional; namespace Doctrine\Tests\DBAL\Functional;
use Closure;
use Doctrine\DBAL\Driver\Statement; use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
...@@ -176,7 +177,7 @@ EOF ...@@ -176,7 +177,7 @@ EOF
/** /**
* @dataProvider emptyFetchProvider * @dataProvider emptyFetchProvider
*/ */
public function testFetchFromNonExecutedStatement(callable $fetch, $expected) public function testFetchFromNonExecutedStatement(Closure $fetch, $expected)
{ {
$stmt = $this->_conn->prepare('SELECT id FROM stmt_test'); $stmt = $this->_conn->prepare('SELECT id FROM stmt_test');
...@@ -193,7 +194,7 @@ EOF ...@@ -193,7 +194,7 @@ EOF
/** /**
* @dataProvider emptyFetchProvider * @dataProvider emptyFetchProvider
*/ */
public function testFetchFromNonExecutedStatementWithClosedCursor(callable $fetch, $expected) public function testFetchFromNonExecutedStatementWithClosedCursor(Closure $fetch, $expected)
{ {
$stmt = $this->_conn->prepare('SELECT id FROM stmt_test'); $stmt = $this->_conn->prepare('SELECT id FROM stmt_test');
$stmt->closeCursor(); $stmt->closeCursor();
...@@ -204,7 +205,7 @@ EOF ...@@ -204,7 +205,7 @@ EOF
/** /**
* @dataProvider emptyFetchProvider * @dataProvider emptyFetchProvider
*/ */
public function testFetchFromExecutedStatementWithClosedCursor(callable $fetch, $expected) public function testFetchFromExecutedStatementWithClosedCursor(Closure $fetch, $expected)
{ {
$this->_conn->insert('stmt_test', array('id' => 1)); $this->_conn->insert('stmt_test', array('id' => 1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment