Make WordPress Core

Ticket #36609: 36609.diff

File 36609.diff, 423 bytes (added by welcher, 9 years ago)

Adding tearDown() to cleanup after last test

  • tests/phpunit/tests/mail.php

     
    99                unset( $GLOBALS['phpmailer']->mock_sent );
    1010        }
    1111
     12        function tearDown() {
     13                parent::setUp();
     14                unset( $GLOBALS['phpmailer']->mock_sent );
     15        }
     16
    1217        /**
    1318         * Send a mail with a 1000 char long line.
    1419         *