Platformsh\Cli\Tests\GitHelperTest::testBranchExists PHP Method

testBranchExists() public method

Test GitHelper::branchExists().
public testBranchExists ( )
    public function testBranchExists()
    {
        $this->gitHelper->checkOutNew('existent');
        $this->assertTrue($this->gitHelper->branchExists('existent'));
        $this->assertFalse($this->gitHelper->branchExists('nonexistent'));
    }