/** * @test */ public function it_returns_the_mailbox_when_cast_to_string() { $this->assertEquals('{"server":"imap.example.com","username":"******","password":"******","port":993,"folder":"INBOX","ssl":true,"validateCert":true}', $this->mailbox->__toString()); }
/** * Resets/Refreshes the connection to the mail server * @return bool */ public function refresh() { return imap_reopen($this->connection, $this->mailbox->getMailboxName()); }