#!/usr/bin/env php getFieldsWithAliasTest('SELECT id, account, realname FROM zt_user')) && p('id,account,realname') && e('id,account,realname'); // 测试2: 带别名字段解析 r($biTest->getFieldsWithAliasTest('SELECT id AS user_id, account AS username FROM zt_user')) && p('user_id,username') && e('id,account'); // 测试3: 表别名字段解析 r($biTest->getFieldsWithAliasTest('SELECT u.id, u.account, u.realname FROM zt_user u')) && p('id,account,realname') && e('id,account,realname'); // 测试4: 多表连接解析 r($biTest->getFieldsWithAliasTest('SELECT u.account, p.name FROM zt_user u LEFT JOIN zt_product p ON u.id = p.id')) && p('account,name') && e('account,name'); // 测试5: 无效SQL处理 r($biTest->getFieldsWithAliasTest('INVALID SQL STATEMENT')) && p() && e('0');