public function setUp() { $this->mailer = new InMemoryTransport(); _elgg_services()->setValue('mailer', $this->mailer); }