You are here

public function HWLDFWordAccumulatorTest::testGetLinesEmpty in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testGetLinesEmpty()
  2. 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 24

Class

HWLDFWordAccumulatorTest
Test HWLDFWordAccumulator.

Namespace

Drupal\Tests\Component\Diff\Engine

Code

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