Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: allow to have the server file descriptors or logs available #70

Open
esteban-serfe opened this issue Apr 12, 2024 · 2 comments

Comments

@esteban-serfe
Copy link

I'm using this to mock server responses of an API using codeception helper. This is working as expected but I'm looking to have the debug sent into the log file (https://github.com/donatj/mock-webserver/blob/master/src/MockWebServer.php#L77) public so we can ready the output of the process and have it as debug output in the process.

The intent is to be able to showcase that the request was received and the response sent when running the tests in debug mode.

Also is an option to have a callable on the Response() object so we can output on the excecution insted of the previous idea.

@donatj
Copy link
Owner

donatj commented Apr 17, 2024

I'm not sure I'm entirely understanding, but it seems like you could just serialize your requests and the received responses on your side without a change to the library?

@esteban-serfe
Copy link
Author

That's an option I didn't consider.

I wanted to have the data from the process itself to have the security that the request was executed, and just listen to the output.

Will play around with this idea a little more and do some testing locally: If I came to solution will share the MR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants