Headless Web Browser During Cron?
If you want a PHP headless web browser, you might look at Mink.

Gherkin/Behat seem to be getting some traction in the Drupal community and in the PHP community more broadly for Behavioral Driven Development.  Mink also supports browser emulation systems (like Selenium), which you typically need in order to interact with Javascript.