My FW uses an autoload function, which I add via spl_autoload_register('autoload');
I run phpunit on a directory. After it executes the first test, the system crashes with:
PHP Fatal error: require_once():
Failed opening required 'PHPUnit/Extensions/SeleniumTestCase.php' (include_path='.:/ ......)
in /home/test/functions.php on line 139
This points to my autolaod function, and not the one phpunit is suppose to use.
Does this mean my function is being used first, and then the phpunit one, and it crashes in my function?
If I change my autoload
to use include
instead of require_once
it will work fine. So I guess this is an order of autoload functions issue.