Skip to content

Commit

Permalink
Merge pull request zendframework#4871 from mtorromeo/patch-1
Browse files Browse the repository at this point in the history
Use .eml extensions for emails stored with Zend\Mail\Transport\File
  • Loading branch information
weierophinney committed Aug 19, 2013
2 parents 7f7c726 + 0d79426 commit 0079c72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Mail/Transport/FileOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getCallback()
{
if (null === $this->callback) {
$this->setCallback(function ($transport) {
return 'ZendMail_' . time() . '_' . mt_rand() . '.tmp';
return 'ZendMail_' . time() . '_' . mt_rand() . '.eml';
});
}
return $this->callback;
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Mail/Transport/FileOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function testDefaultCallbackIsSetByDefault()
$callback = $this->options->getCallback();
$this->assertTrue(is_callable($callback));
$test = call_user_func($callback, '');
$this->assertRegExp('#^ZendMail_\d+_\d+\.tmp$#', $test);
$this->assertRegExp('#^ZendMail_\d+_\d+\.eml$#', $test);
}

public function testPathIsMutable()
Expand Down

0 comments on commit 0079c72

Please sign in to comment.