Commit 373ae9ed authored by Luís Cobucci's avatar Luís Cobucci Committed by GitHub

Merge pull request #2858 from greg0ire/style_improvements

Style improvements
parents ec2ae937 e63cd3d7
......@@ -19,8 +19,6 @@
namespace Doctrine\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform;
/**
* Implementations should map a database type to a PHP DateTimeInterface instance.
* @internal
......
......@@ -19,8 +19,6 @@
namespace Doctrine\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform;
/**
* Implementations should map a database type to a PHP integer.
* @internal
......
......@@ -563,16 +563,16 @@ abstract class AbstractPlatformTestCase extends \Doctrine\Tests\DbalTestCase
}
}
public function testGetDefaultValueDeclarationSQLForDateType()
public function testGetDefaultValueDeclarationSQLForDateType() : void
{
$currentDateSql = $this->_platform->getCurrentDateSQL();
$field = array(
$field = [
'type' => Type::getType('date'),
'default' => $currentDateSql,
);
];
$this->assertEquals(
' DEFAULT '.$currentDateSql,
self::assertSame(
' DEFAULT ' . $currentDateSql,
$this->_platform->getDefaultValueDeclarationSQL($field)
);
}
......
......@@ -21,16 +21,16 @@ class SQLServer2008PlatformTest extends AbstractSQLServerPlatformTestCase
);
}
public function testGetDefaultValueDeclarationSQLForDateType()
public function testGetDefaultValueDeclarationSQLForDateType() : void
{
$currentDateSql = $this->_platform->getCurrentDateSQL();
$field = array(
$field = [
'type' => Type::getType('date'),
'default' => $currentDateSql,
);
];
$this->assertEquals(
" DEFAULT '".$currentDateSql."'",
self::assertSame(
" DEFAULT '" . $currentDateSql . "'",
$this->_platform->getDefaultValueDeclarationSQL($field)
);
}
......
......@@ -373,16 +373,16 @@ class SQLServer2012PlatformTest extends AbstractSQLServerPlatformTestCase
self::assertEquals($expectedSql, $sql);
}
public function testGetDefaultValueDeclarationSQLForDateType()
public function testGetDefaultValueDeclarationSQLForDateType() : void
{
$currentDateSql = $this->_platform->getCurrentDateSQL();
$field = array(
$field = [
'type' => Type::getType('date'),
'default' => $currentDateSql,
);
];
$this->assertEquals(
" DEFAULT '".$currentDateSql."'",
self::assertSame(
" DEFAULT '" . $currentDateSql . "'",
$this->_platform->getDefaultValueDeclarationSQL($field)
);
}
......
......@@ -59,16 +59,16 @@ class SQLServerPlatformTest extends AbstractSQLServerPlatformTestCase
);
}
public function testGetDefaultValueDeclarationSQLForDateType()
public function testGetDefaultValueDeclarationSQLForDateType() : void
{
$currentDateSql = $this->_platform->getCurrentDateSQL();
$field = array(
$field = [
'type' => Type::getType('date'),
'default' => $currentDateSql,
);
];
$this->assertEquals(
" DEFAULT '".$currentDateSql."'",
self::assertSame(
" DEFAULT '" . $currentDateSql . "'",
$this->_platform->getDefaultValueDeclarationSQL($field)
);
}
......
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