protected function setUp() { parent::setUp(); set_time_limit(0); \Myfox\Lib\AutoLoad::init(); \Myfox\Lib\AutoLoad::register('myfox\\app', __DIR__ . '/../app'); \Myfox\Lib\Cache\Apc::cleanAllCache(); }
/** * 自动加载初始化 * * @access public static * @return void */ public static function setAutoLoad() { if (self::$autoloaded) { return; } require_once __DIR__ . '/../lib/autoload.php'; \Myfox\Lib\AutoLoad::init(); \Myfox\Lib\AutoLoad::register('myfox\\app', __DIR__); self::$autoloaded = true; }