publicfunction__construct(Process $process) { if($process->isSuccessful()){ thrownewInvalidArgumentException('Expected a failed process, but the given process was successful.'); }
publicfunction__construct(Process $process) { if($process->isSuccessful()){ thrownewInvalidArgumentException('Expected a failed process, but the given process was successful.'); }
// Execute an empty command through the shell to build out a working
// directory.
$process = $this->executeCommand('', $test_directory); $this->assertCommandSuccessful();
// Assert that our working directory exists and is in use by the process.
$workspace = $this->getWorkspaceDirectory(); $working_path = $workspace . '/' . $test_directory; $this->assertDirectoryExists($working_path); $this->assertEquals($working_path, $process->getWorkingDirectory()); }