Oh, sorry I just figured this out.. it looks like in the breakpoints window within Visual Studio code I have the "[ ] Everything" box checked. Also I needed to set ""better-phpunit.commandSuffix": --stop-on-failure" within user-settings. I hope this helps someone. It's taken me about 2hrs to figure it out.
Error when running unit test - ReflectionException: Method suite does not exist (BaseTestRunner.php)
I have assignd CTRL+T run my unit test within VS Code on Windows 10 within BetterPhpUnit.
Have debugging turned on. I just want to be able to debug a test. I start the debugger to "Listen for XDebug (test-project)", put the cursor on the "testBasicTest" and start the debug using the BetterPhpUnit assigned shortcut key.
After I few seconds I get an exception in:
"BaseTestRunner.php" on the line: 83: "$suiteMethod = $testClass->getMethod(self::SUITE_METHODNAME);"
With the message "Exception has occurred. ReflectionException: Method suite does not exist"
If I run phpUnit on the command line I don't get this error and can debug? Can anyone tell my why it fails If I run it within visual studio code using BetterPhpUnit. I can't tell if this is a problem with Laravel, BetterPhpUnit or my setup.
Thanks,
Tim
Please or to participate in this conversation.