企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
###测试类使用 **一下$testObj等同于一个继承\msqphp\test\Test类的object** ####函数测试 * * * * * ~~~ $testObj ->func(string $func_name) ->args(arg1, arg2...) ->result(miexd $result) ->test(); 例: function getInfo(string $name) : string { return '人名:'.$name; } $testObj ->func('getInfo') ->args('张三') ->result('人名:张三') ->test(); 输出: '函数:getInfo''测试成功;' ~~~ 对象方法测试 * * * * * ~~~ $testObj ->object(object $object) ->method(string $method) ->args(arg1, arg2, arg3 .....) ->result(miexd $result) ->test(); ~~~ 类方法测试 * * * * * ~~~ $testObj ->class(string $class) ->method(string $method) ->args(arg1, arg2, arg3 .....) ->result(miexd $result) ->test(); ~~~ 类属性测试 * * * * * ~~~ $testObj ->class(string $class) ->property(string $property) ->value(miexd $value) ->test(); ~~~ 对象属性测试 * * * * * ~~~ $testObj ->object(object $object) ->property(string $property) ->value(miexd $value) ->test(); ~~~