• internal This class is not covered by the backward compatibility promise for PHPUnit
CloneableInstantiable
ExtendsPHPUnit\Util\PHP\AbstractPhpProcess
Methods
public PHPUnit\Util\PHP\AbstractPhpProcess::__construct()
public static PHPUnit\Util\PHP\AbstractPhpProcess::factory() : self
public PHPUnit\Util\PHP\AbstractPhpProcess::getArgs() : string
 
Returns the string of arguments to pass to the php job

public PHPUnit\Util\PHP\AbstractPhpProcess::getCommand(array $settings, ?string $file = NULL) : string
 
Returns the command based into the configurations.

public PHPUnit\Util\PHP\AbstractPhpProcess::getEnv() : array
 
Returns the array of environment variables to start the child process with

public PHPUnit\Util\PHP\AbstractPhpProcess::getStdin() : string
 
Returns the input string to be sent via STDIN

public PHPUnit\Util\PHP\AbstractPhpProcess::getTimeout() : int
 
Returns the amount of seconds to wait before timing out

public runJob(string $job, array $settings = []) : array
 
Runs a single job (PHP code) using a separate PHP process.

  • throws Exception
public PHPUnit\Util\PHP\AbstractPhpProcess::runTestJob(string $job, PHPUnit\Framework\Test $test, PHPUnit\Framework\TestResult $result) : void
 
Runs a single test in a separate PHP process.

  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
public PHPUnit\Util\PHP\AbstractPhpProcess::setArgs(string $args) : void
 
Sets the string of arguments to pass to the php job

public PHPUnit\Util\PHP\AbstractPhpProcess::setEnv(array $env) : void
 
Sets the array of environment variables to start the child process with

    public PHPUnit\Util\PHP\AbstractPhpProcess::setStdin(string $stdin) : void
     
    Sets the input string to be sent via STDIN

    public PHPUnit\Util\PHP\AbstractPhpProcess::setTimeout(int $timeout) : void
     
    Sets the amount of seconds to wait before timing out

    public PHPUnit\Util\PHP\AbstractPhpProcess::setUseStderrRedirection(bool $stderrRedirection) : void
     
    Defines if should use STDERR redirection or not.

    Then $stderrRedirection is TRUE, STDERR is redirected to STDOUT.

    public PHPUnit\Util\PHP\AbstractPhpProcess::useStderrRedirection() : bool
     
    Returns TRUE if uses STDERR redirection or FALSE if not.

    Properties
    protected PHPUnit\Util\PHP\AbstractPhpProcess::$args
     


    • var string
    protected PHPUnit\Util\PHP\AbstractPhpProcess::$env
     


    • var array
    protected PHPUnit\Util\PHP\AbstractPhpProcess::$runtime
     


    • var Runtime
    protected PHPUnit\Util\PHP\AbstractPhpProcess::$stderrRedirection
     


    • var bool
    protected PHPUnit\Util\PHP\AbstractPhpProcess::$stdin
     


    • var string
    protected $tempFile
     


    • var string
    protected PHPUnit\Util\PHP\AbstractPhpProcess::$timeout
     


    • var int
    Methods
    protected cleanup() : void
    protected getHandles() : array
     
    Returns an array of file handles to be used in place of pipes

    protected process( $pipe, string $job) : void
    protected runProcess(string $job, array $settings) : array
     
    Handles creating the child process and returning the STDOUT and STDERR

    • throws Exception
    protected PHPUnit\Util\PHP\AbstractPhpProcess::settingsToParameters(array $settings) : string
    protected useTemporaryFile() : bool
    Methods
    private PHPUnit\Util\PHP\AbstractPhpProcess::getException(PHPUnit\Framework\TestFailure $error) : PHPUnit\Framework\Exception
     
    Gets the thrown exception from a PHPUnit\Framework\TestFailure.

    • see https://github.com/sebastianbergmann/phpunit/issues/74
    private PHPUnit\Util\PHP\AbstractPhpProcess::processChildResult(PHPUnit\Framework\Test $test, PHPUnit\Framework\TestResult $result, string $stdout, string $stderr) : void
     
    Processes the TestResult object from an isolated process.

    • throws SebastianBergmann\RecursionContext\InvalidArgumentException
    Methods
    public static PHPUnit\Util\PHP\AbstractPhpProcess::factory() : self
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only