-
Notifications
You must be signed in to change notification settings - Fork 4
Class 'MY_Controller' not found #2
Description
Hi,
I'm following the handbook 3 on Unit Testing. In chapter 3, at page 31, when it says to make the class Trackers to extend MY_Controller I get this error:
Configuration read from /home/carlo/public_html/photocircle_relaunch/phpunit.xml
PHP Fatal error: Class 'MY_Controller' not found in /home/carlo/public_html/photocircle_relaunch/application/controllers/Trackers.php on line 3
PHP Stack trace:
PHP 1. {main}() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/composer/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/composer/bin/phpunit:63
PHP 3. PHPUnit_TextUI_Command->run() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:129
PHP 4. PHPUnit_TextUI_TestRunner->doRun() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:176
PHP 5. PHPUnit_Framework_TestSuite->run() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:349
PHP 6. PHPUnit_Framework_TestSuite->run() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:705
PHP 7. PHPUnit_Framework_TestSuite->runTest() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:745
PHP 8. PHPUnit_Framework_TestCase->run() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:775
PHP 9. PHPUnit_Framework_TestResult->run() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:776
PHP 10. PHPUnit_Framework_TestCase->runBare() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
PHP 11. PHPUnit_Framework_TestCase->runTest() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:831
PHP 12. ReflectionMethod->invokeArgs() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:976
PHP 13. TrackersTest->testModelsAreAutoloaded() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:976
PHP 14. Composer\Autoload\ClassLoader->loadClass() /home/carlo/public_html/photocircle_relaunch/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:0
PHP 15. include() /home/carlo/public_html/photocircle_relaunch/vendor/composer/ClassLoader.php:185
I reviewed again all the previous steps but it seems to me I followed all the instructions. Still, I think I'm missing something. Can you help me finding what's wrong?