Getting error when using bootstrap: Craft\WebApp::$request I am using a testing library and while trying to load Craft through bootstrap with:

$craft = require '&lt;full path here to&gt;/app/bootstrap.php';


(but with the real path)

I dumped the error to a html file from the console and get this:



I see that Ben Parizek got a similar error (but i don't believe it was while using bootstrap only from the command line) in this question.

I tried setting cache to file in general.php and also cleared all caches in craft.
Got testing working by requiring the tests/bootstrap.php  (not app/bootstrap) like here: https://github.com/selvinortiz/craft.loath/blob/master/tests/run.sh#L6