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

namespace spec\Prophecy\Doubler;

use 
PhpSpec\ObjectBehavior;

class 
NameGeneratorSpec extends ObjectBehavior
{
    
/**
     * @param \ReflectionClass $class
     */
    
function its_name_generates_name_based_on_simple_class_reflection($class)
    {
        
$class->getName()->willReturn('stdClass');
        
$this->name($class, array())->shouldStartWith('Double\stdClass\\');
    }

    
/**
     * @param \ReflectionClass $class
     */
    
function its_name_generates_name_based_on_namespaced_class_reflection($class)
    {
        
$class->getName()->willReturn('Some\Custom\Class');
        
$this->name($class, array())->shouldStartWith('Double\Some\Custom\Class\P');
    }

    
/**
     * @param \ReflectionClass $interface1
     * @param \ReflectionClass $interface2
     */
    
function its_name_generates_name_based_on_interface_shortnames($interface1$interface2)
    {
        
$interface1->getShortName()->willReturn('HandlerInterface');
        
$interface2->getShortName()->willReturn('LoaderInterface');

        
$this->name(null, array($interface1$interface2))->shouldStartWith(
            
'Double\HandlerInterface\LoaderInterface\P'
        
);
    }

    function 
it_generates_proper_name_for_no_class_and_interfaces_list()
    {
        
$this->name(null, array())->shouldStartWith('Double\stdClass\P');
    }

    
/**
     * @param \ReflectionClass $class
     * @param \ReflectionClass $interface1
     * @param \ReflectionClass $interface2
     */
    
function its_name_generates_name_based_only_on_class_if_its_available(
        
$class$interface1$interface2
    
)
    {
        
$class->getName()->willReturn('Some\Custom\Class');
        
$interface1->getShortName()->willReturn('HandlerInterface');
        
$interface2->getShortName()->willReturn('LoaderInterface');

        
$this->name($class, array($interface1$interface2))->shouldStartWith(
            
'Double\Some\Custom\Class\P'
        
);
    }

    public function 
getMatchers()
    {
        return array(
            
'startWith' => function ($subject$string) {
                return 
=== strpos($subject$string);
            },
        );
    }
}

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