PHP Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found
PooranSinghTricon opened this issue · 2 comments
I have CodeIgniter 2.x with PHP 7.4. I followed all your given instructions
-
composer.json
require =>
"kenjis/ci-phpunit-test":"^3.0" -
composer update
-
within root dir : php vendor/kenjis/ci-phpunit-test/install.php --from-composer
it does not install completely. if I execute my step 3 as -> within root dir : php vendor/kenjis/ci-phpunit-test/install.php
it install complete.
Now how to run ? 1. cd application/tests/ 2. PHPUnit
it gives "PHP Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in D:\xampp\htdocs\ubw-testing\application\tests_ci_phpunit_test\CIPHPUnitTestCase.php:24"
I did too much R&D on google. Nothing work. Can you please help to find the solution ? if I need to change any file or code , Please let me know.
I'm sorry, ci-phpunit-test supports only CI 3.x.
See https://github.com/kenjis/my-ciunit for CI 2.x.