Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / dbal / tests / Doctrine / Tests / DBAL / Mocks / MockPlatform.php
1 <?php
2
3 namespace Doctrine\Tests\DBAL\Mocks;
4
5 use Doctrine\DBAL\Platforms;
6
7 class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
8 {
9     /**
10      * Gets the SQL Snippet used to declare a BLOB column type.
11      */
12     public function getBlobTypeDeclarationSQL(array $field)
13     {
14         throw DBALException::notSupported(__METHOD__);
15     }
16
17     public function getBooleanTypeDeclarationSQL(array $columnDef) {}
18     public function getIntegerTypeDeclarationSQL(array $columnDef) {}
19     public function getBigIntTypeDeclarationSQL(array $columnDef) {}
20     public function getSmallIntTypeDeclarationSQL(array $columnDef) {}
21     public function _getCommonIntegerTypeDeclarationSQL(array $columnDef) {}
22
23     public function getVarcharTypeDeclarationSQL(array $field)
24     {
25         return "DUMMYVARCHAR()";
26     }
27
28     /** @override */
29     public function getClobTypeDeclarationSQL(array $field)
30     {
31         return 'DUMMYCLOB';
32     }
33
34     public function getVarcharDefaultLength()
35     {
36         return 255;
37     }
38
39     public function getName()
40     {
41         return 'mock';
42     }
43     protected function initializeDoctrineTypeMappings() {
44     }
45     protected function getVarcharTypeDeclarationSQLSnippet($length, $fixed)
46     {
47
48     }
49 }