#!/usr/bin/env php getPairsByProgram(); cid=1 pid=1 */ global $tester; $tester->loadModel('project'); $t_project = array('', 0, 1, 'wait', 'noclosed'); r(count($tester->project->getPairsByProgram('', 'all', true))) && p() && e('110'); // 查找管理员可查看的所有项目数量 r(count($tester->project->getPairsByProgram(0))) && p() && e('20'); // 查找独立项目数量 r(count($tester->project->getPairsByProgram(1))) && p() && e('9'); // 查找管理员可查看的所属项目集ID为1的项目数量 r(count($tester->project->getPairsByProgram(1, 'wait'))) && p() && e('3'); // 查找管理员可查看的所属项目集ID为1且状态为wait的项目数量 r(count($tester->project->getPairsByProgram(1, 'noclosed'))) && p() && e('9'); // 查找管理员可查看的所属项目集ID为1且状态不为closed的项目数量