You are here

public function PoStreamWriterTest::providerWriteData in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::providerWriteData()

Return value

array

  • Content to write.
  • Written content.
  • Content longer than 10 bytes.

File

core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php, line 85

Class

PoStreamWriterTest
@coversDefaultClass \Drupal\Component\Gettext\PoStreamWriter @group Gettext

Namespace

Drupal\Tests\Component\Gettext

Code

public function providerWriteData() {

  // cSpell:disable
  return [
    [
      '',
      '',
      FALSE,
    ],
    [
      "\r\n",
      "\r\n",
      FALSE,
    ],
    [
      'write this if you can',
      'write this',
      TRUE,
    ],
    [
      'éáíó>&',
      'éáíó>&',
      FALSE,
    ],
    [
      'éáíó>&<',
      'éáíó>&',
      TRUE,
    ],
    [
      '中文 890',
      '中文 890',
      FALSE,
    ],
    [
      '中文 89012',
      '中文 890',
      TRUE,
    ],
  ];

  // cSpell:enable
}