I wrote a PHP CLI script that runs in a continuous integration environment. One of the things she does is run Protractor tests.
My plan was to get PHP 5.4's built - in embedded web server to run in the background:
php -S localhost:9000 -t foo/ bar.php &
And then run the protractor tags that will use localhost:9000 :
protractor ./test/protractor.config.js
However, the PHP embedded web server does not start as a help service. I can not find anything that will allow me to do this using PHP.
Can this be done? If so, how? If this is absolutely impossible, I am open to alternative solutions.
source share