Closed codeasashu closed 3 years ago
It seems it is a problem in Example_test.php
, not in ci-phpunit-test.
Can you show it?
If you remove configuration, ci-phpunit-test does not work correctly.
As it turns out, I had two composer.json installed, one in <project root>/vendor
and the other in <project root>/application/vendor
.
I had composer_autoload=true
set in config, which was autoloading application/vendor
, while I was using PHPUnit from root vendor location.
Setting composer_autoload=false
fixed the issue for me
Good to hear it.
If you want to autoload composer packages in <project root>/vendor
:
$config['composer_autoload'] = realpath(APPPATH . '../vendor/autoload.php');
composer.json
I've installed this project using zip method. Now, whenever I try to run:
it results in following error:
When I remove the configuration, it works but then I can not use
resetInstances
method. For example:Results in following: