To encapsulate the repeated fsockopen() code. This gives us a chance to control the timeout in one place: Raise it to one second.
This test is failing on AppVeyor almost all of the time, so splitting it seems appropriate. This also allows us to rid php_cli_server_stop() which was only used by this test case.