Call to undefined function CodeIgniter\Test\helper() for CIUnitTestCase |
Summary
Call to undefined function CodeIgniter\Test\helper() for CIUnitTestCase I'm trying codeigniter4 testing tutorial. testing-feature PHP Code: // ci4_batches/batches/tests/app/Controllers/TestHome.php phpStorm will be pop up this message. Quote:Method 'call' not found in TestHome Let's Test from phpStorm Quote:Warning: Use of undefined constant SUPPORTPATH - assumed 'SUPPORTPATH' (this will throw an Error in a future version of PHP) in D:\OneDrive\dev\ci4_batches\batches\vendor\phpunit\phpunit\src\Framework\TestBuilder.php on line 138 Why can't I do it?
The call method is defined in the CodeIgniter\Test\FeatureTestTrait trait but you didn't add it.
(01-20-2022, 03:37 AM)sushiguru Wrote: Did you ever get this to work? (01-20-2022, 04:41 AM)BilltheCat Wrote: https://codeigniter.com/user_guide/cli/c...=call#call (01-20-2022, 09:11 AM)iRedds Wrote: The call method is defined in the CodeIgniter\Test\FeatureTestTrait trait but you didn't add it. I found it while organizing past posts. I can't remember exactly what I detail, but the reason I wasn't able to test with PHPStorm is probably that I didn't specify the interpreter as phpunit. Thank you everyone. |
Welcome Guest, Not a member yet? Register Sign In |