You are here

private function ExporterTest::trimNewline in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/exporter/tests/ExporterTest.php \SebastianBergmann\Exporter\ExporterTest::trimNewline()
3 calls to ExporterTest::trimNewline()
ExporterTest::testExport in vendor/sebastian/exporter/tests/ExporterTest.php
@dataProvider exportProvider
ExporterTest::testExport2 in vendor/sebastian/exporter/tests/ExporterTest.php
ExporterTest::testShortenedExport in vendor/sebastian/exporter/tests/ExporterTest.php
@dataProvider shortenedExportProvider

File

vendor/sebastian/exporter/tests/ExporterTest.php, line 329

Class

ExporterTest
@covers SebastianBergmann\Exporter\Exporter

Namespace

SebastianBergmann\Exporter

Code

private function trimNewline($string) {
  return preg_replace('/[ ]*\\n/', "\n", $string);
}