public function testConstructorPreserveWords() { $words = array('word1', 'word2'); $dictionary = new ArrayDictionary($words); $this->assertEquals(2, $dictionary->count()); $this->assertTrue($dictionary->contains('word1')); $this->assertTrue($dictionary->contains('word2')); }