MockPlatform.php 689 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<?php

namespace Doctrine\Tests\DBAL\Mocks;

use Doctrine\DBAL\Platforms;

class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
{
    public function getIntegerTypeDeclarationSql(array $columnDef) {}
    public function getBigIntTypeDeclarationSql(array $columnDef) {}
    public function getSmallIntTypeDeclarationSql(array $columnDef) {}
    public function _getCommonIntegerTypeDeclarationSql(array $columnDef) {}
13 14 15 16 17 18 19 20 21 22 23

    public function getVarcharTypeDeclarationSql(array $field)
    {
        return "DUMMYVARCHAR()";
    }

    public function getVarcharDefaultLength()
    {
        return 255;
    }

24 25 26 27
    public function getName()
    {
        return 'mock';
    }
28
}