kenjis/ci-phpunit-test

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

  1. composer.json
    require =>
    "kenjis/ci-phpunit-test":"^3.0"

  2. composer update

  3. 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"

image

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.