Files
EasySoft-ZenTaoPMS/module/pivot/test/model/processpivot.php
T
2025-09-25 09:16:27 +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
/**
title=测试 pivotModel::processPivot();
timeout=0
cid=0
- 步骤1:正常对象输入 @1
- 步骤2:数组输入处理 @1
- 步骤3:空对象处理 @1
- 步骤4:空数组处理 @1
- 步骤5:数组模式业务逻辑 @1
- 步骤6:类型控制验证 @1
- 步骤7JSON解析验证 @1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/pivot.unittest.class.php';
$pivot = new pivotTest();
r($pivot->processPivotTest('single_object_normal')) && p('') && e('1'); // 步骤1:正常对象输入
r($pivot->processPivotTest('array_input_normal')) && p('') && e('1'); // 步骤2:数组输入处理
r($pivot->processPivotTest('empty_object')) && p('') && e('1'); // 步骤3:空对象处理
r($pivot->processPivotTest('empty_array')) && p('') && e('1'); // 步骤4:空数组处理
r($pivot->processPivotTest('array_no_drill_processing')) && p('') && e('1'); // 步骤5:数组模式业务逻辑
r($pivot->processPivotTest('object_type_validation')) && p('') && e('1'); // 步骤6:类型控制验证
r($pivot->processPivotTest('settings_json_parsing')) && p('') && e('1'); // 步骤7JSON解析验证