2009-06-20 12:59:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\DBAL\Mocks;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Platforms;
|
|
|
|
|
|
|
|
class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
|
|
|
|
{
|
2009-09-05 02:44:45 +00:00
|
|
|
public function getBooleanTypeDeclarationSql(array $columnDef) {}
|
2009-06-20 12:59:33 +00:00
|
|
|
public function getIntegerTypeDeclarationSql(array $columnDef) {}
|
|
|
|
public function getBigIntTypeDeclarationSql(array $columnDef) {}
|
|
|
|
public function getSmallIntTypeDeclarationSql(array $columnDef) {}
|
|
|
|
public function _getCommonIntegerTypeDeclarationSql(array $columnDef) {}
|
2009-07-11 08:48:57 +00:00
|
|
|
|
|
|
|
public function getVarcharTypeDeclarationSql(array $field)
|
|
|
|
{
|
|
|
|
return "DUMMYVARCHAR()";
|
|
|
|
}
|
2009-10-01 12:00:14 +00:00
|
|
|
|
|
|
|
/** @override */
|
|
|
|
public function getClobTypeDeclarationSql(array $field)
|
|
|
|
{
|
|
|
|
return 'DUMMYCLOB';
|
|
|
|
}
|
2009-07-11 08:48:57 +00:00
|
|
|
|
|
|
|
public function getVarcharDefaultLength()
|
|
|
|
{
|
|
|
|
return 255;
|
|
|
|
}
|
|
|
|
|
2009-06-20 12:59:33 +00:00
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return 'mock';
|
|
|
|
}
|
2009-07-11 08:48:57 +00:00
|
|
|
}
|