1
0
mirror of synced 2025-02-21 14:43:14 +03:00

Forward compatibility with DBAL master

This commit is contained in:
Benjamin Eberlei 2011-11-12 12:56:44 +01:00
parent a14ba1e561
commit 450d92872a
3 changed files with 45 additions and 28 deletions

View File

@ -30,7 +30,7 @@ class ConnectionMock extends \Doctrine\DBAL\Connection
/**
* @override
*/
public function insert($tableName, array $data)
public function insert($tableName, array $data, array $types = array())
{
$this->_inserts[$tableName][] = $data;
}

View File

@ -87,4 +87,11 @@ class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform
{
}
/**
* Gets the SQL Snippet used to declare a BLOB column type.
*/
public function getBlobTypeDeclarationSQL(array $field)
{
throw DBALException::notSupported(__METHOD__);
}
}

View File

@ -8,7 +8,7 @@ namespace Doctrine\Tests\Mocks;
*
* @author Roman Borschel <roman@code-factory.org>
*/
class HydratorMockStatement implements \Doctrine\DBAL\Driver\Statement
class HydratorMockStatement implements \IteratorAggregate, \Doctrine\DBAL\Driver\Statement
{
private $_resultSet;
@ -98,4 +98,14 @@ class HydratorMockStatement implements \Doctrine\DBAL\Driver\Statement
public function rowCount()
{
}
public function getIterator()
{
return $this->_resultSet;
}
public function setFetchMode($fetchMode)
{
}
}