/** * @covers \Bit3\GitPhp\GitRepository::remote * @covers \Bit3\GitPhp\Command\RemoteCommandBuilder::add * @covers \Bit3\GitPhp\Command\RemoteCommandBuilder::execute */ public function testRemoteAddOnUninitializedRepository() { $this->setExpectedException('Bit3\\GitPhp\\GitException'); $this->uninitializedGitRepository->remote()->add('origin', $this->initializedRepositoryPath)->execute(); }