PhpBench\Tests\System\DeleteTest::testLog PHP Метод

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

It should delete a specific UUID.
public testLog ( )
    public function testLog()
    {
        $result = $this->createResult(null, ' --store');
        $uuid = $result->evaluate('string(./suite/@uuid)');
        $process = $this->phpbench('delete --uuid=' . $uuid);
        $this->assertEquals(0, $process->getExitCode());
        // should throw an exception because the UUID does not exist.
        $process = $this->phpbench('delete --uuid=' . $uuid);
        $this->assertEquals(1, $process->getExitCode());
    }
DeleteTest