You appear to be a bot. Output may be restricted
Description
Decorator to return the information for a sent mock.
Usage
$object = MockPHPMailer::get_sent( $index );
Parameters
- $index
- ( int ) optional – Optional. Array index of mock_sent value.
Returns
object
Source
File name: wordpress-develop-tests/phpunit/includes/mock-mailer.php
Lines:
1 to 7 of 7
public function get_sent( $index = 0 ) { $retval = false; if ( isset( $this->mock_sent[ $index ] ) ) { $retval = (object) $this->mock_sent[ $index ]; } return $retval; }