Remove useless assertion message that make lines exceed the length limit

parent 85bc13de
...@@ -56,9 +56,9 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase ...@@ -56,9 +56,9 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase
public function testGeneratesSqlSnippets(): void public function testGeneratesSqlSnippets(): void
{ {
self::assertEquals('RLIKE', $this->platform->getRegexpExpression(), 'Regular expression operator is not correct'); self::assertEquals('RLIKE', $this->platform->getRegexpExpression());
self::assertEquals('`', $this->platform->getIdentifierQuoteCharacter(), 'Quote character is not correct'); self::assertEquals('`', $this->platform->getIdentifierQuoteCharacter());
self::assertEquals('CONCAT(column1, column2, column3)', $this->platform->getConcatExpression('column1', 'column2', 'column3'), 'Concatenation function is not correct'); self::assertEquals('CONCAT(column1, column2, column3)', $this->platform->getConcatExpression('column1', 'column2', 'column3'));
} }
public function testGeneratesTransactionsCommands(): void public function testGeneratesTransactionsCommands(): void
...@@ -118,13 +118,11 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase ...@@ -118,13 +118,11 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase
); );
self::assertEquals( self::assertEquals(
'VARCHAR(50)', 'VARCHAR(50)',
$this->platform->getVarcharTypeDeclarationSQL(['length' => 50]), $this->platform->getVarcharTypeDeclarationSQL(['length' => 50])
'Variable string declaration is not correct'
); );
self::assertEquals( self::assertEquals(
'VARCHAR(255)', 'VARCHAR(255)',
$this->platform->getVarcharTypeDeclarationSQL([]), $this->platform->getVarcharTypeDeclarationSQL([])
'Long string declaration is not correct'
); );
} }
......
...@@ -148,11 +148,11 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa ...@@ -148,11 +148,11 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
public function testGeneratesSqlSnippets(): void public function testGeneratesSqlSnippets(): void
{ {
self::assertEquals('SIMILAR TO', $this->platform->getRegexpExpression(), 'Regular expression operator is not correct'); self::assertEquals('SIMILAR TO', $this->platform->getRegexpExpression());
self::assertEquals('"', $this->platform->getIdentifierQuoteCharacter(), 'Identifier quote character is not correct'); self::assertEquals('"', $this->platform->getIdentifierQuoteCharacter());
self::assertEquals('column1 || column2 || column3', $this->platform->getConcatExpression('column1', 'column2', 'column3'), 'Concatenation expression is not correct'); self::assertEquals('column1 || column2 || column3', $this->platform->getConcatExpression('column1', 'column2', 'column3'));
self::assertEquals('SUBSTRING(column FROM 5)', $this->platform->getSubstringExpression('column', 5), 'Substring expression without length is not correct'); self::assertEquals('SUBSTRING(column FROM 5)', $this->platform->getSubstringExpression('column', 5));
self::assertEquals('SUBSTRING(column FROM 1 FOR 5)', $this->platform->getSubstringExpression('column', 1, 5), 'Substring expression with length is not correct'); self::assertEquals('SUBSTRING(column FROM 1 FOR 5)', $this->platform->getSubstringExpression('column', 1, 5));
} }
public function testGeneratesTransactionCommands(): void public function testGeneratesTransactionCommands(): void
...@@ -276,13 +276,11 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa ...@@ -276,13 +276,11 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
); );
self::assertEquals( self::assertEquals(
'VARCHAR(50)', 'VARCHAR(50)',
$this->platform->getVarcharTypeDeclarationSQL(['length' => 50]), $this->platform->getVarcharTypeDeclarationSQL(['length' => 50])
'Variable string declaration is not correct'
); );
self::assertEquals( self::assertEquals(
'VARCHAR(255)', 'VARCHAR(255)',
$this->platform->getVarcharTypeDeclarationSQL([]), $this->platform->getVarcharTypeDeclarationSQL([])
'Long string declaration is not correct'
); );
} }
......
...@@ -70,8 +70,8 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas ...@@ -70,8 +70,8 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
self::assertEquals('CONVERT(date, GETDATE())', $this->platform->getCurrentDateSQL()); self::assertEquals('CONVERT(date, GETDATE())', $this->platform->getCurrentDateSQL());
self::assertEquals('CONVERT(time, GETDATE())', $this->platform->getCurrentTimeSQL()); self::assertEquals('CONVERT(time, GETDATE())', $this->platform->getCurrentTimeSQL());
self::assertEquals('CURRENT_TIMESTAMP', $this->platform->getCurrentTimestampSQL()); self::assertEquals('CURRENT_TIMESTAMP', $this->platform->getCurrentTimestampSQL());
self::assertEquals('"', $this->platform->getIdentifierQuoteCharacter(), 'Identifier quote character is not correct'); self::assertEquals('"', $this->platform->getIdentifierQuoteCharacter());
self::assertEquals('(column1 + column2 + column3)', $this->platform->getConcatExpression('column1', 'column2', 'column3'), 'Concatenation expression is not correct'); self::assertEquals('(column1 + column2 + column3)', $this->platform->getConcatExpression('column1', 'column2', 'column3'));
} }
public function testGeneratesTransactionsCommands(): void public function testGeneratesTransactionsCommands(): void
...@@ -132,13 +132,11 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas ...@@ -132,13 +132,11 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
); );
self::assertEquals( self::assertEquals(
'NVARCHAR(50)', 'NVARCHAR(50)',
$this->platform->getVarcharTypeDeclarationSQL(['length' => 50]), $this->platform->getVarcharTypeDeclarationSQL(['length' => 50])
'Variable string declaration is not correct'
); );
self::assertEquals( self::assertEquals(
'NVARCHAR(255)', 'NVARCHAR(255)',
$this->platform->getVarcharTypeDeclarationSQL([]), $this->platform->getVarcharTypeDeclarationSQL([])
'Long string declaration is not correct'
); );
self::assertSame('VARCHAR(MAX)', $this->platform->getClobTypeDeclarationSQL([])); self::assertSame('VARCHAR(MAX)', $this->platform->getClobTypeDeclarationSQL([]));
self::assertSame( self::assertSame(
......
...@@ -121,13 +121,13 @@ class OraclePlatformTest extends AbstractPlatformTestCase ...@@ -121,13 +121,13 @@ class OraclePlatformTest extends AbstractPlatformTestCase
{ {
$this->expectException(DBALException::class); $this->expectException(DBALException::class);
self::assertEquals('RLIKE', $this->platform->getRegexpExpression(), 'Regular expression operator is not correct'); self::assertEquals('RLIKE', $this->platform->getRegexpExpression());
} }
public function testGeneratesSqlSnippets(): void public function testGeneratesSqlSnippets(): void
{ {
self::assertEquals('"', $this->platform->getIdentifierQuoteCharacter(), 'Identifier quote character is not correct'); self::assertEquals('"', $this->platform->getIdentifierQuoteCharacter());
self::assertEquals('column1 || column2 || column3', $this->platform->getConcatExpression('column1', 'column2', 'column3'), 'Concatenation expression is not correct'); self::assertEquals('column1 || column2 || column3', $this->platform->getConcatExpression('column1', 'column2', 'column3'));
} }
public function testGeneratesTransactionsCommands(): void public function testGeneratesTransactionsCommands(): void
...@@ -195,13 +195,11 @@ class OraclePlatformTest extends AbstractPlatformTestCase ...@@ -195,13 +195,11 @@ class OraclePlatformTest extends AbstractPlatformTestCase
); );
self::assertEquals( self::assertEquals(
'VARCHAR2(50)', 'VARCHAR2(50)',
$this->platform->getVarcharTypeDeclarationSQL(['length' => 50]), $this->platform->getVarcharTypeDeclarationSQL(['length' => 50])
'Variable string declaration is not correct'
); );
self::assertEquals( self::assertEquals(
'VARCHAR2(255)', 'VARCHAR2(255)',
$this->platform->getVarcharTypeDeclarationSQL([]), $this->platform->getVarcharTypeDeclarationSQL([])
'Long string declaration is not correct'
); );
} }
......
...@@ -42,9 +42,9 @@ class SqlitePlatformTest extends AbstractPlatformTestCase ...@@ -42,9 +42,9 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
public function testGeneratesSqlSnippets(): void public function testGeneratesSqlSnippets(): void
{ {
self::assertEquals('REGEXP', $this->platform->getRegexpExpression(), 'Regular expression operator is not correct'); self::assertEquals('REGEXP', $this->platform->getRegexpExpression());
self::assertEquals('SUBSTR(column, 5, LENGTH(column))', $this->platform->getSubstringExpression('column', 5), 'Substring expression without length is not correct'); self::assertEquals('SUBSTR(column, 5, LENGTH(column))', $this->platform->getSubstringExpression('column', 5));
self::assertEquals('SUBSTR(column, 0, 5)', $this->platform->getSubstringExpression('column', 0, 5), 'Substring expression with length is not correct'); self::assertEquals('SUBSTR(column, 0, 5)', $this->platform->getSubstringExpression('column', 0, 5));
} }
public function testGeneratesTransactionCommands(): void public function testGeneratesTransactionCommands(): void
...@@ -236,13 +236,11 @@ class SqlitePlatformTest extends AbstractPlatformTestCase ...@@ -236,13 +236,11 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
); );
self::assertEquals( self::assertEquals(
'VARCHAR(50)', 'VARCHAR(50)',
$this->platform->getVarcharTypeDeclarationSQL(['length' => 50]), $this->platform->getVarcharTypeDeclarationSQL(['length' => 50])
'Variable string declaration is not correct'
); );
self::assertEquals( self::assertEquals(
'VARCHAR(255)', 'VARCHAR(255)',
$this->platform->getVarcharTypeDeclarationSQL([]), $this->platform->getVarcharTypeDeclarationSQL([])
'Long string declaration is not correct'
); );
} }
......
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