@@ -38,14 +38,6 @@ public function testSpellcheckFromRealBinaries(): void
3838 $ this ->assertWorkingSpellcheck (self ::realBinaryPath ());
3939 }
4040
41- // /**
42- // * @group integration
43- // */
44- // public function testSpellcheckFromRealBinariesUTF8(): void
45- // {
46- // $this->assertWorkingSpellcheckRUText(self::realBinaryPath());
47- // }
48-
4941 /**
5042 * @group integration
5143 */
@@ -117,24 +109,4 @@ private function assertWorkingSpellcheck(string $binaries): void
117109 $ this ->assertSame ($ misspellings [1 ]->getLineNumber (), 2 );
118110 $ this ->assertNotEmpty ($ misspellings [1 ]->getSuggestions ());
119111 }
120-
121- // /**
122- // * @param array|string $binaries
123- // */
124- // private function assertWorkingSpellcheckRUText($binaries): void
125- // {
126- // $ispell = new Ispell(new CommandLine($binaries));
127- // /** @var Misspelling[] $misspellings */
128- // $misspellings = iterator_to_array($ispell->check(TextTest::CONTENT_STUB_RU, ['russian'], ['ctx']));
129- //
130- // $this->assertSame(['ctx'], $misspellings[0]->getContext());
131- // $this->assertSame('граматических', $misspellings[0]->getWord());
132- // $this->assertSame(1, $misspellings[0]->getLineNumber());
133- // $this->assertSame(54, $misspellings[0]->getOffset());
134- //
135- // $this->assertSame(['ctx'], $misspellings[1]->getContext());
136- // $this->assertSame('англиских', $misspellings[1]->getWord());
137- // $this->assertSame(1, $misspellings[1]->getLineNumber());
138- // $this->assertSame(94, $misspellings[1]->getOffset());
139- // }
140112}
0 commit comments