Skip to content

Commit fce748f

Browse files
committed
test for buildTypeWithLength
1 parent 7f0d9e2 commit fce748f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/TeradataDatatypeTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,18 @@ public function testSqlDefinition($type, $options, $expectedDefinition)
110110
self::assertEquals($expectedDefinition . $suffix, $definition->getSQLDefinition());
111111
}
112112

113+
/**
114+
* @param string $type
115+
* @param array|null $options
116+
* @param string $expectedDefinition
117+
* @dataProvider expectedSqlDefinitions
118+
*/
119+
public function testBuildTypeWithLength($type, $options, $expectedDefinition)
120+
{
121+
$definition = new Teradata($type, $options);
122+
self::assertEquals($expectedDefinition, $definition->buildTypeWithLength());
123+
}
124+
113125

114126
public function testSqlDefinitionWhenLatin()
115127
{

0 commit comments

Comments
 (0)