Files
EasySoft-ZenTaoPMS/test/model/weekly/gettips.php
T
2022-05-07 08:37:36 +08:00

31 lines
1.2 KiB
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/weekly.class.php';
su('admin');
/**
title=测试 weeklyModel->getTips();
cid=1
pid=1
测试type值为progressdata值为0 >> 0
测试type值为progressdata值为1 >> 0
测试type值为costdata值为0 >> 0
测试type值为costdata值为1 >> 0
测试type值为空,data值为0 >> 0
测试type值为空,data值为1 >> 0
*/
$typeList = array('progress', 'cost', '');
$dataList = array(0, 1);
$weekly = new weeklyTest();
r($weekly->getTipsTest($typeList[0], $dataList[0])) && p() && e('0'); //测试type值为progressdata值为0
r($weekly->getTipsTest($typeList[0], $dataList[1])) && p() && e('0'); //测试type值为progressdata值为1
r($weekly->getTipsTest($typeList[1], $dataList[0])) && p() && e('0'); //测试type值为costdata值为0
r($weekly->getTipsTest($typeList[1], $dataList[1])) && p() && e('0'); //测试type值为costdata值为1
r($weekly->getTipsTest($typeList[2], $dataList[0])) && p() && e('0'); //测试type值为空,data值为0
r($weekly->getTipsTest($typeList[2], $dataList[1])) && p() && e('0'); //测试type值为空,data值为1