Файловый менеджер - Редактировать - /var/www/jonas-eriksen.dk/jresolutions.dk/test/vendor/swiftmailer/swiftmailer/tests/bug/Swift/Bug274Test.php
Назад
<?php class Swift_Bug274Test extends \PHPUnit\Framework\TestCase { /** * @expectedException \Swift_IoException * @expectedMessageException The path cannot be empty */ public function testEmptyFileNameAsAttachment() { $message = new Swift_Message(); $message->attach(Swift_Attachment::fromPath('')); } public function testNonEmptyFileNameAsAttachment() { $message = new Swift_Message(); try { $message->attach(Swift_Attachment::fromPath(__FILE__)); } catch (Exception $e) { $this->fail('Path should not be empty'); } $this->addToAssertionCount(1); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка