Document platform

parent 76fc0109
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace Doctrine\Tests\DBAL\Platforms; namespace Doctrine\Tests\DBAL\Platforms;
use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff; use Doctrine\DBAL\Schema\ColumnDiff;
use Doctrine\DBAL\Schema\Comparator; use Doctrine\DBAL\Schema\Comparator;
...@@ -16,6 +17,9 @@ use function sprintf; ...@@ -16,6 +17,9 @@ use function sprintf;
abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCase abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCase
{ {
/** @var PostgreSqlPlatform */
protected $platform;
public function getGenerateTableSql() : string public function getGenerateTableSql() : string
{ {
return 'CREATE TABLE test (id SERIAL NOT NULL, test VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'; return 'CREATE TABLE test (id SERIAL NOT NULL, test VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))';
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace Doctrine\Tests\DBAL\Platforms; namespace Doctrine\Tests\DBAL\Platforms;
use Doctrine\DBAL\DBALException; use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Platforms\SQLServerPlatform;
use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff; use Doctrine\DBAL\Schema\ColumnDiff;
use Doctrine\DBAL\Schema\Index; use Doctrine\DBAL\Schema\Index;
...@@ -14,6 +15,9 @@ use function sprintf; ...@@ -14,6 +15,9 @@ use function sprintf;
abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCase abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCase
{ {
/** @var SQLServerPlatform */
protected $platform;
public function getGenerateTableSql() : string public function getGenerateTableSql() : string
{ {
return 'CREATE TABLE test (id INT IDENTITY NOT NULL, test NVARCHAR(255), PRIMARY KEY (id))'; return 'CREATE TABLE test (id INT IDENTITY NOT NULL, test NVARCHAR(255), PRIMARY KEY (id))';
......
...@@ -22,6 +22,9 @@ use function uniqid; ...@@ -22,6 +22,9 @@ use function uniqid;
class OraclePlatformTest extends AbstractPlatformTestCase class OraclePlatformTest extends AbstractPlatformTestCase
{ {
/** @var OraclePlatform */
protected $platform;
/** /**
* @return mixed[][] * @return mixed[][]
*/ */
...@@ -76,6 +79,9 @@ class OraclePlatformTest extends AbstractPlatformTestCase ...@@ -76,6 +79,9 @@ class OraclePlatformTest extends AbstractPlatformTestCase
$platform->assertValidIdentifier($identifier); $platform->assertValidIdentifier($identifier);
} }
/**
* @return OraclePlatform
*/
public function createPlatform() : AbstractPlatform public function createPlatform() : AbstractPlatform
{ {
return new OraclePlatform(); return new OraclePlatform();
......
...@@ -8,6 +8,14 @@ use Doctrine\DBAL\Types\Types; ...@@ -8,6 +8,14 @@ use Doctrine\DBAL\Types\Types;
class PostgreSQL92PlatformTest extends AbstractPostgreSqlPlatformTestCase class PostgreSQL92PlatformTest extends AbstractPostgreSqlPlatformTestCase
{ {
/** @var PostgreSQL92Platform */
protected $platform;
/**
* {@inheritdoc}
*
* @return PostgreSQL92Platform
*/
public function createPlatform() : AbstractPlatform public function createPlatform() : AbstractPlatform
{ {
return new PostgreSQL92Platform(); return new PostgreSQL92Platform();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment