PHP integrates with PhantomJS for front-end web pager testing