@@ -37,9 +37,7 @@ class MsSqlPlatformTest extends AbstractPlatformTestCase
{
$this->assertEquals('RLIKE',$this->_platform->getRegexpExpression(),'Regular expression operator is not correct');
$this->assertEquals('"',$this->_platform->getIdentifierQuoteCharacter(),'Identifier quote character is not correct');
$this->assertEquals('RAND()',$this->_platform->getRandomExpression(),'Random function is not correct');
$this->assertEquals('(column1 + column2 + column3)',$this->_platform->getConcatExpression('column1','column2','column3'),'Concatenation expression is not correct');
$this->assertEquals('CHARACTER SET utf8',$this->_platform->getCharsetFieldDeclaration('utf8'),'Charset declaration is not correct');
@@ -46,9 +46,7 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
{
$this->assertEquals('RLIKE',$this->_platform->getRegexpExpression(),'Regular expression operator is not correct');
$this->assertEquals('`',$this->_platform->getIdentifierQuoteCharacter(),'Quote character is not correct');
$this->assertEquals('RAND()',$this->_platform->getRandomExpression(),'Random function is not correct');
$this->assertEquals('CONCAT(column1, column2, column3)',$this->_platform->getConcatExpression('column1','column2','column3'),'Concatenation function is not correct');
$this->assertEquals('CHARACTER SET utf8',$this->_platform->getCharsetFieldDeclaration('utf8'),'Charset declaration is not correct');
@@ -48,18 +48,9 @@ class OraclePlatformTest extends AbstractPlatformTestCase
publicfunctiontestGeneratesSqlSnippets()
{
$this->assertEquals('"',$this->_platform->getIdentifierQuoteCharacter(),'Identifier quote character is not correct');
$this->assertEquals('dbms_random.value',$this->_platform->getRandomExpression(),'Random function is not correct');
$this->assertEquals('column1 || column2 || column3',$this->_platform->getConcatExpression('column1','column2','column3'),'Concatenation expression is not correct');
}
/**
* @expectedException Doctrine\DBAL\DBALException
*/
publicfunctiontestGetCharsetFieldDeclaration()
{
$this->assertEquals('CHARACTER SET utf8',$this->_platform->getCharsetFieldDeclaration('utf8'),'Charset declaration is not correct');
@@ -65,7 +65,6 @@ class PostgreSqlPlatformTest extends AbstractPlatformTestCase
{
$this->assertEquals('SIMILAR TO',$this->_platform->getRegexpExpression(),'Regular expression operator is not correct');
$this->assertEquals('"',$this->_platform->getIdentifierQuoteCharacter(),'Identifier quote character is not correct');
$this->assertEquals('RANDOM()',$this->_platform->getRandomExpression(),'Random function is not correct');
$this->assertEquals('column1 || column2 || column3',$this->_platform->getConcatExpression('column1','column2','column3'),'Concatenation expression is not correct');
$this->assertEquals('SUBSTR(column, 5)',$this->_platform->getSubstringExpression('column',5),'Substring expression without length is not correct');
$this->assertEquals('SUBSTR(column, 0, 5)',$this->_platform->getSubstringExpression('column',0,5),'Substring expression with length is not correct');