[英]Kohana 3.14 fails at unit testing with message class 'Kohana' not found
I have a kohana website that works okay, and I started unit testing (retrospectively, I know it is not the best practice) 我有一个可以运行的kohana网站,并且我开始了单元测试(回顾起来,我知道这不是最佳实践)
The first error I get and I cannot get rid of is quite puzzling: 我遇到的第一个错误也是无法解决的:
Fatal error: Uncaught exception 'LogicException' with message 'Passed array does not specify an existing static method (class 'Kohana' not found)' in /Users/dananicula/Sites/mnib1/application/bootstrap.php:44
致命错误:/Users/dananicula/Sites/mnib1/application/bootstrap.php:44中未捕获的异常'LogicException',消息为'传递的数组未指定现有的静态方法(未找到类'Kohana')
in bootstrap, line 44 is: 在引导程序中,第44行是:
spl_autoload_register(array('Kohana', 'auto_load'));
and class Kohana actualy exists in system/classes/kohana.php 和类Kohana实际上存在于system / classes / kohana.php中
Any hints? 有什么提示吗? Opinions?
意见? Suggestions?
有什么建议吗? Thank you!
谢谢!
我解决了这个问题,是您bootstrap.php中的一个区别,您需要对当前的kohana版本文件进行比较。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.