21 $expected =
'hello world!';
23<?
php echo
'$expected';
28 $this->assertEquals($expected, $process->getOutput());
41 $this->assertContains($f->find(), $commandLine,
'::getCommandLine() returns the command line of PHP before start');
44 $this->assertContains($commandLine, $process->
getCommandLine(),
'::getCommandLine() returns the command line of PHP after start');
47 $this->assertContains($commandLine, $process->
getCommandLine(),
'::getCommandLine() returns the command line of PHP after wait');
An exception for terminatinating execution or to throw for unit testing.
An executable finder specifically designed for the PHP executable.
PhpProcess runs a PHP script in an independent process.
start(callable $callback=null)
{Starts the process and returns after writing the input to STDIN.This method blocks until all STDIN d...
getCommandLine()
Gets the command line to be executed.