parseQuery() public static method

..) - type of statement, is it part of DDL or DML ? - tablename
public static parseQuery ( string $query ) : mixed
$query string query
return mixed Array containing identifier, type and tablename.
 /**
  * Test for Tracker::parseQuery
  *
  * @param string $query                  Query to parse
  * @param string $type                   Expected type
  * @param string $identifier             Expected identifier
  * @param string $tablename              Expected tablename
  * @param string $db                     Expected dbname
  * @param string $tablename_after_rename Expected name after rename
  *
  * @return void
  *
  * @test
  * @dataProvider parseQueryData
  */
 public function testParseQuery($query, $type, $identifier, $tablename, $db = null, $tablename_after_rename = null)
 {
     $result = Tracker::parseQuery($query);
     $this->assertEquals($type, $result['type']);
     $this->assertEquals($identifier, $result['identifier']);
     $this->assertEquals($tablename, $result['tablename']);
     if ($db) {
         $this->assertEquals($db, $GLOBALS['db']);
     }
     if ($tablename_after_rename) {
         $this->assertEquals($result['tablename_after_rename'], $tablename_after_rename);
     }
 }