* Delete useless unit test.

This commit is contained in:
zhouxin
2023-12-23 15:10:28 +08:00
parent 3d73bf863d
commit af401829ac
@@ -1,23 +0,0 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('project')->config('project_status', $useCommon = true, $levels = 4)->gen(10);
zdTable('project')->config('execution', $useCommon = true, $levels = 4)->gen(20, false);
zdTable('task')->config('task', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
/**
title=count_of_dealyed_task_in_user
cid=1
pid=1
*/
r(count($calc->getResult())) && p('') && e('8'); // 测试分组数。
r($calc->getResult(array('user' => 'dev'))) && p('0:value') && e('27'); // 测试用户dev。