setTransport() public method

public setTransport ( Zend\Mail\Transport\TransportInterface $transport )
$transport 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());
 }