I have a CakePHP app on my machine. I've downloaded it just from svn repository(so, not composer or pear installing). PHPunit is installed at my machine globally. So when I'm trying to test some Model for example: cake test app Model/SomeModel I get this errors:
Warning Error: include(PHPUnit/Autoload.php): failed to open stream: No such file or directory in [/var/www/html/shaufel_batch/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php, line 146]
Warning Error: include(): Failed opening 'PHPUnit/Autoload.php' for inclusion (include_path='/var/www/html/shaufel_batch/lib:.:/Users/admin/pear/share/pear:/php/includes:/usr/bin:/usr/lib/php/:/usr/share/php') in [/var/www/html/shaufel_batch/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php, line 146]
Error: Please install PHPUnit framework (http://www.phpunit.de)
#0 /var/www/html/shaufel_batch/lib/Cake/Console/ShellDispatcher.php(206): TestShell->initialize()
#1 /var/www/html/shaufel_batch/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#2 /var/www/html/shaufel_batch/app/Console/cake.php(36): ShellDispatcher::run(Array)
#3 {main}
So how can I solve this problem in the app, which was just downloaded from svn repository ? Thanks for your time. My CakePHP version is 2.4.4
apt-get install phpunit. See the link you posted: phpunit.de/manual/current/en/installation.html