You are here

public function SimpletestUiPrinterTest::provideBuffer in SimpleTest 8.3

Data provider for testWrite().

Return value

string[] Array of data for testWrite().

  • Expected output from SimpletestUiPrinter->write().
  • Buffer to pass into SimpletestUiPrinter->write().

File

tests/src/Unit/SimpletestUiPrinterTest.php, line 23

Class

SimpletestUiPrinterTest
@coversDefaultClass \Drupal\Tests\Listeners\SimpletestUiPrinter

Namespace

Drupal\Tests\simpletest\Unit

Code

public function provideBuffer() {
  return [
    [
      '&"'<>',
      '&"\'<>',
    ],
    [
      '<a href="http:////www.example.com" target="_blank" title="http:////www.example.com">http:////www.example.com</a>',
      'http:////www.example.com',
    ],
    [
      'this is some text <a href="http://www.example.com/" target="_blank" title="http://www.example.com/">http://www.example.com/</a> with a link in it.',
      'this is some text http://www.example.com/ with a link in it.',
    ],
    [
      "HTML output was generated<br />\n",
      "HTML output was generated\n",
    ],
  ];
}