/** * @covers \Bit3\GitPhp\GitRepository::commit * @covers \Bit3\GitPhp\Command\CommitCommandBuilder::message * @covers \Bit3\GitPhp\Command\CommitCommandBuilder::execute */ public function testCommitOnUninitializedRepository() { $this->setExpectedException('Bit3\\GitPhp\\GitException'); $this->uninitializedGitRepository->commit()->message('Commit changes')->execute(); }
protected function execute(InputInterface $input, OutputInterface $output) { $git = new GitRepository($input->getArgument('docroot')); $git->commit()->message($input->getArgument('message'))->execute(); }