/**
* @test
*/
public function throws_user_exception_when_not_in_git_directory()
{
$command = new GitDirectoryCommand();
$commandEvent = new ConsoleCommandEvent($command, $this->createMock('Symfony\\Component\\Console\\Input\\InputInterface'), $this->createMock('Symfony\\Component\\Console\\Output\\OutputInterface'));
$helper = $this->getGitHelper(false);
$subscriber = new GitDirectorySubscriber($helper);
$this->setExpectedException(UserException::class);
$subscriber->initialize($commandEvent);
}