!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/swiftmailer/swiftmailer/tests/unit/Swift/Plugins/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ReporterPluginTest.php (4.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class Swift_Plugins_ReporterPluginTest extends \SwiftMailerTestCase
{
    public function 
testReportingPasses()
    {
        
$message $this->_createMessage();
        
$evt $this->_createSendEvent();
        
$reporter $this->_createReporter();

        
$message->shouldReceive('getTo')->zeroOrMoreTimes()->andReturn(array('foo@bar.tld' => 'Foo'));
        
$evt->shouldReceive('getMessage')->zeroOrMoreTimes()->andReturn($message);
        
$evt->shouldReceive('getFailedRecipients')->zeroOrMoreTimes()->andReturn(array());
        
$reporter->shouldReceive('notify')->once()->with($message'foo@bar.tld'Swift_Plugins_Reporter::RESULT_PASS);

        
$plugin = new Swift_Plugins_ReporterPlugin($reporter);
        
$plugin->sendPerformed($evt);
    }

    public function 
testReportingFailedTo()
    {
        
$message $this->_createMessage();
        
$evt $this->_createSendEvent();
        
$reporter $this->_createReporter();

        
$message->shouldReceive('getTo')->zeroOrMoreTimes()->andReturn(array('foo@bar.tld' => 'Foo''zip@button' => 'Zip'));
        
$evt->shouldReceive('getMessage')->zeroOrMoreTimes()->andReturn($message);
        
$evt->shouldReceive('getFailedRecipients')->zeroOrMoreTimes()->andReturn(array('zip@button'));
        
$reporter->shouldReceive('notify')->once()->with($message'foo@bar.tld'Swift_Plugins_Reporter::RESULT_PASS);
        
$reporter->shouldReceive('notify')->once()->with($message'zip@button'Swift_Plugins_Reporter::RESULT_FAIL);

        
$plugin = new Swift_Plugins_ReporterPlugin($reporter);
        
$plugin->sendPerformed($evt);
    }

    public function 
testReportingFailedCc()
    {
        
$message $this->_createMessage();
        
$evt $this->_createSendEvent();
        
$reporter $this->_createReporter();

        
$message->shouldReceive('getTo')->zeroOrMoreTimes()->andReturn(array('foo@bar.tld' => 'Foo'));
        
$message->shouldReceive('getCc')->zeroOrMoreTimes()->andReturn(array('zip@button' => 'Zip''test@test.com' => 'Test'));
        
$evt->shouldReceive('getMessage')->zeroOrMoreTimes()->andReturn($message);
        
$evt->shouldReceive('getFailedRecipients')->zeroOrMoreTimes()->andReturn(array('zip@button'));
        
$reporter->shouldReceive('notify')->once()->with($message'foo@bar.tld'Swift_Plugins_Reporter::RESULT_PASS);
        
$reporter->shouldReceive('notify')->once()->with($message'zip@button'Swift_Plugins_Reporter::RESULT_FAIL);
        
$reporter->shouldReceive('notify')->once()->with($message'test@test.com'Swift_Plugins_Reporter::RESULT_PASS);

        
$plugin = new Swift_Plugins_ReporterPlugin($reporter);
        
$plugin->sendPerformed($evt);
    }

    public function 
testReportingFailedBcc()
    {
        
$message $this->_createMessage();
        
$evt $this->_createSendEvent();
        
$reporter $this->_createReporter();

        
$message->shouldReceive('getTo')->zeroOrMoreTimes()->andReturn(array('foo@bar.tld' => 'Foo'));
        
$message->shouldReceive('getBcc')->zeroOrMoreTimes()->andReturn(array('zip@button' => 'Zip''test@test.com' => 'Test'));
        
$evt->shouldReceive('getMessage')->zeroOrMoreTimes()->andReturn($message);
        
$evt->shouldReceive('getFailedRecipients')->zeroOrMoreTimes()->andReturn(array('zip@button'));
        
$reporter->shouldReceive('notify')->once()->with($message'foo@bar.tld'Swift_Plugins_Reporter::RESULT_PASS);
        
$reporter->shouldReceive('notify')->once()->with($message'zip@button'Swift_Plugins_Reporter::RESULT_FAIL);
        
$reporter->shouldReceive('notify')->once()->with($message'test@test.com'Swift_Plugins_Reporter::RESULT_PASS);

        
$plugin = new Swift_Plugins_ReporterPlugin($reporter);
        
$plugin->sendPerformed($evt);
    }

    
// -- Creation Methods

    
private function _createMessage()
    {
        return 
$this->getMockery('Swift_Mime_Message')->shouldIgnoreMissing();
    }

    private function 
_createSendEvent()
    {
        return 
$this->getMockery('Swift_Events_SendEvent')->shouldIgnoreMissing();
    }

    private function 
_createReporter()
    {
        return 
$this->getMockery('Swift_Plugins_Reporter')->shouldIgnoreMissing();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0114 ]--