I am trying to run PHPUnit test at CakePHP 2.0.
There’s no problem with my model tests but when i try to run my Controllers tests i get this error:
Fatal error: Class 'Controller' not found in `/Applications/MAMP/htdocs/mysite/app/Controller/AppController.php on line 7`
What’s going on?
Thanks.
you always need to properly define the used classes (which you want to extend) – even in your controllers:
you miss the App::uses statement.