function SimpletestUiPrinterTest::testWrite
@covers ::write
@dataProvider provideBuffer
File
-
core/
modules/ simpletest/ tests/ src/ Unit/ SimpletestUiPrinterTest.php, line 37
Class
- SimpletestUiPrinterTest
- @coversDefaultClass \Drupal\Tests\Listeners\SimpletestUiPrinter
Namespace
Drupal\Tests\simpletest\UnitCode
public function testWrite($expected, $buffer) {
$printer = new SimpletestUiPrinter();
// Set up our expectation.
$this->expectOutputString($expected);
// Write the buffer.
$printer->write($buffer);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.