PhpBench\Tests\System\SystemTestCase::phpbench PHP Method

phpbench() public method

public phpbench ( $command, $cwd = null )
    public function phpbench($command, $cwd = null)
    {
        $cwd = $this->workspaceDir . '/' . $cwd;
        chdir($cwd);
        $bin = __DIR__ . '/../../bin/phpbench --verbose';
        $process = new Process($bin . ' ' . $command);
        $process->run();
        return $process;
    }

Usage Example

Exemplo n.º 1
0
 public function phpbench($command, $workingDir = '.')
 {
     $command .= ' --extension="PhpBench\\Extensions\\XDebug\\XDebugExtension"';
     return parent::phpbench($command, $workingDir);
 }