2 declare(strict_types = 1);
38 'CHAR without length' => [
43 'CHAR with length' => [
48 'VARCHAR with length' => [
50 VarCharDataType::class,
67 $this->assertInstanceOf($className, $subject->dataType);
68 $this->assertSame($length, $subject->dataType->getLength());
76 $this->expectException(StatementException::class);
77 $this->expectExceptionCode(1471504822);
78 $this->expectExceptionMessage(
'The current data type requires a field length definition');
79 (
new Parser(
'CREATE TABLE `aTable`(`aField` VARCHAR);'))->parse();