#!/usr/bin/env php - 执行 @hello world from hello()
- 执行 @1 - 执行 @1 - 执行 @1 */ include dirname(__FILE__, 5) . '/test/lib/init.php'; su('admin'); $zen = initReference('misc'); $func = $zen->getMethod('hello'); function testMiscHello() { global $zen, $func; $instance = $zen->newInstance(); return $func->invokeArgs($instance, []); } r(testMiscHello()) && p() && e('hello world from hello()
'); r(testMiscHello()) && p() && e('hello world from hello()
'); r(is_string(testMiscHello())) && p() && e('1'); r(strpos(testMiscHello(), 'hello world') !== false) && p() && e('1'); r(strpos(testMiscHello(), '
') !== false) && p() && e('1');