assertEquals('task::ftp:Status about your FTP transfert from %application% to %server%', $this->getMail()->getSubject()); } public function testThatALgicExceptionIsThrownIfNoServerSet() { $mail = MailSuccessFTPSender::create( $this->getApplication(), $this->getReceiverMock(), $this->getEmitterMock(), $this->getMessage() ); try { $mail->getSubject(); $this->fail('Should have raised an exception'); } catch (LogicException $e) { } } public function getMail() { $mail = MailSuccessFTPSender::create( $this->getApplication(), $this->getReceiverMock(), $this->getEmitterMock(), $this->getMessage() ); $mail->setServer('ftp://example.com'); return $mail; } }