function HWLDFWordAccumulatorTest::testAddWords

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testAddWords()
  2. 8.9.x core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testAddWords()
  3. 10 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 53

Class

HWLDFWordAccumulatorTest
Test HWLDFWordAccumulator.

Namespace

Drupal\Tests\Component\Diff\Engine

Code

public function testAddWords($expected, $words, $tag) : void {
    $acc = new HWLDFWordAccumulator();
    $acc->addWords($words, $tag);
    $this->assertEquals($expected, $acc->getLines());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.