function HWLDFWordAccumulatorTest::testGetLinesEmpty

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testGetLinesEmpty()
  2. 8.9.x core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testGetLinesEmpty()
  3. 10 core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testGetLinesEmpty()

Verify that we only get back a NBSP from an empty accumulator.

@covers ::getLines

See also

Drupal\Component\Diff\Engine\HWLDFWordAccumulator::NBSP

File

core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php, line 30

Class

HWLDFWordAccumulatorTest
Test HWLDFWordAccumulator.

Namespace

Drupal\Tests\Component\Diff\Engine

Code

public function testGetLinesEmpty() : void {
    $acc = new HWLDFWordAccumulator();
    $this->assertEquals([
        ' ',
    ], $acc->getLines());
}

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