/** * Overrides the wp_mail() function so we can ensure the messages are * composed when and how they should be * * @uses TestCase::mail_to_file() to store the data for later comparison */ function wp_mail($to, $subject, $message) { TestCase::mail_to_file($to, $subject, $message); }