Abide by the new coding style

parent ec04c4d8
......@@ -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