public function SimpletestUiPrinterTest::testWrite in Drupal 8
@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);
}