public function HWLDFWordAccumulatorTest::testGetLinesEmpty in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Diff/Engine/HWLDFWordAccumulatorTest.php \Drupal\Tests\Component\Diff\Engine\HWLDFWordAccumulatorTest::testGetLinesEmpty()
- 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\EngineCode
public function testGetLinesEmpty() {
$acc = new HWLDFWordAccumulator();
$this
->assertEquals([
' ',
], $acc
->getLines());
}