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

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

It should show the default (simple) report.
public testCommand ( )
    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);
    }