[wp-trac] [WordPress Trac] #34161: PhpMailer mock decorator methods
WordPress Trac
noreply at wordpress.org
Sat Feb 20 03:34:41 UTC 2016
#34161: PhpMailer mock decorator methods
-------------------------------------------------+-------------------------
Reporter: welcher | Owner:
Type: enhancement | boonebgorges
Priority: normal | Status: assigned
Component: Build/Test Tools | Milestone: 4.5
Severity: normal | Version:
Keywords: has-patch dev-feedback has-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by boonebgorges):
Thanks for the patch, @welcher. This is definitely more sane that the
current method of reaching into the global. I think we can simplify
somewhat; given the elegance of syntax like `$mailer->get_sent()->to` etc,
why would we ever want `get_sent()` or `get_recipient()` to return an
array rather than an object?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34161#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list