#!/usr/bin/env php id->range('1-5'); $table->name->range('用户统计,项目统计,任务统计,Bug统计,测试统计'); $table->scope->range('system{2},product{3}'); $table->dateType->range('nodate,day{2},week,month'); $table->gen(5); su('admin'); $screenTest = new screenModelTest(); r($screenTest->getMetricCardOptionTest(1, array(), null)) && p('displayType') && e('normal'); r($screenTest->getMetricCardOptionTest(1, array(), null)) && p('cardType') && e('A'); r($screenTest->getMetricCardOptionTest(2, array(array('field1' => 'value1')), null)) && p('scope') && e('system'); r($screenTest->getMetricCardOptionTest(4, array(array('name' => 'test1'), array('name' => 'test2')), null)) && p('filterValue:name') && e('test1'); r($screenTest->getMetricCardOptionTest(5, array(array('id' => 1, 'status' => 'active')), null)) && p('filterValue:status') && e('active');