/** * @covers \Bit3\GitPhp\GitRepository::rm * @covers \Bit3\GitPhp\Command\RmCommandBuilder::execute */ public function testRmOnUninitializedRepository() { $this->setExpectedException('Bit3\\GitPhp\\GitException'); $this->uninitializedGitRepository->rm()->execute('existing-file.txt'); }