|Definitely not, it won't be as fast as the embedded php webserver but this is not ment to be used in production, I have created this for mocking http communication when testing php code on continous integration build farm. |
Builds are being executed on three branches of php (5.2, 5.3 and 5.4) and they have to be isolated on the same machine.
This simple class can start a mock server on a random port connected with a process ID and log output to syslog, so you dont need to care about running a mock on a single http server and can do your tests in parallel.
And afterall it was quite fun to write it :)