I'm currently on the process of unit testing a plugin using the Wordpress unit testing framework.
In one of the functions to be tested,it will send mails to users in a periodic time interval so it means that the PHP script will need to be executed at a set time, say every 2 minutes.
Is there a way to integrate cron functionality with the uni test framework,so if run the command:
phpunit
In the command line, it will run the script every n intervals?
Or is there a way I could simulate cron environment without actually running cron?
Thanks for any tips.