I have recently started using Behat with Mink on a PHP project that uses the Slim microframework My Behat tests work fine but I would like to run them as part of my build, which uses the Jenkins-PHP template by Sebastian Bergmann.
To do this, I expect that I would need to run a web server to serve the Slim app. The obvious answer would seem to be PHP 5.4's built in web server, but I am restricted to PHP 5.3.
The only idea I have at the moment is to have a deploy phase whereby if the Ant build passes, Jenkins deploys a workspace on a server and then runs the Behat tests against that. This feels like it would be a lot of work and could be flaky, plus it would require spinning up another VM, which I'd prefer to avoid. We are looking to employ Behat across a large number of diverse projects so something "disposable" would be preferable.
What is the best way of solving this issue?