/** * Tests Translation_WordsContainer->getWordsFromFile() */ public function testGetWordsFromFile() { $this->assertEquals(0, count($this->Translation_WordsContainer->getWordsFromFile('newFile'))); $this->Translation_WordsContainer->offsetGet('testWord')->addOccurence('newFile', 5); $this->assertEquals(1, count($this->Translation_WordsContainer->getWordsFromFile('newFile'))); $this->arrayHasKey('testWord', $this->Translation_WordsContainer->getWordsFromFile('newFile')); }