MockPlatform.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace Doctrine\Tests\DBAL\Mocks;
  3. use Doctrine\DBAL\Platforms;
  4. class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
  5. {
  6. public function getBooleanTypeDeclarationSQL(array $columnDef) {}
  7. public function getIntegerTypeDeclarationSQL(array $columnDef) {}
  8. public function getBigIntTypeDeclarationSQL(array $columnDef) {}
  9. public function getSmallIntTypeDeclarationSQL(array $columnDef) {}
  10. public function _getCommonIntegerTypeDeclarationSQL(array $columnDef) {}
  11. public function getVarcharTypeDeclarationSQL(array $field)
  12. {
  13. return "DUMMYVARCHAR()";
  14. }
  15. /** @override */
  16. public function getClobTypeDeclarationSQL(array $field)
  17. {
  18. return 'DUMMYCLOB';
  19. }
  20. public function getVarcharDefaultLength()
  21. {
  22. return 255;
  23. }
  24. public function getName()
  25. {
  26. return 'mock';
  27. }
  28. protected function initializeDoctrineTypeMappings() {
  29. }
  30. protected function getVarcharTypeDeclarationSQLSnippet($length, $fixed)
  31. {
  32. }
  33. }