program test case

This commit is contained in:
lanzongjun
2022-09-22 11:11:22 +08:00
parent 0165845882
commit 70a1559e4f
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/program.class.php';
$db->switchDB();
/**
title=测试 programModel::createDefaultProgram();
cid=1
pid=1
创建默认项目集并返回ID >> 751
*/
global $tester;
$test = new programTest();
$result = $test->createDefaultProgram();
r($result) && p('') && e('751'); // 创建默认项目集并返回ID
$db->restoreDB();