public function buildIndex($table, $nonUnique, $keyName, $seqInIndex, $columnName, $collation, $cardinality, $subPart, $packed, $isNull, $indexType, $comment, $indexComment)
 {
     $tableAttribute = StringLiteral::fromNative($table);
     $nonUniqueAttribute = StringLiteral::fromNative($nonUnique);
     $keyNameAttribute = StringLiteral::fromNative($keyName);
     $seqInIndexAttribute = StringLiteral::fromNative($seqInIndex);
     $columnNameAttribute = StringLiteral::fromNative($columnName);
     $collationAttribute = StringLiteral::fromNative($collation);
     $cardinalityAttribute = StringLiteral::fromNative($cardinality);
     $subPartAttribute = null === $subPart ? NullValue::create() : StringLiteral::fromNative($subPart);
     $packedAttribute = null === $packed ? NullValue::create() : StringLiteral::fromNative($packed);
     $isNullAttribute = (bool) $isNull;
     $indexTypeAttribute = StringLiteral::fromNative($indexType);
     $commentAttribute = StringLiteral::fromNative($comment);
     $indexCommentAttribute = StringLiteral::fromNative($indexComment);
     return TableIndex::build($tableAttribute, $nonUniqueAttribute, $keyNameAttribute, $seqInIndexAttribute, $columnNameAttribute, $collationAttribute, $cardinalityAttribute, $subPartAttribute, $packedAttribute, $isNullAttribute, $indexTypeAttribute, $commentAttribute, $indexCommentAttribute);
 }
 /**
  * Returns null string.
  */
 public function testReturnsNullString()
 {
     $instance = NullValue::create();
     $value = $instance->toNative();
     static::assertNull($value);
 }
 /**
  * Will throw exception because the method should not be called directly.
  *
  * @expectedException \BadMethodCallException
  * @expectedExceptionMessage Cannot create a NullValue object via this method.
  */
 public function testWillThrowExceptionBecauseTheMethodShouldNotBeCalledDirectly()
 {
     NullValue::fromNative();
 }
 /**
  * Returns empty string.
  */
 public function testReturnsEmptyString()
 {
     $instance = NullValue::create();
     $value = (string) $instance;
     static::assertSame('', $value);
 }
 /**
  * Create a new instance of self.
  */
 public function testCreateANewInstanceOfSelf()
 {
     $instance = NullValue::create();
     static::assertInstanceOf(NullValue::class, $instance);
 }