PhpBench\Tests\Unit\Environment\Provider\GitTest::testGetVcsCommitsh PHP Метод

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

It should show the commitsh.
public testGetVcsCommitsh ( )
    public function testGetVcsCommitsh()
    {
        $this->exec('git commit -m "test"');
        $info = $this->provider->getInformation();
        $this->assertNotNull($info['version']);
        // no commit has yet been made
        $this->assertEquals(40, strlen($info['version']));
    }