Dshafik\MySQL\Tests\MySqlShimTest::test_mysql_list_fields PHP Method

test_mysql_list_fields() public method

    public function test_mysql_list_fields()
    {
        $this->skipForHHVM();
        $mysql = $this->getConnection();
        $sql = "SHOW CREATE TABLE testing";
        $result = mysql_list_fields("shim_test", "testing", $mysql);
        $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;
    }
MySqlShimTest