znt/module/metric/test/model/getdataset.php

29 lines
953 B
PHP
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
/**
title=测试 metricModel::getDataset();
timeout=0
cid=17087
- 执行metricTest模块的getDatasetTest方法 属性className @dataset
- 执行metricTest模块的getDatasetTest方法 属性dao @object
- 执行metricTest模块的getDatasetTest方法 属性config @object
- 执行metricTest模块的getDatasetTest方法 属性vision @string
- 执行metricTest模块的getDatasetTest方法参数是null 属性className @dataset
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
su('admin');
$metricTest = new metricModelTest();
r($metricTest->getDatasetTest()) && p('className') && e('dataset');
r($metricTest->getDatasetTest()) && p('dao') && e('object');
r($metricTest->getDatasetTest()) && p('config') && e('object');
r($metricTest->getDatasetTest()) && p('vision') && e('string');
r($metricTest->getDatasetTest(null)) && p('className') && e('dataset');