Files
EasySoft-ZenTaoPMS/test/model/project/gettotalbugbyproject.php
2022-03-16 10:01:30 +08:00

23 lines
693 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/project.class.php';
/**
title=测试 projectModel::getTotalBugByProject;
cid=1
pid=1
状态一致时正常打印id为11的项目bug数量 >> 3
*/
$project = new Project('admin');
$getBug = array(11, 12, 13, 14, 15, 16, 27);
//var_dump($project->getTotalBugBy($getBug, 'active'));die;
r($project->getTotalBugBy($getBug, 'active')) && p(11) && e('3'); //状态一致时正常打印id为11的项目bug数量
r($project->getTotalBugBy($getBug, 'active')) && p(27) && e(''); //在状态status不一致的情况下打印id为27的项目bug数量