home
/
zktecojo
/
public_html
/
vendor
/
swiftmailer
/
swiftmailer
/
tests
/
bug
/
Swift
➕ New
📤 Upload
✎ Editing:
Bug274Test.php
← Back
<?php class Swift_Bug274Test extends \PHPUnit_Framework_TestCase { public function testEmptyFileNameAsAttachement() { $message = new Swift_Message(); $this->setExpectedException('Swift_IoException', 'The path cannot be empty'); $message->attach(Swift_Attachment::fromPath('')); } public function testNonEmptyFileNameAsAttachement() { $message = new Swift_Message(); try { $message->attach(Swift_Attachment::fromPath(__FILE__)); } catch (Exception $e) { $this->fail('Path should not be empty'); } } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel