public function fire_no_error_when_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();
$subscriber = new GitDirectorySubscriber($helper);
$subscriber->initialize($commandEvent);
$this->assertTrue($helper->isGitDir());
}