32 lines
1 KiB
PHP
Executable file
32 lines
1 KiB
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
|
su('admin');
|
|
|
|
zenData('bug')->loadYaml('activatedcount')->gen(10);
|
|
|
|
/**
|
|
|
|
title=bugModel->getDataOfBugsPerActivatedCount();
|
|
timeout=0
|
|
cid=15364
|
|
|
|
- 获取 bug 激活次数为 0 的数据
|
|
- 第0条的name属性 @激活次数:0
|
|
- 第0条的value属性 @5
|
|
|
|
- 获取 bug 激活次数为 1 的数据
|
|
- 第1条的name属性 @激活次数:1
|
|
- 第1条的value属性 @3
|
|
|
|
- 获取 bug 激活次数为 2 的数据
|
|
- 第2条的name属性 @激活次数:2
|
|
- 第2条的value属性 @2
|
|
|
|
*/
|
|
|
|
$bug = new bugModelTest();
|
|
r($bug->getDataOfBugsPerActivatedCountTest()) && p('0:name,value') && e('激活次数:0,5'); //获取 bug 激活次数为 0 的数据
|
|
r($bug->getDataOfBugsPerActivatedCountTest()) && p('1:name,value') && e('激活次数:1,3'); //获取 bug 激活次数为 1 的数据
|
|
r($bug->getDataOfBugsPerActivatedCountTest()) && p('2:name,value') && e('激活次数:2,2'); //获取 bug 激活次数为 2 的数据
|