2 declare(strict_types = 1);
38 'BINARY without length' => [
40 BinaryDataType::class,
43 'BINARY with length' => [
45 BinaryDataType::class,
48 'VARBINARY with length' => [
50 VarBinaryDataType::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` VARBINARY);'))->parse();