PhpBench\Tests\System\ShowTest::testSpecificReport PHP Метод

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

It should show a specific report.
public testSpecificReport ( )
    public function testSpecificReport()
    {
        $document = $this->createResult(null, ' --store');
        $uuid = $document->evaluate('string(./suite/@uuid)');
        $process = $this->phpbench('show ' . $uuid . ' --report=default');
        $this->assertExitCode(0, $process);
        $output = $process->getOutput();
        $this->assertContains(<<<'EOT'
+--------------+--------------+--------+--------+------+------+----------+----------+--------------+----------------+
| benchmark    | subject      | groups | params | revs | iter | mem_peak | time_rev | comp_z_value | comp_deviation |
+--------------+--------------+--------+--------+------+------+----------+----------+--------------+----------------+
| NothingBench | benchNothing |        | []     | 1    | 0    | 100b     | 10.000μs | 0.00σ        | 0.00%          |
+--------------+--------------+--------+--------+------+------+----------+----------+--------------+----------------+
EOT
, $output);
    }