!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.64 GB of 200.55 GB (58.66%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace spec\Prophecy\Argument\Token;

use 
PhpSpec\ObjectBehavior;
use 
Prophecy\Argument;

class 
LogicalAndTokenSpec extends ObjectBehavior
{
    function 
it_implements_TokenInterface()
    {
        
$this->beConstructedWith(array());
        
$this->shouldBeAnInstanceOf('Prophecy\Argument\Token\TokenInterface');
    }

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

    
/**
     * @param \Prophecy\Argument\Token\TokenInterface $token1
     * @param \Prophecy\Argument\Token\TokenInterface $token2
     * @param \Prophecy\Argument\Token\TokenInterface $token3
     */
    
function it_generates_string_representation_from_all_tokens_imploded($token1$token2$token3)
    {
        
$token1->__toString()->willReturn('token_1');
        
$token2->__toString()->willReturn('token_2');
        
$token3->__toString()->willReturn('token_3');

        
$this->beConstructedWith(array($token1$token2$token3));
        
$this->__toString()->shouldReturn('bool(token_1 AND token_2 AND token_3)');
    }

    function 
it_wraps_non_token_arguments_into_ExactValueToken()
    {
        
$this->beConstructedWith(array(15'1985'));
        
$this->__toString()->shouldReturn("bool(exact(15) AND exact(\"1985\"))");
    }

    
/**
     * @param \Prophecy\Argument\Token\TokenInterface $token1
     * @param \Prophecy\Argument\Token\TokenInterface $token2
     */
    
function it_scores_the_maximum_score_from_all_scores_returned_by_tokens($token1$token2)
    {
        
$token1->scoreArgument(1)->willReturn(10);
        
$token2->scoreArgument(1)->willReturn(5);
        
$this->beConstructedWith(array($token1$token2));
        
$this->scoreArgument(1)->shouldReturn(10);
    }

    function 
it_does_not_score_if_there_are_no_arguments_or_tokens()
    {
        
$this->beConstructedWith(array());
        
$this->scoreArgument('any')->shouldReturn(false);
    }

    
/**
     * @param \Prophecy\Argument\Token\TokenInterface $token1
     * @param \Prophecy\Argument\Token\TokenInterface $token2
     */
    
function it_does_not_score_if_either_of_tokens_does_not_score($token1$token2)
    {
        
$token1->scoreArgument(1)->willReturn(10);
        
$token1->scoreArgument(2)->willReturn(false);

        
$token2->scoreArgument(1)->willReturn(false);
        
$token2->scoreArgument(2)->willReturn(10);

        
$this->beConstructedWith(array($token1$token2));

        
$this->scoreArgument(1)->shouldReturn(false);
        
$this->scoreArgument(2)->shouldReturn(false);
    }
}

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