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

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

It should show the branch.
public testGetVcsBranch ( )
    public function testGetVcsBranch()
    {
        $this->exec('git commit -m "test"');
        $this->exec('git branch foobar');
        $this->exec('git checkout foobar');
        $info = $this->provider->getInformation();
        $this->assertEquals('foobar', $info['branch']);
    }