Files
EasySoft-ZenTaoPMS/test/model/project/start.php
2022-03-16 09:42:37 +08:00

27 lines
977 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::start();
cid=1
pid=1
开始id为81状态是suspended的项目(代码缺失elBegan参数报警告) >> 1
开始id为83状态是wait的项目 >> 1
开始id为82状态是closed的项目 >> 0
开始id为85状态是doing的项目 >> 0
*/
$project = new Project('admin');
$statusId = array(81, 83, 82, 85);
r($project->checkStatusBegin($statusId[0])) && p() && e('1'); // 开始id为81状态是suspended的项目(代码缺失elBegan参数报警告)
r($project->checkStatusBegin($statusId[1])) && p() && e('1'); // 开始id为83状态是wait的项目
r($project->checkStatusBegin($statusId[2])) && p() && e('0'); // 开始id为82状态是closed的项目
r($project->checkStatusBegin($statusId[3])) && p() && e('0'); // 开始id为85状态是doing的项目
system("./ztest init");