Files
EasySoft-ZenTaoPMS/module/editor/test/model/getclassnamebypath.php
T
2025-09-25 09:15:54 +08:00

29 lines
935 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
/**
title=测试 editorModel::getClassNameByPath();
timeout=0
cid=0
- 测试步骤1module路径 @1
- 测试步骤2ext扩展路径 @1
- 测试步骤3extension路径 @1
- 测试步骤4:不包含特殊标识路径 @1
- 测试步骤5:空路径测试 @1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/editor.unittest.class.php';
su('admin');
$editor = new editorTest();
r($editor->getClassNameByPathTest(1)) && p() && e('1'); // 测试步骤1module路径
r($editor->getClassNameByPathTest(2)) && p() && e('1'); // 测试步骤2ext扩展路径
r($editor->getClassNameByPathTest(3)) && p() && e('1'); // 测试步骤3extension路径
r($editor->getClassNameByPathTest(4)) && p() && e('1'); // 测试步骤4:不包含特殊标识路径
r($editor->getClassNameByPathTest(5)) && p() && e('1'); // 测试步骤5:空路径测试