!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/test/Process/Symfony/Component/Process/Tests/   drwxr-xr-x
Free 293.26 GB of 429.69 GB (68.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Process\Tests;

use 
Symfony\Component\Process\Process;

class 
SimpleProcessTest extends AbstractProcessTest
{
    private 
$enabledSigchild false;

    public function 
setUp()
    {
        
ob_start();
        
phpinfo(INFO_GENERAL);

        
$this->enabledSigchild false !== strpos(ob_get_clean(), '--enable-sigchild');
    }

    public function 
testGetExitCode()
    {
        
$this->skipIfPHPSigchild(); // This test use exitcode that is not available in this case
        
parent::testGetExitCode();
    }

    public function 
testExitCodeCommandFailed()
    {
        
$this->skipIfPHPSigchild(); // This test use exitcode that is not available in this case
        
parent::testExitCodeCommandFailed();
    }

    public function 
testProcessIsSignaledIfStopped()
    {
        
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved');
        
parent::testProcessIsSignaledIfStopped();
    }

    public function 
testProcessWithTermSignal()
    {
        
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved');
        
parent::testProcessWithTermSignal();
    }

    public function 
testProcessIsNotSignaled()
    {
        
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved');
        
parent::testProcessIsNotSignaled();
    }

    public function 
testProcessWithoutTermSignal()
    {
        
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved');
        
parent::testProcessWithoutTermSignal();
    }

    public function 
testExitCodeText()
    {
        
$this->skipIfPHPSigchild(); // This test use exitcode that is not available in this case
        
parent::testExitCodeText();
    }

    public function 
testIsSuccessful()
    {
        
$this->skipIfPHPSigchild(); // This test use PID that is not available in this case
        
parent::testIsSuccessful();
    }

    public function 
testIsNotSuccessful()
    {
        
$this->skipIfPHPSigchild(); // This test use PID that is not available in this case
        
parent::testIsNotSuccessful();
    }

    public function 
testGetPid()
    {
        
$this->skipIfPHPSigchild(); // This test use PID that is not available in this case
        
parent::testGetPid();
    }

    public function 
testGetPidIsNullBeforeStart()
    {
        
$this->skipIfPHPSigchild(); // This test use PID that is not available in this case
        
parent::testGetPidIsNullBeforeStart();
    }

    public function 
testGetPidIsNullAfterRun()
    {
        
$this->skipIfPHPSigchild(); // This test use PID that is not available in this case
        
parent::testGetPidIsNullAfterRun();
    }

    public function 
testSignal()
    {
        
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. The process can not be signaled.');
        
parent::testSignal();
    }

    public function 
testProcessWithoutTermSignalIsNotSignaled()
    {
        
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved');
        
parent::testProcessWithoutTermSignalIsNotSignaled();
    }

    public function 
testProcessThrowsExceptionWhenExternallySignaled()
    {
        
$this->skipIfPHPSigchild(); // This test use PID that is not available in this case
        
parent::testProcessThrowsExceptionWhenExternallySignaled();
    }

    public function 
testExitCodeIsAvailableAfterSignal()
    {
        
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. The process can not be signaled.');
        
parent::testExitCodeIsAvailableAfterSignal();
    }

    public function 
testSignalProcessNotRunning()
    {
        
$this->setExpectedException('Symfony\Component\Process\Exception\LogicException''Can not send signal on a non running process.');
        
parent::testSignalProcessNotRunning();
    }

    public function 
testSignalWithWrongIntSignal()
    {
        if (
$this->enabledSigchild) {
            
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. The process can not be signaled.');
        } else {
            
$this->setExpectedException('Symfony\Component\Process\Exception\RuntimeException''Error while sending signal `-4`.');
        }
        
parent::testSignalWithWrongIntSignal();
    }

    public function 
testSignalWithWrongNonIntSignal()
    {
        if (
$this->enabledSigchild) {
            
$this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException''This PHP has been compiled with --enable-sigchild. The process can not be signaled.');
        } else {
            
$this->setExpectedException('Symfony\Component\Process\Exception\RuntimeException''Error while sending signal `Céphalopodes`.');
        }
        
parent::testSignalWithWrongNonIntSignal();
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getProcess($commandline$cwd null, array $env null$stdin null$timeout 60, array $options = array())
    {
        return new 
Process($commandline$cwd$env$stdin$timeout$options);
    }

    private function 
skipIfPHPSigchild()
    {
        if (
$this->enabledSigchild) {
            
$this->markTestSkipped('Your PHP has been compiled with --enable-sigchild, this test can not be executed');
        }
    }

    private function 
expectExceptionIfPHPSigchild($classname$message)
    {
        if (
$this->enabledSigchild) {
            
$this->setExpectedException($classname$message);
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0045 ]--