1
0
mirror of synced 2025-01-05 16:53:21 +03:00
doctrine2/tests/lib/mocks/Doctrine_DriverMock.php
guilhermeblanco c8e4e7e7ab Small changes to get Query tests running again.
Fixed wrong DQL in IdentifierRecognitionTest.php
2008-09-13 06:34:47 +00:00

38 lines
916 B
PHP

<?php
require_once 'lib/mocks/Doctrine_DriverConnectionMock.php';
require_once 'lib/mocks/Doctrine_DatabasePlatformMock.php';
// THIS FILE DOES NOT EXIST YET!!!!
//require_once 'lib/mocks/Doctrine_SchemaManagerMock.php';
class Doctrine_DriverMock implements Doctrine_DBAL_Driver
{
public function connect(array $params, $username = null, $password = null, array $driverOptions = array())
{
return new Doctrine_DriverConnectionMock();
}
/**
* Constructs the Sqlite PDO DSN.
*
* @return string The DSN.
* @override
*/
protected function _constructPdoDsn(array $params)
{
return "";
}
public function getDatabasePlatform()
{
return new Doctrine_DatabasePlatformMock();
}
public function getSchemaManager(Doctrine_DBAL_Connection $conn)
{
return new Doctrine_SchemaManagerMock($conn);
}
}
?>