PhpBench\Extensions\XDebug\Tests\System\ProfileCommandTest::testOutputDir PHP Метод

testOutputDir() публичный Метод

Specify custom output dir.
public testOutputDir ( )
    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);
    }