I'm trying to set up PHPUnit in Zend, but it's giving an error when I run the phpunit command on the terminal.
error:
$ phpunit PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to load ZF2. Run 'php composer.phar install' or define a ZF2_PATH environment variable.' in /media/candidosouza/Development/GITHUB/Learning-ZF2/03-ZF2-Avancado/module/CJSN/tests/Bootstrap.php:75
My Bootstrap class has been taken from the documentation
The error is falling on this Bootstrap class IF:
if (!$zf2Path) {
throw new RuntimeException(
'Unable to load ZF2. Run 'php composer.phar install' or'
. ' define a ZF2_PATH environment variable.'
);
}
My files are configured as in the documentation! Can anyone tell me why this error!
How do I resolve this?
Thank you !!!