Now with the discontinuation of PHPUnit support by Pear , I started to face a major problem in making CakePHP recognize PHPUnit ...
PHPUnit is already installed on my computer (Linux Mint), I can use it for the console without problems but at the time of using the CakePHP testing API I am not successful.
I have already tried to install by the composer itself, however I realized that the content of PHPUnit goes to the folder Vendor and has a division of folders that I do not really understand. I do not know if this information is relevant ...
When accessing the test.php file, to access the tests, the following errors are presented to me:
Warning (2): include (PHPUnit / Autoload.php): failed to open stream: No such file or directory [CORE / Cake / TestSuite / CakeTestSuiteDispatcher.php, line 156]
Warning (2): include () [function.include]: Failed opening 'PHPUnit / Autoload.php' for inclusion (include_path = '/ var / www / html / sapekas / lib: / usr / lib / php :.') [CORE / Cake / TestSuite / CakeTestSuiteDispatcher.php, line 156]
I searched the internet in various ways but found no solution. The vast majority always spoke to use pear to install PHPUnit, but it does not support this anymore, so it's a new problem and I think that's why there is not much material yet on how to solve