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


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

namespace spec\Prophecy\Argument\Token;

use 
PhpSpec\ObjectBehavior;
use 
Prophecy\Argument;

class 
ArrayEveryEntryTokenSpec extends ObjectBehavior
{
    
/**
     * @param \Prophecy\Argument\Token\TokenInterface $value
     */
    
function let($value)
    {
        
$this->beConstructedWith($value);
    }

    function 
it_implements_TokenInterface()
    {
        
$this->shouldBeAnInstanceOf('Prophecy\Argument\Token\TokenInterface');
    }

    function 
it_is_not_last()
    {
        
$this->shouldNotBeLast();
    }

    function 
it_holds_value($value)
    {
        
$this->getValue()->shouldBe($value);
    }

    function 
its_string_representation_tells_that_its_an_array_containing_only_value($value)
    {
        
$value->__toString()->willReturn('value');
        
$this->__toString()->shouldBe('[value, ..., value]');
    }

    
/**
     * @param \stdClass $stdClass
     */
    
function it_wraps_non_token_value_into_ExactValueToken($stdClass)
    {
        
$this->beConstructedWith($stdClass);
        
$this->getValue()->shouldHaveType('Prophecy\Argument\Token\ExactValueToken');
    }

    function 
it_does_not_score_if_argument_is_neither_array_nor_traversable()
    {
        
$this->scoreArgument('string')->shouldBe(false);
        
$this->scoreArgument(new \stdClass)->shouldBe(false);
    }

    function 
it_does_not_score_empty_array()
    {
        
$this->scoreArgument(array())->shouldBe(false);
    }

    
/**
     * @param \Iterator $object
     */
    
function it_does_not_score_traversable_object_without_entries($object)
    {
        
$object->rewind()->willReturn(null);
        
$object->next()->willReturn(null);
        
$object->valid()->willReturn(false);
        
$this->scoreArgument($object)->shouldBe(false);
    }

    function 
it_scores_avg_of_scores_from_value_tokens($value)
    {
        
$value->scoreArgument('value1')->willReturn(6);
        
$value->scoreArgument('value2')->willReturn(3);
        
$this->scoreArgument(array('value1''value2'))->shouldBe(4.5);
    }

    function 
it_scores_false_if_entry_scores_false($value)
    {
        
$value->scoreArgument('value1')->willReturn(6);
        
$value->scoreArgument('value2')->willReturn(false);
        
$this->scoreArgument(array('value1''value2'))->shouldBe(false);
    }

    function 
it_does_not_score_array_keys($value)
    {
        
$value->scoreArgument('value')->willReturn(6);
        
$value->scoreArgument('key')->shouldNotBeCalled(0);
        
$this->scoreArgument(array('key' => 'value'))->shouldBe(6);
    }

    
/**
     * @param \Prophecy\Argument\Token\TokenInterface $value
     * @param \Iterator                               $object
     */
    
function it_scores_traversable_object_from_value_token($value$object)
    {
        
$object->current()->will(function ($args$object) {
            
$object->valid()->willReturn(false);

            return 
'value';
        });
        
$object->key()->willReturn('key');
        
$object->rewind()->willReturn(null);
        
$object->next()->willReturn(null);
        
$object->valid()->willReturn(true);
        
$value->scoreArgument('value')->willReturn(2);
        
$this->scoreArgument($object)->shouldBe(2);
    }
}

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