znt/module/custom/test/model/setconcept.php

26 lines
1.1 KiB
PHP
Executable file
Raw Permalink 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
/**
title=测试 customModel::setConcept();
timeout=0
cid=15924
- 测试sprintConcept值为1设置为项目产品冲刺模式 @1
- 测试sprintConcept值为0设置为项目产品迭代模式 @1
- 测试sprintConcept值为2设置为有效值2 @1
- 测试sprintConcept值为无效字符串 @1
- 测试sprintConcept值为空字符串 @1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
$customTester = new customModelTest();
r($customTester->setConceptTest('1')) && p() && e('1'); // 测试sprintConcept值为1设置为项目产品冲刺模式
r($customTester->setConceptTest('0')) && p() && e('1'); // 测试sprintConcept值为0设置为项目产品迭代模式
r($customTester->setConceptTest('2')) && p() && e('1'); // 测试sprintConcept值为2设置为有效值2
r($customTester->setConceptTest('abc')) && p() && e('1'); // 测试sprintConcept值为无效字符串
r($customTester->setConceptTest('')) && p() && e('1'); // 测试sprintConcept值为空字符串