public function testRemoveIgnoreDirectoriesSuccessfullyRemovesEntries() { $gitIgnore = new GitIgnore($this->gitIgnoreFile, array('line1', 'line2')); $this->assertEquals(array('line1', 'line2'), $gitIgnore->getEntries()); $gitIgnore->removeIgnoreDirectories(); $this->assertEquals(array(), $gitIgnore->getEntries()); }