You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saml_test::test_ut_test
RuntimeException: Argument 1 passed to CIPHPUnitTestCase::setCI() must be an instance of CI_Controller, instance of CIPHPUnitTestNullCodeIgniter given, called in xxx
After further debugging, I found this function return null, and it supposes to return an instance of CI.
// Create controllerif (CIPHPUnitTest::wiredesignzHmvcInstalled())
{
newCI();
}
$controller = new$class;
$CI =& get_instance();
**// The $CI is null here**// Set CodeIgniter instance to TestCase$this->testCase->setCI($CI);
The text was updated successfully, but these errors were encountered:
@biechao Read the error message carefully, so you might have any clue.
biechao
changed the title
Maximum function nesting level of '256' reached
$CI =& get_instance(); return null in createAndCallController function in CIPHPUnitTestRequest.php
May 29, 2020
In CIPHPUnitTestRequest.php there is a function createAndCallController funtion.
When I try to test my controller with code:
I got this error message in console:
After further debugging, I found this function return null, and it supposes to return an instance of CI.
The text was updated successfully, but these errors were encountered: