PhpBench\Tests\System\ArchiveTest::testArchive PHP Метод

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

It should show a report for a specific run.
public testArchive ( )
    public function testArchive()
    {
        $this->createResult(null, ' --store');
        $this->createResult(null, ' --store');
        $process = $this->phpbench('archive');
        $this->assertExitCode(0, $process);
        $output = $process->getOutput();
        // it should show two dots, one for each result
        $this->assertContains(<<<'EOT'
..
EOT
, $output);
        $process = $this->phpbench('archive --restore');
        $output = $process->getOutput();
        $this->assertContains(<<<'EOT'
Restoring 0 of 2 suites
EOT
, $output);
    }
ArchiveTest