23 lines
688 B
PHP
Executable File
23 lines
688 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->getList();
|
|
timeout=0
|
|
cid=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的数据
|