#!/usr/bin/env php gen(5); su('admin'); zdTable('project')->config('program')->gen(30); zdTable('product')->config('product')->gen(30); zdTable('task')->gen(0); zdTable('projectproduct')->gen(0); zdTable('productplan')->gen(0); zdTable('release')->gen(0); zdTable('team')->gen(0); /** title=测试 programModel::getKanbanStatisticData(); timeout=0 cid=1 */ $programTester = new programTest(); $statistic = $programTester->getKanbanStatisticDataTest(); r(count($statistic[0])) && p() && e('9'); // 获取项目集的产品数量 r(count($statistic[1])) && p() && e('0'); // 获取项目集的计划数量 r(count($statistic[2])) && p() && e('0'); // 获取项目集的发布数量 r(count($statistic[3])) && p() && e('0'); // 获取项目集的项目数量 r(count($statistic[4])) && p() && e('2'); // 获取项目集的进行中的执行数量 r(count($statistic[5])) && p() && e('0'); // 获取项目集的工时的数量 r(count($statistic[6])) && p() && e('14'); // 获取项目集的项目进度的数量