Closed lajthabalazs closed 4 months ago
I am sorry, I should add a note. This is not currently tested nor supported in Windows I am afraid.
The way it is currently implemented is highly dependent on Unix-like shells ability to pipe and control forked processes; something I am woefully unfamiliar with in Windows.
This should be fixed in the next major release. See #15 ( thanks to: #13 )
This was just the library I was looking for to test out a HTTP client layer I was writing for an application. Enabled sockets extension in php.ini (running PHP version 7.2.1 on Windows), and added mock-webserver with composer as indicated.
I was following the PHPUnit example, wrote the following "test" to check out the server:
I expect the output to be:
Starting server. Server started. Waiting a bit. No more waiting. Server stopping. Server stopped.
But just get: Starting server.
The server starts up, and is operational, but doesn't run the tests. Tried from the command line and from PhpStorms too. I don't have much experience with PHP, tried to add some threading but found that it's not as easy as in Java. How could I make the test work? Thanks, Balázs