Chris@18: write(). Chris@18: * - Buffer to pass into SimpletestUiPrinter->write(). Chris@18: */ Chris@18: public function provideBuffer() { Chris@18: return [ Chris@18: ['&"'<>', '&"\'<>'], Chris@18: ['http:////www.example.com', 'http:////www.example.com'], Chris@18: ['this is some text http://www.example.com/ with a link in it.', 'this is some text http://www.example.com/ with a link in it.'], Chris@18: ["HTML output was generated
\n", "HTML output was generated\n"], Chris@18: ]; Chris@18: } Chris@18: Chris@18: /** Chris@18: * @covers ::write Chris@18: * Chris@18: * @dataProvider provideBuffer Chris@18: */ Chris@18: public function testWrite($expected, $buffer) { Chris@18: $printer = new SimpletestUiPrinter(); Chris@18: // Set up our expectation. Chris@18: $this->expectOutputString($expected); Chris@18: // Write the buffer. Chris@18: $printer->write($buffer); Chris@18: } Chris@18: Chris@18: }