public function test_mysql_list_fields_specialchars()
{
$this->skipForHHVM();
$this->getConnection('shim-test');
$result = mysql_query("CREATE TABLE IF NOT EXISTS `testing-3` (\n id int AUTO_INCREMENT,\n one varchar(255),\n two varchar(255),\n three varchar(255),\n four varchar(255),\n five varchar(255),\n six varchar(255),\n seven varchar(255),\n eight varchar(255),\n nine ENUM('one', 'two', '\\'three'),\n ten SET('one', 'two', '\\'\\'three'),\n eleven MEDIUMTEXT,\n INDEX one_idx (one),\n UNIQUE INDEX two_unq (two),\n INDEX three_four_idx (three, four),\n UNIQUE INDEX four_five_unq (four, five),\n INDEX seven_eight_idx (seven, eight),\n UNIQUE INDEX seven_eight_unq (seven, eight),\n PRIMARY KEY (id)\n ) CHARACTER SET latin1;");
$result = mysql_list_fields("shim-test", "testing-3");
$this->assertResult($result);
$i = 0;
while ($row = mysql_fetch_assoc($result)) {
$i++;
$this->assertEquals(['Field', 'Type', 'Null', 'Key', 'Default', 'Extra'], array_keys($row));
}
$this->assertEquals(12, $i);
return;
}