Files
EasySoft-ZenTaoPMS/module/screen/test/model/buildcomponentlist.php
T

22 lines
595 B
PHP
Executable File

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/screen.unittest.class.php';
/**
title=测试 screenModel->buildComponentList();
timeout=0
cid=1
- 测试带有空元素的情况下,生成的组件列表数量是否正确。 @1
*/
$screen = new screenTest();
$componentList = $screen->getAllComponent(array('type' => 'line'));
$list = array(current($componentList), '');
r(count($screen->buildComponentListTest($list))) && p('') && e('1'); //测试带有空元素的情况下,生成的组件列表数量是否正确。