1
0
mirror of synced 2025-01-31 12:32:59 +03:00

38 lines
793 B
PHP
Raw Normal View History

2008-09-12 17:25:38 +00:00
<?php
namespace Doctrine\Tests\Mocks;
2009-01-04 16:15:32 +00:00
// THIS FILE DOES NOT EXIST YET!!!!
//require_once 'lib/mocks/Doctrine_SchemaManagerMock.php';
2008-09-12 17:25:38 +00:00
class DriverMock implements \Doctrine\DBAL\Driver
2008-09-12 17:25:38 +00:00
{
public function connect(array $params, $username = null, $password = null, array $driverOptions = array())
{
return new DriverConnectionMock();
2008-09-12 17:25:38 +00:00
}
/**
* Constructs the Sqlite PDO DSN.
*
* @return string The DSN.
* @override
*/
protected function _constructPdoDsn(array $params)
{
return "";
}
public function getDatabasePlatform()
{
return new DatabasePlatformMock();
2008-09-12 17:25:38 +00:00
}
public function getSchemaManager(\Doctrine\DBAL\Connection $conn)
2008-09-12 17:25:38 +00:00
{
return new SchemaManagerMock($conn);
2008-09-12 17:25:38 +00:00
}
}