0

I'm trying to get PHPunit working with an existing custom framework. I've gotten some basic tests to work but when I try to hook a test up to my bootstrap code, none of my classes will autoload! I've looked into the issue and changed my original __autoload to:

spl_autoload_register(function ($class) {
    require_once APP_MODELS . "/$class_name.php";
});

This still works for standard web calls, but when I try to run code via PHPunit, I still get a class not found error. Am I still doing something wrong?

4

1 回答 1

-1

没关系,我编辑错人了。问题解决了!

于 2012-12-03T20:58:24.537 回答