Returns the transport object that will be used to send the wrapped message
public getTransport ( ) : Zend\Mail\Transport\TransportInterface | ||
Résultat | Zend\Mail\Transport\TransportInterface |
public function testSetTransport() { $this->assertSame($this->transport, $this->mailService->getTransport()); $anotherTransport = new MockTransport(); $this->assertSame($this->mailService, $this->mailService->setTransport($anotherTransport)); $this->assertSame($anotherTransport, $this->mailService->getTransport()); }