-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class 'CodeIgniter\Test\CIUnitTestCase' not found when testing in Appstarter project #1864
Comments
diegoldev
changed the title
Class 'CodeIgniter\Test\CIUnitTestCase' not found when testing Appstarter
Class 'CodeIgniter\Test\CIUnitTestCase' not found when testing in Appstarter
Mar 23, 2019
diegoldev
changed the title
Class 'CodeIgniter\Test\CIUnitTestCase' not found when testing in Appstarter
Class 'CodeIgniter\Test\CIUnitTestCase' not found when testing in Appstarter project
Mar 23, 2019
I think this was reported earlier, and fixed in what will be the next beta. Will check |
May be that was related with #1710 ? |
That is correct :) |
Treating this as a duplicate, then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When trying to run tests CIUnitTestCase is not found
I think that is related to namespace of class inside _support folder, but not sure.
CodeIgniter 4 version
Codeigniter4-beta-0.0.1
Affected module(s)
Testing module
Expected behavior, and steps to reproduce if appropriate
PHP Fatal error: Uncaught Error: Class 'CIUnitTestCase' not found in /var/www/html/rrhh/tests/TestFoo.php:3 Stack trace: #0 phar:///usr/local/bin/phpunit/phpunit/Util/FileLoader.php(59): include_once() #1 phar:///usr/local/bin/phpunit/phpunit/Util/FileLoader.php(47): PHPUnit\Util\FileLoader::load('/var/www/html/r...') #2 phar:///usr/local/bin/phpunit/phpunit/Runner/StandardTestSuiteLoader.php(40): PHPUnit\Util\FileLoader::checkAndLoad('/var/www/html/r...') #3 phar:///usr/local/bin/phpunit/phpunit/Runner/BaseTestRunner.php(131): PHPUnit\Runner\StandardTestSuiteLoader->load('TestFoo', '/var/www/html/r...') #4 phar:///usr/local/bin/phpunit/phpunit/Runner/BaseTestRunner.php(78): PHPUnit\Runner\BaseTestRunner->loadSuiteClass('TestFoo', '/var/www/html/r...') #5 phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php(185): PHPUnit\Runner\BaseTestRunner->getTest('TestFoo', '/var/www/html/r...', Array) #6 phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php(164): PHPUnit\TextUI\Command->run(Array, true) #7 /usr/local/bin/phpunit( in /var/www/html/rrhh/tests/TestFoo.php on line 3
Context
The text was updated successfully, but these errors were encountered: