/** * @test */ public function branchesCommand() { $branchesCmd = Factory::createBranches(); $branchesCmd->setClosed(true); $branchesCmd->setActive(true); $expected = 'hg branches --active --closed'; $this->assertSame($expected, $branchesCmd->asString()); }