function HWLDFWordAccumulatorTest::provideAddWords
Return value
array
- Expected array of lines from getLines().
- Array of strings for the $words parameter to addWords().
- String tag for the $tag parameter to addWords().
File
-
core/
tests/ Drupal/ Tests/ Component/ Diff/ Engine/ HWLDFWordAccumulatorTest.php, line 39
Class
- HWLDFWordAccumulatorTest
- Test HWLDFWordAccumulator.
Namespace
Drupal\Tests\Component\Diff\EngineCode
public static function provideAddWords() {
return [
[
[
'wordword2',
],
[
'word',
'word2',
],
'tag',
],
[
[
'word',
'word2',
],
[
'word',
"\nword2",
],
'tag',
],
[
[
' ',
'word2',
],
[
'',
"\nword2",
],
'tag',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.