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

23 lines
685 B
PHP

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/screen.class.php';
/**
title=测试 screenModel->getList();
cid=1
pid=1
测试获取dimension=0的数据 >> 0
测试获取dimension=1的数据 >> 5
测试获取dimension=10000的数据 >> 0
*/
$screen = new screenTest();
$dimension = array(0, 1, 10000);
r(count($screen->getListTest($dimension[0]))) && p('') && e(0); //测试获取dimension=0的数据
r(count($screen->getListTest($dimension[1]))) && p('') && e(5); //测试获取dimension=1的数据
r(count($screen->getListTest($dimension[2]))) && p('') && e(0); //测试获取dimension=10000的数据