/** * @testdox Allows setting and getting a \Zend\Mail\Transport\TransportInterface */ public function testSetAndGetTransport() { $target = new MailService(); $transport = $this->getMockForAbstractClass('\\Zend\\Mail\\Transport\\TransportInterface'); $target->setTransport($transport); $this->assertSame($transport, $target->getTransport()); }