|
|
@@ -118,7 +118,7 @@ class Zend_Mail_FileTransportTest extends PHPUnit_Framework_TestCase
|
|
|
public function testNotWritablePathFailure()
|
|
|
{
|
|
|
$transport = new Zend_Mail_Transport_File(array(
|
|
|
- 'path' => $this->_tmpdir . '/not_existing/directory'
|
|
|
+ 'callback' => array($this, 'directoryNotExisting')
|
|
|
));
|
|
|
|
|
|
$mail = $this->_prepareMail();
|
|
|
@@ -181,4 +181,9 @@ class Zend_Mail_FileTransportTest extends PHPUnit_Framework_TestCase
|
|
|
// and default callback part
|
|
|
$this->assertContains('ZendMail', $entry);
|
|
|
}
|
|
|
+
|
|
|
+ public function directoryNotExisting($transport)
|
|
|
+ {
|
|
|
+ return $this->_tmpdir . '/not_existing/directory';
|
|
|
+ }
|
|
|
}
|