This is a template were it uses a couple of tools to get web page by url and use dom to manipulate through it and figure out User Stories for automation testing headless browser.
https://phpunit.de/manual/4.0/en/textui.html https://github.com/seanbuscay/vagrant-phpunit-selenium