public function testCommand()
{
$process = $this->phpbench('xdebug:profile benchmarks/set1/BenchmarkBench.php --filter=benchDoNothing');
$this->assertExitCode(0, $process);
$this->assertContains('profile(s) generated', $process->getOutput());
$lines = explode("\n", $process->getOutput());
// get the filename from the output and check it exists.
$line = trim($lines[count($lines) - 2]);
$this->assertFileExists($line);
}