buildTableParameters() public method

Format parameters for create table
public buildTableParameters ( array $parameters, string $table = null ) : array
$parameters array The parameters to create SQL for.
$table string The table name.
return array
 /**
  * testBuildTableParameters method
  *
  * @return void
  */
 public function testBuildTableParameters()
 {
     $this->Dbo->cacheSources = $this->Dbo->testing = false;
     $data = array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'InnoDB');
     $result = $this->Dbo->buildTableParameters($data);
     $expected = array('DEFAULT CHARSET=utf8', 'COLLATE=utf8_unicode_ci', 'ENGINE=InnoDB');
     $this->assertEquals($expected, $result);
 }