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