#!/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); global $app; $app->rawModule = 'program'; $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'); // 获取项目集的进行中的执行数量