getTransport() 공개 메소드

Returns the transport object that will be used to send the wrapped message
public getTransport ( ) : Zend\Mail\Transport\TransportInterface
리턴 Zend\Mail\Transport\TransportInterface
예제 #1
0
 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());
 }