public function testTwoWayWordListCompareWithNoDifferences()
 {
     $wordListCoverageComparator = new FullCoverageWordListComparator();
     $first = WordList::fromArray(['one']);
     $second = WordList::fromArray(['one']);
     $result = $wordListCoverageComparator->twoWayWordListsCompare($first, $second);
     $this->assertSame(1.0, $result);
 }
 public function testCreatingWordListFromArrayOfSplittablePhrases()
 {
     $input = ['foo bar booz', 'gooz wooz'];
     $wordList = WordList::fromArray($input);
     $this->assertSame($input, iterator_to_array($wordList));
 }