If you have set up a testing database you should be good.
Oct 11, 2021
5
Level 3
Make real HTTP requests in the testing environment
Hi, I'm working on the integration of Blackfire performance tests within our Laravel integration tests.
At the end of the end, I wish we could have something as:
$response = $this->get('/test/foo');
$response->assertBlackfire();
A real profile should be triggered and all the matching assertions defined in the Blackfire conf file evaluated.
To do so, I need to make a real request, with Guzzle by instance, so that the Blackfire probe could detect and instrument the request. But, I need to stay within the testing environment, not to mess with real data.
Do you see any possibilities of doing so?
Thanks
Please or to participate in this conversation.