public static function insert($tableName, array $recordData)
    {
        if ($tableName === '') {
            throw new \InvalidArgumentException('The table name must not be empty.', 1331315544);
        }
        if (empty($recordData)) {
            throw new \InvalidArgumentException('$recordData must not be empty.', 1331315553);
        }

        self::enableQueryLogging();
        $dbResult = self::getDatabaseConnection()->exec_INSERTquery(
            $tableName,
            $recordData
        );
        if (!$dbResult) {
            throw new \Tx_Phpunit_Exception_Database(1334439765);
        }

        return self::getDatabaseConnection()->sql_insert_id();
    }