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