public function HWLDFWordAccumulatorTest::testAddWords in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testAddWords()
- 9 core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testAddWords()
@covers ::addWords @dataProvider provideAddWords
File
- core/
tests/ Drupal/ Tests/ Component/ Diff/ Engine/ HWLDFWordAccumulatorTest.php, line 47
Class
- HWLDFWordAccumulatorTest
- Test HWLDFWordAccumulator.
Namespace
Drupal\Tests\Component\Diff\EngineCode
public function testAddWords($expected, $words, $tag) {
$acc = new HWLDFWordAccumulator();
$acc
->addWords($words, $tag);
$this
->assertEquals($expected, $acc
->getLines());
}