29 lines
650 B
PHP
Executable File
29 lines
650 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
/**
|
|
|
|
title=instanceModel->getServiceCount();
|
|
timeout=0
|
|
cid=1
|
|
|
|
- 查看获取到的所有服务的数量 @1
|
|
- 查看获取到的所有服务的数量 @1
|
|
|
|
*/
|
|
|
|
zenData('user')->gen(5);
|
|
zenData('instance')->gen(5);
|
|
zenData('space')->gen(5);
|
|
|
|
global $tester, $app;
|
|
$tester->loadModel('instance');
|
|
|
|
su('admin');
|
|
$instance = $tester->instance->getServiceCount();
|
|
r($instance) && p('') && e('1'); // 查看获取到的所有服务的数量
|
|
|
|
su('user1');
|
|
$instance = $tester->instance->getServiceCount();
|
|
r($instance) && p('') && e('1'); // 查看获取到的所有服务的数量
|